socketwrench
A webserver based on socket.
Usage
import logging
from socketwrench import Server as SocketWrench
from pathlib import Path
logging.basicConfig(level=logging.DEBUG)
class Sample:
def a(self):
return "yes this is a"
def b(self):
return {"x": 6, "y": 7}
def c(self):
return Path(__file__)
def d(self, x: int, y: int):
return int(x) + int(y)
def e(self):
raise Exception("This is an exception")
s = Sample()
SocketWrench(s, serve=True)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
socketwrench-0.1.0.tar.gz
(12.1 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 socketwrench-0.1.0.tar.gz.
File metadata
- Download URL: socketwrench-0.1.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e43ab5fac4fa25932e15eea4325a2c02ef44a97f861fe2f7a08001a10ab305a3
|
|
| MD5 |
97e8961318a1bad404e33f1ac7d11229
|
|
| BLAKE2b-256 |
ed67dfe915744d8ec4b5ee6a06a64126fabf729cad4861afd6210457ceeb99d3
|
File details
Details for the file socketwrench-0.1.0-py3-none-any.whl.
File metadata
- Download URL: socketwrench-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af9fc899cbb33b07ed1d811c2664706fbbca1059244ada429244a8dd35cf1d47
|
|
| MD5 |
a8be29b4a269145cf52169d4fd178c5a
|
|
| BLAKE2b-256 |
cbc652f8166f0fd87af76d9e50c43c27c271ea71d59f922b96a92e4039c68aff
|