{"id":15009432,"url":"https://github.com/playpauseandstop/aiohttp-middlewares","last_synced_at":"2025-04-04T12:06:37.350Z","repository":{"id":37451031,"uuid":"91174188","full_name":"playpauseandstop/aiohttp-middlewares","owner":"playpauseandstop","description":"Collection of useful middlewares for aiohttp.web applications.","archived":false,"fork":false,"pushed_at":"2024-11-22T22:21:20.000Z","size":778,"stargazers_count":53,"open_issues_count":8,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T11:07:13.931Z","etag":null,"topics":["aiohttp","aiohttp-server","middlewares","python","python-3","python-3-6","python-3-7","python-3-8","python-library"],"latest_commit_sha":null,"homepage":"http://aiohttp-middlewares.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/playpauseandstop.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-13T12:52:52.000Z","updated_at":"2025-02-20T18:07:32.000Z","dependencies_parsed_at":"2024-04-18T17:31:40.354Z","dependency_job_id":"e2a15230-5432-47e5-83c4-9a050cc6bde9","html_url":"https://github.com/playpauseandstop/aiohttp-middlewares","commit_stats":{"total_commits":211,"total_committers":7,"mean_commits":"30.142857142857142","dds":0.2748815165876777,"last_synced_commit":"477f68f021c3a7a662e40111fe3eaed592f9915c"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playpauseandstop%2Faiohttp-middlewares","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playpauseandstop%2Faiohttp-middlewares/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playpauseandstop%2Faiohttp-middlewares/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playpauseandstop%2Faiohttp-middlewares/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/playpauseandstop","download_url":"https://codeload.github.com/playpauseandstop/aiohttp-middlewares/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174407,"owners_count":20896076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiohttp","aiohttp-server","middlewares","python","python-3","python-3-6","python-3-7","python-3-8","python-library"],"created_at":"2024-09-24T19:25:14.618Z","updated_at":"2025-04-04T12:06:37.318Z","avatar_url":"https://github.com/playpauseandstop.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===================\naiohttp-middlewares\n===================\n\n.. image:: https://github.com/playpauseandstop/aiohttp-middlewares/actions/workflows/ci.yml/badge.svg\n    :target: https://github.com/playpauseandstop/aiohttp-middlewares/actions/workflows/ci.yml\n    :alt: CI Workflow\n\n.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\n    :target: https://github.com/pre-commit/pre-commit\n    :alt: pre-commit\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: black\n\n.. image:: https://img.shields.io/pypi/v/aiohttp-middlewares.svg\n    :target: https://pypi.org/project/aiohttp-middlewares/\n    :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/pyversions/aiohttp-middlewares.svg\n    :target: https://pypi.org/project/aiohttp-middlewares/\n    :alt: Python versions\n\n.. image:: https://img.shields.io/pypi/l/aiohttp-middlewares.svg\n    :target: https://github.com/playpauseandstop/aiohttp-middlewares/blob/main/LICENSE\n    :alt: BSD License\n\n.. image:: https://coveralls.io/repos/playpauseandstop/aiohttp-middlewares/badge.svg?branch=main\u0026service=github\n    :target: https://coveralls.io/github/playpauseandstop/aiohttp-middlewares\n    :alt: Coverage\n\n.. image:: https://readthedocs.org/projects/aiohttp-middlewares/badge/?version=latest\n    :target: http://aiohttp-middlewares.readthedocs.org/en/latest/\n    :alt: Documentation\n\nCollection of useful middlewares for `aiohttp.web`_ applications.\n\n- Works on `Python`_ 3.8+\n- Works with `aiohttp.web`_ 3.8.1+\n- BSD licensed\n- Latest documentation `on Read The Docs\n  \u003chttps://aiohttp-middlewares.readthedocs.io/\u003e`_\n- Source, issues, and pull requests `on GitHub\n  \u003chttps://github.com/playpauseandstop/aiohttp-middlewares\u003e`_\n\n.. _`aiohttp.web`: https://docs.aiohttp.org/en/stable/web.html\n.. _`Python`: https://www.python.org/\n\nQuick Start\n===========\n\nBy default ``aiohttp.web`` does not provide `many built-in middlewares\n\u003chttps://docs.aiohttp.org/en/stable/web_reference.html#middlewares\u003e`_ for\nstandart web-development needs such as: handling errors, shielding view\nhandlers, or providing CORS headers.\n\n``aiohttp-middlewares`` tries to fix this by providing several middlewares that\naims to cover most common web-development needs.\n\nFor example, to enable CORS headers for ``http://localhost:8081`` origin and\nhandle errors for ``aiohttp.web`` application you need to,\n\n.. code-block:: python\n\n    from aiohttp import web\n    from aiohttp_middlewares import (\n        cors_middleware,\n        error_middleware,\n    )\n\n\n    app = web.Application(\n        middlewares=(\n            cors_middleware(origins=(\"http://localhost:8081\",)),\n            error_middleware(),\n        )\n    )\n\nCheck `documentation \u003chttps://aiohttp-middlewares.readthedocs.io/\u003e`_ for\nall available middlewares and available initialization options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaypauseandstop%2Faiohttp-middlewares","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplaypauseandstop%2Faiohttp-middlewares","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaypauseandstop%2Faiohttp-middlewares/lists"}