Skip to main content

Lamp

An asynchronous webserver made with sockets! (Not Finished)

Examples of using Lamp:

from WebLamp import Lamp, Connection

server = Lamp()

@server.route(path = '/', method = ['GET'])
async def home(conn: Connection) -> tuple:

    return 200, b'Hello World!'

server.run(("127.0.0.1", 5000))

1 unique thing about this webserver is you can use a regex in your route and domain!

from WebLamp import Lamp, Connection
import re

server = Lamp()

@server.route(path = re.compile(r'^/u/(?P<userid>[0-9]*)$'), method = ['GET'])
async def home(conn: Connection) -> tuple:

    userid = conn.args['userid'] # this came from the regex that was provided

    return 200, userid.encode()

server.run(("127.0.0.1", 5000))

Metadata

Release files for WebLamp 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WebLamp 0.2.2
File Size Uploaded Provenance Actions
WebLamp-0.2.2.tar.gz 5.0 kB Without provenance Details for WebLamp-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for WebLamp 0.2.2
File Interpreter ABI Platform Actions
WebLamp-0.2.2-py3-none-any.whl Python 3 none any Details for WebLamp-0.2.2-py3-none-any.whl

Total release size: 11.3 kB

Release files / WebLamp-0.2.2.tar.gz

Download URL WebLamp-0.2.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3d0dcb8373c92a3ce36bf9bb55f5b757165ad3bf39b31e4abf2c40baa0bd4582
BLAKE2b-256 checksum
How to use checksums
83f2e63605aae8e7fb34cf3525327d4fb3984e13e1eaaa82e354228541bf95d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

Release files / WebLamp-0.2.2-py3-none-any.whl

Download URL WebLamp-0.2.2-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39c966f5a4b7d52d0033c3361fd4cdb486cd65dc8aaad36619130f01c039c456
BLAKE2b-256 checksum
How to use checksums
2695229227dcfa2c926757886625fbbc63fb1a25709dbdccbfdfb3a33f0526f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.7

Security for WebLamp 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

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