Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work. Learn more →
Top 19 Python HTTP Server Projects
-
Project mention: How to Stream Bytes Uploaded so far in Python like XMLHttpRequest: progress event | reddit.com/r/learnpython | 2022-09-08
-
Project mention: Web.Contents based on information in columns (each row) iteration | reddit.com/r/PowerQuery | 2023-01-22
let response = try Web.Contents( "https://httpbin.org", [ RelativePath = "/status/codes/418", ManualStatusHandling = {401, 402, 404} & {405..500} ] ) catch (e) => "Error, but we caught it" meta e in response
-
Sonar
Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
-
gunicorn
gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.
For building your API, I recommend using the Flask library. It is very beginner-friendly, and you will be able to build a simple API in a matter of minutes! Keep in mind that, for a more serious project, you should definitely use something like gunicorn to run you API as a production server.
-
hug
Embrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler.
-
So now we test if the application is working by running the application with uvicorn. Command has this format: uvicorn .:
-
updog
Updog is a replacement for Python's SimpleHTTPServer. It allows uploading and downloading via HTTP/S, can set ad hoc SSL certificates and use http basic auth.
Project mention: What online cyber security tools do you wish existed? | reddit.com/r/netsecstudents | 2023-01-27 -
proxy.py
⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • 😈 TLS interception • 🔒 DNS-over-HTTPS • 🔥 Poor Man's VPN • ⏪ Reverse & ⏩ Forward • 👮🏿 "Proxy Server" framework • 🌐 "Web Server" framework • ➵ ➶ ➷ ➠ "PubSub" framework • 👷 "Work" acceptor & executor framework
[Not my project]
A very well features proxy server (Forward & Reverse + lots of other features).
https://github.com/abhinavsingh/proxy.py
-
InfluxDB
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
-
Project mention: Tautulli won't start with Fedora 37 (Python 3.11) | reddit.com/r/Tautulli | 2022-10-22
-
Project mention: Ask HN: What have you created that deserves a second chance on HN? | news.ycombinator.com | 2023-01-26
I've three things :),
1. Quart, https://quart.palletsprojects.com, an ASGI (async/await) re-implementation of the Python web MicroFramework Flask. It is now maintained alongside, by the same people, as Flask.
2. Hypercorn, https://hypercorn.readthedocs.io, an ASGI/WSGI server that supports HTTP/1, HTTP/2, and HTTP/3.
3. My book "A Blueprint for Production-Ready Web Applications", which uses both of the above and shows a beginner how to build a full stack app (React frontend) running on AWS. See https://pgjones.dev/tozo/ for details, code, and link to the example app.
-
Project mention: How to exit cleanly from flask and waitress running as a windows pywin32 service | reddit.com/r/codehunter | 2022-03-27
I have spent hours reviewing and testing ways of making waitress exit cleanly (like this and this) but the best I can do so far is a kind of suicidal SIGINT which makes Windows complain "the pipe has been ended" when stopping through the Services control panel, but at least it stops :-/ I guess the pythonservice.exe which pywin32 starts, should not terminate, just the waitress treads?
-
As you can see, in this benchmark Starlite handily beats even blakchseep, a notoriously fast ASGI framework written in Cython
-
Project mention: Granian – a Rust HTTP server for Python applications | news.ycombinator.com | 2023-01-16
for those wishing to use http3 with a Python web framework, the ASGI hypercorn[1] currently supports it.
made a Django example last week with a sample client based on the examples from aioquic[2]: https://github.com/djstein/django-http3-example
this example also includes the first pass at async Django REST Framework using adrift[3] based on these GitHub issues:
- https://github.com/encode/django-rest-framework/pull/8617
- https://github.com/encode/django-rest-framework/issues/8496
sources
[1]: https://github.com/pgjones/hypercorn
-
instant_api
Instantly create an HTTP API with automatic type conversions, JSON RPC, and a Swagger UI. Just add methods!
-
-
Use ampule, another HTTP server library for CircuitPython that does allow response headers
-
flask-discord-interactions
A Flask extension to enable declarative definitions for Discord slash commands.
-
stream_video_server
demonstrates how to create video streaming server with the help of aiohttp and opencv
-
-
endrpi-server
Endpoints for Raspberry Pi (Endrpi) is a web API server for the Raspberry Pi that provides basic statuses and GPIO controls through a collection of HTTP endpoints.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Python HTTP Server related posts
- How do I implement this?
- What online cyber security tools do you wish existed?
- Web.Contents based on information in columns (each row) iteration
- How to Turn Increased Resource Usage into an Advantage For You
- Best method to communicate between Svelte front-end and python back-end
- API Testing Demo Site
- Microservice Architecture with Spring Cloud in Code
-
A note from our sponsor - Sonar
www.sonarsource.com | 4 Feb 2023
Index
What are some of the best open-source HTTP Server projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | AIOHTTP | 13,203 |
2 | httpbin | 11,422 |
3 | gunicorn | 8,755 |
4 | hug | 6,696 |
5 | uvicorn | 6,100 |
6 | updog | 2,406 |
7 | proxy.py | 2,282 |
8 | CherryPy | 1,644 |
9 | quart | 1,589 |
10 | waitress | 1,181 |
11 | BlackSheep | 1,148 |
12 | hypercorn | 449 |
13 | instant_api | 118 |
14 | BCA-Phantom | 85 |
15 | ampule | 48 |
16 | flask-discord-interactions | 40 |
17 | stream_video_server | 16 |
18 | easyhttp | 5 |
19 | endrpi-server | 3 |