.. _examples: Examples ======== aio_pika client --------------- .. literalinclude:: ../../../examples/aio_pika_client.py :language: python aio_pika server --------------- .. literalinclude:: ../../../examples/aio_pika_server.py :language: python aiohttp class-based handler --------------------------- .. literalinclude:: ../../../examples/aiohttp_class_based_handler.py :language: python aiohttp client -------------- .. literalinclude:: ../../../examples/aiohttp_client.py :language: python aiohttp client batch request ---------------------------- .. literalinclude:: ../../../examples/aiohttp_client_batch.py :language: python aiohttp pytest integration -------------------------- .. literalinclude:: ../../../examples/aiohttp_pytest.py :language: python aiohttp server -------------- .. literalinclude:: ../../../examples/aiohttp_server.py :language: python aiohttp versioning ------------------ .. literalinclude:: ../../../examples/aiohttp_versioning.py :language: python client prometheus metrics ------------------------- .. literalinclude:: ../../../examples/client_prometheus_metrics.py :language: python client tracing -------------- .. literalinclude:: ../../../examples/client_tracing.py :language: python flask class-based handler ------------------------- .. literalinclude:: ../../../examples/flask_class_based_handler.py :language: python flask server ------------ .. literalinclude:: ../../../examples/flask_server.py :language: python flask versioning ---------------- .. literalinclude:: ../../../examples/flask_versioning.py :language: python httpserver ---------- .. literalinclude:: ../../../examples/httpserver.py :language: python jsonschema validator -------------------- .. literalinclude:: ../../../examples/jsonschema_validator.py :language: python kombu client ------------ .. literalinclude:: ../../../examples/kombu_client.py :language: python kombu server ------------ .. literalinclude:: ../../../examples/kombu_server.py :language: python middlewares ----------- .. literalinclude:: ../../../examples/middlewares.py :language: python multiple clients ---------------- .. literalinclude:: ../../../examples/multiple_clients.py :language: python pydantic validator ------------------ .. literalinclude:: ../../../examples/pydantic_validator.py :language: python requests client --------------- .. literalinclude:: ../../../examples/requests_client.py :language: python requests pytest --------------- .. literalinclude:: ../../../examples/requests_pytest.py :language: python sentry ------ .. literalinclude:: ../../../examples/sentry.py :language: python server prometheus metrics ------------------------- .. literalinclude:: ../../../examples/server_prometheus_metrics.py :language: python server tracing -------------- .. literalinclude:: ../../../examples/server_tracing.py :language: python werkzeug server --------------- .. literalinclude:: ../../../examples/werkzeug_server.py :language: python flask OpenAPI specification --------------------------- .. literalinclude:: ../../../examples/openapi_flask.py :language: python aiohttp OpenAPI specification ----------------------------- .. literalinclude:: ../../../examples/openapi_aiohttp.py :language: python flask OpenRPC specification --------------------------- .. literalinclude:: ../../../examples/openrpc_flask.py :language: python