sanic-25.3.0


توضیحات

A web server and web framework that's written to go fast. Build fast. Run fast.
ویژگی مقدار
سیستم عامل -
نام فایل sanic-25.3.0
نام sanic
نسخه کتابخانه 25.3.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Sanic Community
ایمیل نویسنده admhpkns@gmail.com
آدرس صفحه اصلی http://github.com/sanic-org/sanic/
آدرس اینترنتی https://pypi.org/project/sanic/
مجوز MIT
.. image:: https://raw.githubusercontent.com/sanic-org/sanic-assets/master/png/sanic-framework-logo-400x97.png :alt: Sanic | Build fast. Run fast. Sanic | Build fast. Run fast. ============================= .. start-badges .. list-table:: :widths: 15 85 :stub-columns: 1 * - Build - | |Tests| * - Docs - | |UserGuide| |Documentation| * - Package - | |PyPI| |PyPI version| |Wheel| |Supported implementations| |Code style ruff| * - Support - | |Forums| |Discord| |Awesome| * - Stats - | |Monthly Downloads| |Weekly Downloads| |Conda downloads| .. |UserGuide| image:: https://img.shields.io/badge/user%20guide-sanic-ff0068 :target: https://sanic.dev/ .. |Forums| image:: https://img.shields.io/badge/forums-community-ff0068.svg :target: https://community.sanicframework.org/ .. |Discord| image:: https://img.shields.io/discord/812221182594121728?logo=discord&label=Discord&color=5865F2 :target: https://discord.gg/FARQzAEMAA .. |Tests| image:: https://github.com/sanic-org/sanic/actions/workflows/tests.yml/badge.svg?branch=main :target: https://github.com/sanic-org/sanic/actions/workflows/tests.yml .. |Documentation| image:: https://readthedocs.org/projects/sanic/badge/?version=latest :target: http://sanic.readthedocs.io/en/latest/?badge=latest .. |PyPI| image:: https://img.shields.io/pypi/v/sanic.svg :target: https://pypi.python.org/pypi/sanic/ .. |PyPI version| image:: https://img.shields.io/pypi/pyversions/sanic.svg :target: https://pypi.python.org/pypi/sanic/ .. |Code style ruff| image:: https://img.shields.io/badge/code%20style-ruff-000000.svg :target: https://docs.astral.sh/ruff/ .. |Wheel| image:: https://img.shields.io/pypi/wheel/sanic.svg :alt: PyPI Wheel :target: https://pypi.python.org/pypi/sanic .. |Supported implementations| image:: https://img.shields.io/pypi/implementation/sanic.svg :alt: Supported implementations :target: https://pypi.python.org/pypi/sanic .. |Awesome| image:: https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg :alt: Awesome Sanic List :target: https://github.com/mekicha/awesome-sanic .. |Monthly Downloads| image:: https://img.shields.io/pypi/dm/sanic.svg :alt: Downloads :target: https://pepy.tech/project/sanic .. |Weekly Downloads| image:: https://img.shields.io/pypi/dw/sanic.svg :alt: Downloads :target: https://pepy.tech/project/sanic .. |Conda downloads| image:: https://img.shields.io/conda/dn/conda-forge/sanic.svg :alt: Downloads :target: https://anaconda.org/conda-forge/sanic .. end-badges Sanic is a **Python 3.10+** 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. Sanic is also ASGI compliant, so you can deploy it with an `alternative ASGI webserver <https://sanicframework.org/en/guide/deployment/running.html#asgi>`_. `Source code on GitHub <https://github.com/sanic-org/sanic/>`_ | `Help and discussion board <https://community.sanicframework.org/>`_ | `User Guide <https://sanicframework.org>`_ | `Chat on Discord <https://discord.gg/FARQzAEMAA>`_ The project is maintained by the community, for the community. **Contributions are welcome!** 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. Sponsor ------- Check out `open collective <https://opencollective.com/sanic-org>`_ to learn more about helping to fund Sanic. Installation ------------ ``pip install sanic`` 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. .. code:: shell $ export SANIC_NO_UVLOOP=true $ export SANIC_NO_UJSON=true $ pip install --no-binary :all: sanic .. note:: 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 use ``sanic`` with ``ujson`` dependency. Hello World Example ------------------- .. code:: python from sanic import Sanic from sanic.response import json app = Sanic("my-hello-world-app") @app.route('/') async def test(request): return json({'hello': 'world'}) Sanic can now be easily run from CLI using ``sanic hello.app``. .. code:: [2018-12-30 11:37:41 +0200] [13564] [INFO] Goin' Fast @ http://127.0.0.1:8000 [2018-12-30 11:37:41 +0200] [13564] [INFO] Starting worker [13564] And, we can verify it is working: ``curl localhost:8000 -i`` .. code:: HTTP/1.1 200 OK Connection: keep-alive Keep-Alive: 5 Content-Length: 17 Content-Type: application/json {"hello":"world"} **Now, let's go build something fast!** Minimum Python version is 3.10. Documentation ------------- User Guide, Changelog, and API Documentation can be found at `sanic.dev <https://sanic.dev>`__. Questions and Discussion ------------------------ `Ask a question or join the conversation <https://community.sanicframework.org/>`__. Contribution ------------ We are always happy to have new contributions. We have `marked issues good for anyone looking to get started <https://github.com/sanic-org/sanic/issues?q=is%3Aopen+is%3Aissue+label%3Abeginner>`_, and welcome `questions on the forums <https://community.sanicframework.org/>`_. Please take a look at our `Contribution guidelines <https://github.com/sanic-org/sanic/blob/master/CONTRIBUTING.md>`_.


