Zero-dependency router for building HTTP services.
Project description
muxy
muxy is a lightweight router for building HTTP services conforming to
Granian's Rust Server Gateway Interface (RSGI). It intentionally avoids magic,
prioritising explicit and composable code.
uv add muxy
Features
- first-class router composition - modularise your code by nesting routers with no overhead
- correct, efficient routing - explicit route heirarchy so behaviour is always predictable
- lightweight - the core router is little more than a simple datastructure
- control - control the full HTTP request/response cycle without digging through framework layers
- middleware - apply common logic to path groups simply and clearly
Inspiration
Go's net/http and go-chi/chi are inspirations for muxy. I wanted their simplicity
without having to switch language. You can think of the RSGI interface as the muxy
equivalent of the net/http HandlerFunc interface, and muxy.Router as an equivalent of
chi's Mux.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 muxy-0.1.0.dev2.tar.gz.
File metadata
- Download URL: muxy-0.1.0.dev2.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bff03cb3acf96fc5069dd4f9f824c1a62e8e280ee0347e4ea8adf83215be1fd1
|
|
| MD5 |
9c7806bcf8d3244de7145a1e5a66a259
|
|
| BLAKE2b-256 |
f102e3f707d70985c5c7b4fe363f0dc6a98a82a13ea3276888bef099ebc66993
|
Provenance
The following attestation bundles were made for muxy-0.1.0.dev2.tar.gz:
Publisher:
release.yaml on oliverlambson/muxy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
muxy-0.1.0.dev2.tar.gz -
Subject digest:
bff03cb3acf96fc5069dd4f9f824c1a62e8e280ee0347e4ea8adf83215be1fd1 - Sigstore transparency entry: 780866143
- Sigstore integration time:
-
Permalink:
oliverlambson/muxy@4a928b7f55183989c47b04efd18f28ffea89e483 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/oliverlambson
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@4a928b7f55183989c47b04efd18f28ffea89e483 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file muxy-0.1.0.dev2-py3-none-any.whl.
File metadata
- Download URL: muxy-0.1.0.dev2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
952f85676ab560f99299dda6947dde369d8c3ab27180035271eb66f5ba075bfe
|
|
| MD5 |
30b9626437bba5b1410ddc5ada2a74dc
|
|
| BLAKE2b-256 |
64b499e2544f8f4e5dc7f0f8a3e355e06f946b6abe35ee13f9f718a4f817c134
|
Provenance
The following attestation bundles were made for muxy-0.1.0.dev2-py3-none-any.whl:
Publisher:
release.yaml on oliverlambson/muxy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
muxy-0.1.0.dev2-py3-none-any.whl -
Subject digest:
952f85676ab560f99299dda6947dde369d8c3ab27180035271eb66f5ba075bfe - Sigstore transparency entry: 780866147
- Sigstore integration time:
-
Permalink:
oliverlambson/muxy@4a928b7f55183989c47b04efd18f28ffea89e483 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/oliverlambson
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@4a928b7f55183989c47b04efd18f28ffea89e483 -
Trigger Event:
workflow_dispatch
-
Statement type: