{"id":16545632,"url":"https://github.com/hasansezertasan/a2wsgi-examples","last_synced_at":"2025-10-28T15:31:37.520Z","repository":{"id":189461715,"uuid":"680722697","full_name":"hasansezertasan/a2wsgi-examples","owner":"hasansezertasan","description":"The goal of this project is to provide examples about integrating different Python Web Frameworks and how they can be used together with a2wsgi.","archived":false,"fork":false,"pushed_at":"2024-02-13T06:21:38.000Z","size":44,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T16:05:32.630Z","etag":null,"topics":["a2wsgi","asgi","django","examples","fastapi","flask","guide","mount","python","tutorial","web-application","wsgi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hasansezertasan.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":null,"dei":null}},"created_at":"2023-08-20T07:17:53.000Z","updated_at":"2024-10-14T09:21:13.000Z","dependencies_parsed_at":"2023-08-20T08:33:01.917Z","dependency_job_id":"5a2489a0-c5ad-48e1-a078-a2f7f4cd1c8a","html_url":"https://github.com/hasansezertasan/a2wsgi-examples","commit_stats":null,"previous_names":["hasansezertasan/fastapi-mount-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasansezertasan%2Fa2wsgi-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasansezertasan%2Fa2wsgi-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasansezertasan%2Fa2wsgi-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasansezertasan%2Fa2wsgi-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasansezertasan","download_url":"https://codeload.github.com/hasansezertasan/a2wsgi-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236684479,"owners_count":19188641,"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":["a2wsgi","asgi","django","examples","fastapi","flask","guide","mount","python","tutorial","web-application","wsgi"],"created_at":"2024-10-11T19:07:08.969Z","updated_at":"2025-10-28T15:31:37.185Z","avatar_url":"https://github.com/hasansezertasan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# a2wsgi Examples\n\nThe purpose of this project is to provide examples of how we can use (integrate) different Python Web Frameworks together using [a2wsgi][a2wsgi].\n\n## Why\n\nWho likes migration? But in some cases, it's necessary. [a2wsgi] helps us to convert our ASGI applications to WSGI or vice versa.\n\nA Scenerio (that I have faced): You have a Flask application and you want to migrate it to FastAPI. You have two options:\n\n1. Rewrite the whole application from scratch and deploy it when it's ready.\n2. Use [a2wsgi] to convert your Flask application to WSGI using [a2wsgi] and then integrate (mount) it to your FastAPI application and deploy it. By the time, you can rewrite your application step by step.\n\n## Progress\n\n### Frameworks\n\n| Framework  | Mount                 | Protocol  | Documentation                                                                                                             |\n| ---------- | --------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- |\n| Flask      | :white_check_mark:    | ASGI/WSGI | [Application Dispatching — Flask Documentation (3.0.x)](https://flask.palletsprojects.com/en/3.0.x/patterns/appdispatch/) |\n| FastAPI    | :white_check_mark:    | ASGI/WSGI | [Sub Applications - Mounts - FastAPI](https://fastapi.tiangolo.com/advanced/sub-applications/)                            |\n| Django     | :white_check_mark:    | ASGI/WSGI |                                                                                                                           |\n| Starlette  | :white_check_mark:    | ASGI/WSGI |                                                                                                                           |\n| Litestar   | :white_check_mark:    | ASGI/WSGI |                                                                                                                           |\n| BlackSheep | :x:                   | ASGI      |                                                                                                                           |\n| Quart      | :x:                   | ASGI      |                                                                                                                           |\n| Falcon     | :x:                   | ASGI/WSGI |                                                                                                                           |\n| Sanic      | :white_square_button: | ASGI      |                                                                                                                           |\n| Connexion  | :white_square_button: | ASGI      |                                                                                                                           |\n| Bottle     | :white_check_mark:    | WSGI      |                                                                                                                           |\n| Robyn      | :x:                   |           |                                                                                                                           |\n| HUG        | :x:                   |           |                                                                                                                           |\n| Tornado    | :x:                   |           |                                                                                                                           |\n| Pyramid    | :white_square_button: | WSGI      |                                                                                                                           |\n| webapp2    | :white_square_button: |           |                                                                                                                           |\n| aiohttp    | :warning:             |           |                                                                                                                           |\n\nMore WSGI: [Frameworks that run on WSGI — WSGI.org](https://wsgi.readthedocs.io/en/latest/frameworks.html)\n\nMore ASGI: [Implementations — ASGI 3.0 documentation](https://asgi.readthedocs.io/en/latest/implementations.html)\n\n### Other tools\n\n| Framework   | Mount                 |\n| ----------- | --------------------- |\n| GradIO      | :white_check_mark:    |\n| PyWebIO     | :white_check_mark:    |\n| Flet        | :white_check_mark:    |\n| NiceGUI     | :construction:        |\n| Reflex      | :construction:        |\n| Streamlit   | :white_square_button: |\n| Plotly Dash | :white_square_button: |\n\nEmoji key:\n\n- :white_check_mark:: Accomplished\n- :white_square_button:: Not tried yet\n- :x:: Tried and failed\n- :construction:: In progress\n- :warning:: Not sure if possible\n\n## How to run\n\n### Requirements\n\n- Docker\n- Docker Compose\n\n### Steps\n\n1. Clone the repository\n2. Run `docker-compose up --build`\n3. Go to `http://localhost:8000/docs` to see the API documentation\n4. Enjoy!\n\n## Contributing\n\nIf you would like to contribute to this project, please open an issue or submit a pull request.\n\n## Author\n\n- [hasansezertasan](https://www.github.com/hasansezertasan), It's me :wave:\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\u003c!-- Links --\u003e\n[a2wsgi]: https://github.com/abersheeran/a2wsgi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasansezertasan%2Fa2wsgi-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasansezertasan%2Fa2wsgi-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasansezertasan%2Fa2wsgi-examples/lists"}