NanoASGI: Asynchronous Python Web Framework
NanoASGI is a fast⚡, simple and light💡weight ASGI micro🔬 web🌏-framework for Python🐍. It is distributed as a single file module and has no dependencies other than the Python Standard Library.
Download and Install
Download ⬇️ nanoasgi.py into your project directory. There are no hard dependencies other than the Python standard library. NanoASGI runs with Python versions above 3.7.
Example
# example.py
from nanoasgi import App, Response
app = App()
@app.on('startup')
async def on_startup():
print('Ready to serve requests')
@app.on('shutdown')
async def on_shutdown():
print('Shutting down')
@app.route('GET', '/api/hello/{name}/')
async def hello_handler(request, name):
return Response(
{'result': f'Hello {name}!'},
status=200,
headers=[('Content-Type', 'application/json')],
)
uvicorn example:app
visit docs for more infomation.
License
Code and documentation are available according to the MIT License📃 (see LICENSE).
The NanoASGI logo however is NOT covered by that license. It is allowed to use the logo as a link to the repo or in direct context with the unmodified library. In all other cases, please ask first.
Metadata
Release files for NanoASGI 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| NanoASGI-0.0.5.tar.gz | 6.3 kB | Without provenance | Details for NanoASGI-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| NanoASGI-0.0.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for NanoASGI-0.0.5-py2.py3-none-any.whl |
Total release size: 14.7 kB
Release files / NanoASGI-0.0.5.tar.gz
| Download URL | NanoASGI-0.0.5.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83572d32a0de71fa4392b5fea3ad22011250525df1ccd2c44996fd4977495ecf
|
|
BLAKE2b-256 checksum How to use checksums |
0a8b2f5a611a38257b5cd8e707b8d3a35347e84443586655e8cf95c74e5f0792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.16
|
Release files / NanoASGI-0.0.5-py2.py3-none-any.whl
| Download URL | NanoASGI-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
709c3df8b215f0a528a6169905252e2ca4463791b10df82b6b01d6b1c3a8c69c
|
|
BLAKE2b-256 checksum How to use checksums |
d807ee512a15f5d43517998e5a08f737cd1fc7c4130e364e8113b76ff5b267df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.16
|
Security for NanoASGI 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.