Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

muxy-0.1.0.dev2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

muxy-0.1.0.dev2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

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

Hashes for muxy-0.1.0.dev2.tar.gz
Algorithm Hash digest
SHA256 bff03cb3acf96fc5069dd4f9f824c1a62e8e280ee0347e4ea8adf83215be1fd1
MD5 9c7806bcf8d3244de7145a1e5a66a259
BLAKE2b-256 f102e3f707d70985c5c7b4fe363f0dc6a98a82a13ea3276888bef099ebc66993

See more details on using hashes here.

Provenance

The following attestation bundles were made for muxy-0.1.0.dev2.tar.gz:

Publisher: release.yaml on oliverlambson/muxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for muxy-0.1.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 952f85676ab560f99299dda6947dde369d8c3ab27180035271eb66f5ba075bfe
MD5 30b9626437bba5b1410ddc5ada2a74dc
BLAKE2b-256 64b499e2544f8f4e5dc7f0f8a3e355e06f946b6abe35ee13f9f718a4f817c134

See more details on using hashes here.

Provenance

The following attestation bundles were made for muxy-0.1.0.dev2-py3-none-any.whl:

Publisher: release.yaml on oliverlambson/muxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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