Fast and readable async non-blocking network apps
Netius is a Python network library that can be used for the rapid creation of asynchronous non-blocking servers and clients. It has no dependencies, it’s cross-platform, and brings some sample netius-powered servers out of the box, namely a production-ready WSGI server.
Simplicity and performance are the main drivers of this project. The codebase adheres to very strict code standards, and is extensively commented; and as far as performance is concerned, it aims to be up to par with equivalent native implementations, where PyPy can be used to provide the extra boost to raise performance up to these standards.
Installation
pip install netius
Usage
WSGI Server
import netius.servers
def app(environ, start_response):
status = "200 OK"
contents = "Hello World"
content_l = len(contents)
headers = (
("Content-Length", content_l),
("Content-Type", "text/plain"),
("Connection", "keep-alive")
)
start_response(status, headers)
yield contents
server = netius.servers.WSGIServer(app = app)
server.serve(port = 8080)
More
For more information consult the website.
Release files for netius 1.60.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netius-1.60.0.tar.gz | 513.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netius-1.60.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / netius-1.60.0.tar.gz
| Download URL | netius-1.60.0.tar.gz |
|---|---|
| Size | 513.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
678d1b8a79c5699c2b79a769403292e45ab4b9768d56f33fbde2bd2988300384
|
|
BLAKE2b-256 checksum How to use checksums |
b252f7a42ec0afbe2a97149cb6f6c88c476306a85b2c8599b7493789f3153602
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / netius-1.60.0-py2.py3-none-any.whl
| Download URL | netius-1.60.0-py2.py3-none-any.whl |
|---|---|
| Size | 624.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a7b20b06b6298677e898f2645f1ac23cff4b19f8fd5d3c52280bf2e3e7197ea1
|
|
BLAKE2b-256 checksum How to use checksums |
36873e06651a049d9dcb08186239956f72c00d21d44563ff47b2de6736dff7e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|