Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

socketwrench-0.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for socketwrench-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e43ab5fac4fa25932e15eea4325a2c02ef44a97f861fe2f7a08001a10ab305a3
MD5 97e8961318a1bad404e33f1ac7d11229
BLAKE2b-256 ed67dfe915744d8ec4b5ee6a06a64126fabf729cad4861afd6210457ceeb99d3

See more details on using hashes here.

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

Hashes for socketwrench-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af9fc899cbb33b07ed1d811c2664706fbbca1059244ada429244a8dd35cf1d47
MD5 a8be29b4a269145cf52169d4fd178c5a
BLAKE2b-256 cbc652f8166f0fd87af76d9e50c43c27c271ea71d59f922b96a92e4039c68aff

See more details on using hashes here.

Release history Release notifications | RSS feed

2.3.1

2 files

2.3.0

2 files

2.2.10

2 files

2.2.9

2 files

2.2.8

2 files

2.2.7

2 files

2.2.6

2 files

2.2.5

2 files

2.2.4

2 files

2.2.3

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.4

2 files

2.0.3

2 files

2.0.1

2 files

2.0.0

2 files

1.9.3

2 files

1.9.2

2 files

1.9.1

2 files

1.9.0

2 files

1.8.9

2 files

1.8.8

2 files

1.8.7

2 files

1.8.6

2 files

1.8.5

2 files

1.8.4

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.1

2 files

0.2.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page