nsgi
The newest contender in Server Gateway Interface.
Why use this webserver?
This webserver is made with the newest version of asyncio, and sockets, it supports callablle-based interface and also class based. Not enough? Let me tell you how this project works.
How it works
Basically, you create an application, let's say, an API, you run the api with our Runner class and want to visit it, you go to http://development.com (Go to your webserver IP), you will receive a response wich was triggerred from the Response you gave in the code.
It's as simple as it sounds.
Example:
Want an example? Here:
from nsgi.application import AsyncServer
from nsgi.runner import Runner
from nsgi.responses import Response
class Server(AsyncServer):
def __init__(self) -> None:
super().__init__()
server = Server()
runner = Runner(server)
@server.get("/", method="GET")
async def index(request):
response = Response("Hello.")
return await response() # or return response
runner.run()
Metadata
Release files for nsgi 1.0.4
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 |
|---|---|---|---|---|
| nsgi-1.0.4.tar.gz | 7.0 kB | Without provenance | Details for nsgi-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nsgi-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for nsgi-1.0.4-py3-none-any.whl |
Total release size: 21.5 kB
Release files / nsgi-1.0.4.tar.gz
| Download URL | nsgi-1.0.4.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35eccbd86064537b147b9e5af502abd2d619bae9f31e2cd91aef0a901738e9fd
|
|
BLAKE2b-256 checksum How to use checksums |
e0d481c6bc24876dbf6aa16d32a470314dd1893ed6fe716e09556db1f26202e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / nsgi-1.0.4-py3-none-any.whl
| Download URL | nsgi-1.0.4-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b31c7a40bf13e954d8729cea0fa36ad74f9aa50608b8aeb7209aabf7cdfd7b0
|
|
BLAKE2b-256 checksum How to use checksums |
0e85dfe94a94f05dcca2b69a2a53c54d66f925a283a5aab43f6c7a4fbbb06deb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for nsgi 1.0.4
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.