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()
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 | |
|---|---|---|---|
| nsgi-1.0.4.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nsgi-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
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
|