Skip to main content

Simple ASGI HTTP 1.1 web server

Project description

# Simple ASGI HTTP 1.1 server implementation

This framework was inspired by [hypercorn]( framework.

## How to install

pip install simple-asgi

## Example

import os
import socket

from simple_asgi import app
from simple_asgi import response
from simple_asgi import router

async def hello(request):
request_body = await
return response.Response(body=request_body)

sock_path = "/tmp/fn.sock"
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)


rtr = router.Router()
rtr.add("/call", ["POST"], hello)
http_app = app.SimpleASGI(name=__name__, router=rtr)


Project details

Download files

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

Files for simple-asgi, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size simple_asgi-0.0.2-py3-none-any.whl (16.2 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page