{"id":27160490,"url":"https://github.com/channelcat/sanic","last_synced_at":"2025-04-09T00:01:32.027Z","repository":{"id":37011024,"uuid":"59720190","full_name":"sanic-org/sanic","owner":"sanic-org","description":" Accelerate your web app development  | Build fast. Run fast.","archived":false,"fork":false,"pushed_at":"2024-04-10T12:10:56.000Z","size":9669,"stargazers_count":17713,"open_issues_count":108,"forks_count":1523,"subscribers_count":405,"default_branch":"main","last_synced_at":"2024-04-15T09:05:17.863Z","etag":null,"topics":["api-server","asgi","asyncio","framework","python","sanic","web","web-framework","web-server"],"latest_commit_sha":null,"homepage":"https://sanic.dev","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/sanic-org.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":null,"patreon":null,"open_collective":"sanic-org","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-05-26T04:38:22.000Z","updated_at":"2024-04-15T08:51:54.000Z","dependencies_parsed_at":"2023-07-12T16:00:40.665Z","dependency_job_id":"5d27c5f0-a488-47ea-a89d-377009837fa1","html_url":"https://github.com/sanic-org/sanic","commit_stats":{"total_commits":2027,"total_committers":377,"mean_commits":5.376657824933687,"dds":0.8623581647755303,"last_synced_commit":"f8e0a7221e85355005d0f8c1084d7546115df8fb"},"previous_names":["channelcat/sanic","huge-success/sanic"],"tags_count":82,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanic-org%2Fsanic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanic-org%2Fsanic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanic-org%2Fsanic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanic-org%2Fsanic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanic-org","download_url":"https://codeload.github.com/sanic-org/sanic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947842,"owners_count":21023065,"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":["api-server","asgi","asyncio","framework","python","sanic","web","web-framework","web-server"],"created_at":"2025-04-09T00:01:02.517Z","updated_at":"2025-04-09T00:01:32.002Z","avatar_url":"https://github.com/sanic-org.png","language":"Python","funding_links":["https://opencollective.com/sanic-org"],"categories":["`API Frameworks`","Web Frameworks","Python","Web框架","API Frameworks","Service Toolkits","Web framework for Python"],"sub_categories":["Python"],"readme":".. image:: https://raw.githubusercontent.com/sanic-org/sanic-assets/master/png/sanic-framework-logo-400x97.png\n    :alt: Sanic | Build fast. Run fast.\n\nSanic | Build fast. Run fast.\n=============================\n\n.. start-badges\n\n.. list-table::\n    :widths: 15 85\n    :stub-columns: 1\n\n    * - Build\n      - | |Tests|\n    * - Docs\n      - | |UserGuide| |Documentation|\n    * - Package\n      - | |PyPI| |PyPI version| |Wheel| |Supported implementations| |Code style ruff|\n    * - Support\n      - | |Forums| |Discord| |Awesome|\n    * - Stats\n      - | |Monthly Downloads| |Weekly Downloads| |Conda downloads|\n\n.. |UserGuide| image:: https://img.shields.io/badge/user%20guide-sanic-ff0068\n   :target: https://sanic.dev/\n.. |Forums| image:: https://img.shields.io/badge/forums-community-ff0068.svg\n   :target: https://community.sanicframework.org/\n.. |Discord| image:: https://img.shields.io/discord/812221182594121728?logo=discord\u0026label=Discord\u0026color=5865F2\n   :target: https://discord.gg/FARQzAEMAA\n.. |Tests| image:: https://github.com/sanic-org/sanic/actions/workflows/tests.yml/badge.svg?branch=main\n   :target: https://github.com/sanic-org/sanic/actions/workflows/tests.yml\n.. |Documentation| image:: https://readthedocs.org/projects/sanic/badge/?version=latest\n   :target: http://sanic.readthedocs.io/en/latest/?badge=latest\n.. |PyPI| image:: https://img.shields.io/pypi/v/sanic.svg\n   :target: https://pypi.python.org/pypi/sanic/\n.. |PyPI version| image:: https://img.shields.io/pypi/pyversions/sanic.svg\n   :target: https://pypi.python.org/pypi/sanic/\n.. |Code style ruff| image:: https://img.shields.io/badge/code%20style-ruff-000000.svg\n    :target: https://docs.astral.sh/ruff/\n.. |Wheel| image:: https://img.shields.io/pypi/wheel/sanic.svg\n    :alt: PyPI Wheel\n    :target: https://pypi.python.org/pypi/sanic\n.. |Supported implementations| image:: https://img.shields.io/pypi/implementation/sanic.svg\n    :alt: Supported implementations\n    :target: https://pypi.python.org/pypi/sanic\n.. |Awesome| image:: https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg\n    :alt: Awesome Sanic List\n    :target: https://github.com/mekicha/awesome-sanic\n.. |Monthly Downloads| image:: https://img.shields.io/pypi/dm/sanic.svg\n    :alt: Downloads\n    :target: https://pepy.tech/project/sanic\n.. |Weekly Downloads| image:: https://img.shields.io/pypi/dw/sanic.svg\n    :alt: Downloads\n    :target: https://pepy.tech/project/sanic\n.. |Conda downloads| image:: https://img.shields.io/conda/dn/conda-forge/sanic.svg\n    :alt: Downloads\n    :target: https://anaconda.org/conda-forge/sanic\n\n.. end-badges\n\nSanic is a **Python 3.9+** web server and web framework that's written to go fast. It allows the usage of the ``async/await`` syntax added in Python 3.5, which makes your code non-blocking and speedy.\n\nSanic is also ASGI compliant, so you can deploy it with an `alternative ASGI webserver \u003chttps://sanicframework.org/en/guide/deployment/running.html#asgi\u003e`_.\n\n`Source code on GitHub \u003chttps://github.com/sanic-org/sanic/\u003e`_ | `Help and discussion board \u003chttps://community.sanicframework.org/\u003e`_ | `User Guide \u003chttps://sanicframework.org\u003e`_ | `Chat on Discord \u003chttps://discord.gg/FARQzAEMAA\u003e`_\n\nThe project is maintained by the community, for the community. **Contributions are welcome!**\n\nThe goal of the project is to provide a simple way to get up and running a highly performant HTTP server that is easy to build, to expand, and ultimately to scale.\n\nSponsor\n-------\n\nCheck out `open collective \u003chttps://opencollective.com/sanic-org\u003e`_ to learn more about helping to fund Sanic.\n\n\nInstallation\n------------\n\n``pip install sanic``\n\n    Sanic makes use of ``uvloop`` and ``ujson`` to help with performance. If you do not want to use those packages, simply add an environmental variable ``SANIC_NO_UVLOOP=true`` or ``SANIC_NO_UJSON=true`` at install time.\n\n    .. code:: shell\n\n       $ export SANIC_NO_UVLOOP=true\n       $ export SANIC_NO_UJSON=true\n       $ pip install --no-binary :all: sanic\n\n\n.. note::\n\n  If you are running on a clean install of Fedora 28 or above, please make sure you have the ``redhat-rpm-config`` package installed in case if you want to\n  use ``sanic`` with ``ujson`` dependency.\n\n\nHello World Example\n-------------------\n\n.. code:: python\n\n    from sanic import Sanic\n    from sanic.response import json\n\n    app = Sanic(\"my-hello-world-app\")\n\n    @app.route('/')\n    async def test(request):\n        return json({'hello': 'world'})\n\nSanic can now be easily run from CLI using ``sanic hello.app``.\n\n.. code::\n\n    [2018-12-30 11:37:41 +0200] [13564] [INFO] Goin' Fast @ http://127.0.0.1:8000\n    [2018-12-30 11:37:41 +0200] [13564] [INFO] Starting worker [13564]\n\nAnd, we can verify it is working: ``curl localhost:8000 -i``\n\n.. code::\n\n    HTTP/1.1 200 OK\n    Connection: keep-alive\n    Keep-Alive: 5\n    Content-Length: 17\n    Content-Type: application/json\n\n    {\"hello\":\"world\"}\n\n**Now, let's go build something fast!**\n\nMinimum Python version is 3.9.\n\nDocumentation\n-------------\n\nUser Guide, Changelog, and API Documentation can be found at `sanic.dev \u003chttps://sanic.dev\u003e`__.\n\n\nQuestions and Discussion\n------------------------\n\n`Ask a question or join the conversation \u003chttps://community.sanicframework.org/\u003e`__.\n\nContribution\n------------\n\nWe are always happy to have new contributions. We have `marked issues good for anyone looking to get started \u003chttps://github.com/sanic-org/sanic/issues?q=is%3Aopen+is%3Aissue+label%3Abeginner\u003e`_, and welcome `questions on the forums \u003chttps://community.sanicframework.org/\u003e`_. Please take a look at our `Contribution guidelines \u003chttps://github.com/sanic-org/sanic/blob/master/CONTRIBUTING.rst\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchannelcat%2Fsanic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchannelcat%2Fsanic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchannelcat%2Fsanic/lists"}