Skip to main content

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


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)

Uploaded Source

Built Distribution

socks_server-0.1.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

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

Hashes for socks-server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 02e4e12379ce96dd385eeecb73af5845859a13599b5b026606be40010cf74d84
MD5 7a2198549b1fcd8f862233e821e60109
BLAKE2b-256 34cf4c83845458a4d46ac2da0aa45c0f34af07eea2248400d0fbb1248d007e31

See more details on using hashes here.

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

Hashes for socks_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a61d7cd3a4eedd219eeaa1f3365bc93e863fbcf7b650c0334418512608c1a524
MD5 8d82ac65b6d7499a01601162357828b8
BLAKE2b-256 dd4f13f3b8f407073ebfaed7964ac67d44a77cb374c1ab1850a612a7a7ebdeef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page