Skip to main content

The newest contender in Server Gateway interface.

Project description


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 (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.


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:

server = Server()
runner = Runner(server)

@server.get("/", method="GET")
async def index(request):
	response = Response("Hello.")
	return await response() # or return response

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nsgi-1.0.4.tar.gz (7.0 kB view hashes)

Uploaded source

Built Distribution

nsgi-1.0.4-py3-none-any.whl (14.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page