# Sanic

Sanic is a Python 3.6+ 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.

The 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.

Sanic is developed on GitHub. Contributions are welcome!

## Sanic aspires to be simple

    from sanic import Sanic
    from sanic.response import json

    app = Sanic()

    @app.route("/")
    async def test(request):
        return json({"hello": "world"})

    if __name__ == "__main__":
        app.run(host="0.0.0.0", port=8000)

Note

Sanic does not support Python 3.5 from version 19.6 and forward. However, version 18.12LTS is supported thru December 2020. Official Python support for version 3.5 is set to expire in September 2020.

# Guides

System Message: ERROR/3 (`E:/OneDrive/GitHub/sanic/docs/index.rst`, line 6)

Unknown directive type "toctree".

    .. toctree::
       :maxdepth: 2

       sanic/getting_started
       sanic/config
       sanic/logging
       sanic/request_data
       sanic/response
       sanic/cookies
       sanic/routing
       sanic/blueprints
       sanic/static_files
       sanic/versioning
       sanic/exceptions
       sanic/middleware
       sanic/websocket
       sanic/decorators
       sanic/streaming
       sanic/class_based_views
       sanic/custom_protocol
       sanic/sockets
       sanic/ssl
       sanic/debug_mode
       sanic/testing
       sanic/deploying
       sanic/extensions
       sanic/examples
       sanic/changelog
       sanic/contributing
       sanic/api_reference
       sanic/asyncio_python37

# Module Documentation

System Message: ERROR/3 (`E:/OneDrive/GitHub/sanic/docs/index.rst`, line 42)

Unknown directive type "toctree".

    .. toctree::

- :ref:`genindex`

  System Message: ERROR/3 (`E:/OneDrive/GitHub/sanic/docs/index.rst`, line 44); backlink

  Unknown interpreted text role "ref".

- :ref:`modindex`

  System Message: ERROR/3 (`E:/OneDrive/GitHub/sanic/docs/index.rst`, line 45); backlink

  Unknown interpreted text role "ref".

- :ref:`search`

  System Message: ERROR/3 (`E:/OneDrive/GitHub/sanic/docs/index.rst`, line 46); backlink

  Unknown interpreted text role "ref".