Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Hoppscotch | 54,664 | 2 | 14 hours ago | 9 | February 07, 2023 | 179 | mit | TypeScript | ||
👽 Open source API development ecosystem - https://hoppscotch.io | ||||||||||
Mitmproxy | 32,310 | 423 | 50 | 21 hours ago | 55 | November 02, 2022 | 303 | mit | Python | |
An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers. | ||||||||||
Curl | 31,293 | 78 | 10 hours ago | 36 | June 16, 2023 | 63 | other | C | ||
A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. libcurl offers a myriad of powerful features | ||||||||||
Echo | 26,636 | 2,514 | 2 days ago | 171 | July 16, 2023 | 77 | mit | Go | ||
High performance, minimalist Go web framework | ||||||||||
Iris | 24,354 | 429 | 2 days ago | 216 | July 17, 2023 | 95 | bsd-3-clause | Go | ||
The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket: | ||||||||||
Uwebsockets | 16,024 | 3 | 3 days ago | 14 | October 20, 2018 | 28 | apache-2.0 | C++ | ||
Simple, secure & standards compliant web server for the most demanding of applications | ||||||||||
Zlmediakit | 10,648 | 14 days ago | 43 | mit | C++ | |||||
WebRTC/RTSP/RTMP/HTTP/HLS/HTTP-FLV/WebSocket-FLV/HTTP-TS/HTTP-fMP4/WebSocket-TS/WebSocket-fMP4/GB28181/SRT server and client framework based on C++11 | ||||||||||
Http Proxy Middleware | 10,134 | 359,536 | 7,401 | 18 days ago | 79 | March 03, 2023 | 94 | mit | TypeScript | |
:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more | ||||||||||
Mongoose | 9,863 | 17 hours ago | 1 | February 27, 2018 | 1 | other | C | |||
Embedded Web Server | ||||||||||
Starlette | 8,674 | 288 | 668 | 3 days ago | 137 | July 24, 2023 | 45 | bsd-3-clause | Python | |
The little ASGI framework that shines. 🌟 |
✨ The little ASGI framework that shines. ✨
Documentation: https://www.starlette.io/
Starlette is a lightweight ASGI framework/toolkit, which is ideal for building async web services in Python.
It is production-ready, and gives you the following:
httpx
.asyncio
and trio
backends.Python 3.8+
$ pip3 install starlette
You'll also want to install an ASGI server, such as uvicorn, daphne, or hypercorn.
$ pip3 install uvicorn
example.py:
from starlette.applications import Starlette
from starlette.responses import JSONResponse
from starlette.routing import Route
async def homepage(request):
return JSONResponse({'hello': 'world'})
routes = [
Route("/", endpoint=homepage)
]
app = Starlette(debug=True, routes=routes)
Then run the application using Uvicorn:
$ uvicorn example:app
For a more complete example, see encode/starlette-example.
Starlette only requires anyio
, and the following are optional:
httpx
- Required if you want to use the TestClient
.jinja2
- Required if you want to use Jinja2Templates
.python-multipart
- Required if you want to support form parsing, with request.form()
.itsdangerous
- Required for SessionMiddleware
support.pyyaml
- Required for SchemaGenerator
support.You can install all of these with pip3 install starlette[full]
.
Starlette is designed to be used either as a complete framework, or as an ASGI toolkit. You can use any of its components independently.
from starlette.responses import PlainTextResponse
async def app(scope, receive, send):
assert scope['type'] == 'http'
response = PlainTextResponse('Hello, world!')
await response(scope, receive, send)
Run the app
application in example.py
:
$ uvicorn example:app
INFO: Started server process [11509]
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
Run uvicorn with --reload
to enable auto-reloading on code changes.
The modularity that Starlette is designed on promotes building re-usable components that can be shared between any ASGI framework. This should enable an ecosystem of shared middleware and mountable applications.
The clean API separation also means it's easier to understand each component in isolation.
Starlette is BSD licensed code.
Designed & crafted with care.— ⭐️ —