Skip to main content

Xevel

My first attempt at a python ASGI server

Xevel is very much my first attempt at an ASGI server and it is definitely not perfect. I am open to any PRs or issues if you come across any problems.

A basic use example of Xevel could look like this:

from xevel import *

web = Xevel(
    ("localhost", 9208)
)  # you can use tuples for port setups ('localhost', PORT') or unix sockets (provide file location as string)
# ('localhost', 9208) # inet
# '/tmp/test.sock' # unix

router = Router(
    "localhost:9208"
)  # force routers to only accept connections from certain domain/subdomains. can provide 1 as a string or multiple as a list


@router.before_request()
async def breq(req):
    print("before request is running!!!")


@router.after_request()
async def areq(req):
    print(f"after request is running!!! endpoint: {req.url}")


@router.route("/test")
async def test_route(req):
    req.resp_headers["XD"] = "lol"
    return "asgi server works no way!!!"


@web.before_serving()
async def before():
    print("before serving is running!!!")


@web.after_serving()
async def after():
    print("after serving is running!!!")


web.add_router(router)
web.start()

Metadata

Release files for Xevel 0.4.4

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

Source distribution (sdist)

Source distribution for Xevel 0.4.4
File Size Uploaded Provenance
Xevel-0.4.4.tar.gz 6.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 13.3 kB

Release files / Xevel-0.4.4.tar.gz

Download URL Xevel-0.4.4.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c477d6998f4ae986a63badd0ca950dbf3cf4c1134aec74be1002f5b96299bd7f
BLAKE2b-256 checksum
How to use checksums
2238b8c58d060836e4431207cd863072092e94c7111a49241b1d0508ad15dc09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / Xevel-0.4.4-py3-none-any.whl

Download URL Xevel-0.4.4-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec78bf26636765f2b2987ffa5078c2ffd51fcb5156700cc6d59d380107c3367c
BLAKE2b-256 checksum
How to use checksums
8ba0118f98c4c75751e18974860a25a3456dd8c296d98a6c068d9677ab1fac6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Security for Xevel 0.4.4

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.

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files No provenance

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