Socks is a simple server framework, built only using the standard python library.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
socks-server-0.1.2.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for socks_server-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a61d7cd3a4eedd219eeaa1f3365bc93e863fbcf7b650c0334418512608c1a524 |
|
MD5 | 8d82ac65b6d7499a01601162357828b8 |
|
BLAKE2b-256 | dd4f13f3b8f407073ebfaed7964ac67d44a77cb374c1ab1850a612a7a7ebdeef |