Async Http Server
The simplest async python http server library.
Example
import asyncio
from asyncbasehttp import request_handler, Request, Response
@request_handler
async def handle_request(req: Request):
return Response.create_ok_response(f'You requested path: {req.path}'.encode())
async def main():
server = await asyncio.start_server(handle_request, port=8000)
print("http://localhost:8000")
await server.serve_forever()
asyncio.run(main())
Metadata
Release files for asyncbasehttp 1.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 | |
|---|---|---|---|
| asyncbasehttp-1.0.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncbasehttp-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / asyncbasehttp-1.0.tar.gz
| Download URL | asyncbasehttp-1.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cea7b61113bb1e69d1c90f32919f004e7f56a7e1e2955e8a6286ce40f9da188
|
|
BLAKE2b-256 checksum How to use checksums |
8b0e666c878b9855cff5fa3f91a51d314bfbcdc1867c3caa2c80fe01f6f5a29d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.5
|
Release files / asyncbasehttp-1.0-py3-none-any.whl
| Download URL | asyncbasehttp-1.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70fb983c4df630a9b63081cb8ef6d2e06beb51c89f42a88da6c9a9c7ebf9fb89
|
|
BLAKE2b-256 checksum How to use checksums |
b78806b5baecac1955166514ab573a13349eb5c4727b5c9326c49c0b4c613ae8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.5
|