Need advice about which tool to choose?Ask the StackShare community!

Sanic

95
133
+ 1
10
Uvicorn

82
118
+ 1
0
Add tool

Uvicorn vs Sanic: What are the differences?

Uvicorn: The lightning-fast ASGI server. It is a lightning-fast ASGI server, built on uvloop and httptools Until recently Python has lacked a minimal low-level server/application interface for asyncio frameworks. The ASGI specification fills this gap, and means we're now able to start building a common set of tooling usable across all asyncio frameworks.; Sanic: Python 3.5+ web server that's written to go fast. Sanic is a Flask-like Python 3.5+ web server that's written to go fast. It's based on the work done by the amazing folks at magicstack. On top of being Flask-like, Sanic supports async request handlers.

Uvicorn and Sanic can be primarily classified as "Web Servers" tools.

Uvicorn and Sanic are both open source tools. Sanic with 14K GitHub stars and 1.28K forks on GitHub appears to be more popular than Uvicorn with 2.94K GitHub stars and 214 GitHub forks.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Sanic
Pros of Uvicorn
  • 5
    Asyncio
  • 2
    Fast
  • 2
    Easy to use server
  • 1
    Websockets
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    - No public GitHub repository available -

    What is Sanic?

    Sanic is a Flask-like Python 3.5+ web server that's written to go fast. It's based on the work done by the amazing folks at magicstack. On top of being Flask-like, Sanic supports async request handlers.

    What is Uvicorn?

    It is a lightning-fast ASGI server, built on uvloop and httptools. Until recently Python has lacked a minimal low-level server/application interface for asyncio frameworks. The ASGI specification fills this gap, and means we're now able to start building a common set of tooling usable across all asyncio frameworks.

    Need advice about which tool to choose?Ask the StackShare community!

    Jobs that mention Sanic and Uvicorn as a desired skillset
    What companies use Sanic?
    What companies use Uvicorn?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Sanic?
    What tools integrate with Uvicorn?
    What are some alternatives to Sanic and Uvicorn?
    Flask
    Flask is intended for getting started very quickly and was developed with best intentions in mind.
    AIOHTTP
    It is an Async http client/server framework. It supports both client and server Web-Sockets out-of-the-box and avoids Callback. It provides Web-server with middlewares and pluggable routing.
    Tornado
    By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.
    NGINX
    nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. According to Netcraft nginx served or proxied 30.46% of the top million busiest sites in Jan 2018.
    Apache HTTP Server
    The Apache HTTP Server is a powerful and flexible HTTP/1.1 compliant web server. Originally designed as a replacement for the NCSA HTTP Server, it has grown to be the most popular web server on the Internet.
    See all alternatives