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.
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file socks-server-0.1.2.tar.gz.
File metadata
- Download URL: socks-server-0.1.2.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.1.14 CPython/3.10.9 Linux/6.1.10-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02e4e12379ce96dd385eeecb73af5845859a13599b5b026606be40010cf74d84
|
|
| MD5 |
7a2198549b1fcd8f862233e821e60109
|
|
| BLAKE2b-256 |
34cf4c83845458a4d46ac2da0aa45c0f34af07eea2248400d0fbb1248d007e31
|
File details
Details for the file socks_server-0.1.2-py3-none-any.whl.
File metadata
- Download URL: socks_server-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.1.14 CPython/3.10.9 Linux/6.1.10-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a61d7cd3a4eedd219eeaa1f3365bc93e863fbcf7b650c0334418512608c1a524
|
|
| MD5 |
8d82ac65b6d7499a01601162357828b8
|
|
| BLAKE2b-256 |
dd4f13f3b8f407073ebfaed7964ac67d44a77cb374c1ab1850a612a7a7ebdeef
|