Skip to content

A simple server framework, built only using the standard python library

Notifications You must be signed in to change notification settings

PaddeCraft/socks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socks

Socks (socket server) is a simple server framework, built only using the standard python library. Its syntax is strongly inspired by the microframework flask.

Basic usage

from socks import Socks, Response

app = Socks()

@app.route(path:str, methods:list[str]=["GET"])
def function(req):
    return Response(f"<h1>{req.method}</h1>", contentType="text/html")

For other things, look at the testserver.py file.

About

A simple server framework, built only using the standard python library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published