{"id":18474427,"url":"https://github.com/pgjones/quart-trio","last_synced_at":"2025-04-07T18:13:13.929Z","repository":{"id":62584378,"uuid":"480041844","full_name":"pgjones/quart-trio","owner":"pgjones","description":"Quart-Trio is an extension for Quart to support the Trio event loop.","archived":false,"fork":false,"pushed_at":"2025-01-09T21:04:48.000Z","size":89,"stargazers_count":23,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T17:18:42.559Z","etag":null,"topics":["quart"],"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/pgjones.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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-10T14:27:36.000Z","updated_at":"2025-01-28T14:16:21.000Z","dependencies_parsed_at":"2024-06-19T06:14:27.213Z","dependency_job_id":"ed63c6ef-c79a-4532-b8ad-3b23e49ab56d","html_url":"https://github.com/pgjones/quart-trio","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fquart-trio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fquart-trio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fquart-trio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fquart-trio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgjones","download_url":"https://codeload.github.com/pgjones/quart-trio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704571,"owners_count":20982298,"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":["quart"],"created_at":"2024-11-06T10:29:26.162Z","updated_at":"2025-04-07T18:13:13.905Z","avatar_url":"https://github.com/pgjones.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Quart-Trio\n==========\n\n|Build Status| |docs| |pypi| |python| |license|\n\nQuart-Trio is an extension for `Quart\n\u003chttps://github.com/pallets/quart\u003e`__ to support the `Trio\n\u003chttps://trio.readthedocs.io/en/latest/\u003e`_ event loop. This is an\nalternative to using the asyncio event loop present in the Python\nstandard library and supported by default in Quart.\n\nQuickstart\n----------\n\nQuartTrio can be installed via `pip\n\u003chttps://docs.python.org/3/installing/index.html\u003e`_,\n\n.. code-block:: console\n\n    $ pip install quart-trio\n\nand requires Python 3.8 or higher (see `python version support\n\u003chttps://quart.palletsprojects.com/en/latest/discussion/python_versions.html\u003e`_\nfor reasoning).\n\nA minimal Quart example is,\n\n.. code-block:: python\n\n    from quart import websocket\n    from quart_trio import QuartTrio\n\n    app = QuartTrio(__name__)\n\n    @app.route('/')\n    async def hello():\n        return 'hello'\n\n    @app.websocket('/ws')\n    async def ws():\n        while True:\n            await websocket.send('hello')\n\n    app.run()\n\nif the above is in a file called ``app.py`` it can be run as,\n\n.. code-block:: console\n\n    $ python app.py\n\nTo deploy in a production setting see the `deployment\n\u003chttps://quart-trio.readthedocs.io/en/latest/tutorials/deployment.html\u003e`_\ndocumentation.\n\nContributing\n------------\n\nQuart-Trio is developed on `GitHub\n\u003chttps://github.com/pgjones/quart-trio\u003e`_. You are very welcome to\nopen `issues \u003chttps://github.com/pgjones/quart-trio/issues\u003e`_ or\npropose `merge requests\n\u003chttps://github.com/pgjones/quart-trio/merge_requests\u003e`_.\n\nTesting\n~~~~~~~\n\nThe best way to test Quart-Trio is with Tox,\n\n.. code-block:: console\n\n    $ pip install tox\n    $ tox\n\nthis will check the code style and run the tests.\n\nHelp\n----\n\nThe `Quart-Trio \u003chttps://quart-trio.readthedocs.io\u003e`__ and `Quart\n\u003chttps://quart.palletsprojects.com\u003e`__ documentation are the best\nplaces to start, after that try searching `stack overflow\n\u003chttps://stackoverflow.com/questions/tagged/quart\u003e`_, if you still\ncan't find an answer please `open an issue\n\u003chttps://github.com/pgjones/quart-trio/issues\u003e`_.\n\n\n.. |Build Status| image:: https://github.com/pgjones/quart-trio/actions/workflows/ci.yml/badge.svg\n   :target: https://github.com/pgjones/quart-trio/commits/main\n\n.. |docs| image:: https://img.shields.io/badge/docs-passing-brightgreen.svg\n   :target: https://quart-trio.readthedocs.io\n\n.. |pypi| image:: https://img.shields.io/pypi/v/quart-trio.svg\n   :target: https://pypi.python.org/pypi/Quart-Trio/\n\n.. |python| image:: https://img.shields.io/pypi/pyversions/quart-trio.svg\n   :target: https://pypi.python.org/pypi/Quart-Trio/\n\n.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg\n   :target: https://github.com/pgjones/quart-trio/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgjones%2Fquart-trio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgjones%2Fquart-trio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgjones%2Fquart-trio/lists"}