نیازمندی

مقدار نام
- sanic-routing>=23.12.0
- httptools>=0.0.10
ys_platfor uvloop>=0.15.0;
ys_platfor ujson>=1.35;
- aiofiles>=0.6.0
- websockets>=10.0
- multidict<7.0,>=5.0
- html5tagger>=1.2.1
- tracerite>=2.2.0
- typing-extensions>=4.4.0
- setuptools>=70.1.0
xtr sanic-testing>=23.6.0;
xtr pytest>=8.2.2;
xtr pytest-xdist>=3.5.0;
xtr pytest-cov>=4.0.0;
xtr coverage;
xtr beautifulsoup4;
xtr pytest-sanic;
xtr pytest-benchmark;
xtr chardet==3.*;
xtr ruff;
xtr bandit;
xtr mypy;
xtr docutils;
xtr pygments;
xtr uvicorn;
xtr slotscheck<1,>=0.8.0;
sys_platfor types-ujson;
xtr sanic-testing>=23.6.0;
xtr pytest>=8.2.2;
xtr pytest-xdist>=3.5.0;
xtr pytest-cov>=4.0.0;
xtr coverage;
xtr beautifulsoup4;
xtr pytest-sanic;
xtr pytest-benchmark;
xtr chardet==3.*;
xtr ruff;
xtr bandit;
xtr mypy;
xtr docutils;
xtr pygments;
xtr uvicorn;
xtr slotscheck<1,>=0.8.0;
sys_platfor types-ujson;
xtr cryptography;
xtr tox;
xtr towncrier;
xtr sphinx>=2.1.2;
xtr sphinx_rtd_theme>=0.4.3;
xtr docutils;
xtr pygments;
xtr m2r2;
xtr enum-tools[sphinx];
xtr mistune>=2.0.0;
xtr autodocsumm>=0.2.11;
xtr msgspec;
xtr python-frontmatter;
xtr docstring-parser;
xtr libsass;
xtr mypy;
xtr msgspec;
xtr bandit;
xtr chardet==3.*;
xtr slotscheck<1,>=0.8.0;
xtr sphinx_rtd_theme>=0.4.3;
xtr docstring-parser;
xtr mistune>=2.0.0;
xtr tox;
xtr pytest-xdist>=3.5.0;
xtr beautifulsoup4;
xtr enum-tools[sphinx];
xtr coverage;
xtr sphinx>=2.1.2;
xtr libsass;
xtr cryptography;
xtr uvicorn;
xtr m2r2;
xtr pytest>=8.2.2;
xtr autodocsumm>=0.2.11;
xtr ruff;
sys_platfor types-ujson;
xtr sanic-testing>=23.6.0;
xtr python-frontmatter;
xtr pytest-benchmark;
xtr towncrier;
xtr pytest-cov>=4.0.0;
xtr pytest-sanic;
xtr docutils;
xtr pygments;
xtr sanic-ext;
xtr aioquic;


زبان مورد نیاز

مقدار نام
>=3.10 Python


نحوه نصب


نصب پکیج whl sanic-25.3.0:

    pip install sanic-25.3.0.whl


نصب پکیج tar.gz sanic-25.3.0:

    pip install sanic-25.3.0.tar.gz