sanic-org/sanic — công cụ cho lập trình viên — đang có 18.6k sao GitHub trong nhóm Developer Tools. Accelerate your web app development | Build fast. Run fast.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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.
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-org/sanic thuộc nhóm Developer Tools trên TopGit, cùng 9 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về sanic-org/sanic ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/sanic-org/sanic là nguồn chính thức.
sanic-org/sanic có phải mã nguồn mở không?
Có — sanic-org/sanic phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/sanic-org/sanic.
sanic-org/sanic là gì?
sanic-org/sanic (sanic-org/sanic) là dự án Python trên GitHub. Theo mô tả gốc: Accelerate your web app development | Build fast. Run fast.
sanic-org/sanic so với các dự án Developer Tools khác thế nào?
sanic-org/sanic được TopGit xếp vào nhóm Developer Tools, với 18.6k sao GitHub và viết bằng Python. Xem trang chủ đề Developer Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao sanic-org/sanic được xếp vào nhóm Developer Tools?
TopGit xếp sanic-org/sanic vào nhóm Developer Tools dựa trên GitHub topics và mô tả của repo (gắn thẻ: "api-server", "asgi", "asyncio"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về sanic?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về sanic.