Contributions for Nexios
Project description
Nexios Contrib
Community-driven extensions and add‑ons for the Nexios ASGI framework. This repository hosts independently versioned packages that you can install a‑la‑carte or together via the meta package.
📖 View Documentation | 🚀 Get Started
Packages
-
URL Normalization Middleware:
nexios_contrib.slashes- README: nexios_contrib/slashes/README.md
- Handles trailing slashes, double slashes, and URL normalization for consistent, clean URLs.
-
Trusted Host Middleware:
nexios_contrib.trusted- README: nexios_contrib/trusted/README.md
- Validates the
Hostheader against allowed hosts to prevent Host header attacks and ensure requests come from trusted domains.
-
ETag Middleware:
nexios_contrib.etag- README: nexios_contrib/etag/README.md
- Provides automatic
ETaggeneration and conditional request handling (If-None-Match→304).
-
JSON-RPC:
nexios_contrib.jrpc- README: nexios_contrib/jrpc/README.md
- JSON-RPC 2.0 server and client implementation for building RPC APIs.
More contribs will be added over time. Contributions welcome!
Installation
Install the meta package (brings in all contribs):
pip install nexios_contrib
Or install directly from a specific package as they become available on PyPI.
Quick Example (ETag)
from nexios import NexiosApp
import nexios_contrib.etag as etag
app = NexiosApp()
app.add_middleware(etag.ETag())
@app.get("/")
async def home(request, response):
return {"message": "Hello with ETag!"}
See the full guide in the ETag README.
Development
This repo uses uv workspaces and hatchling for builds.
Common tasks:
# Sync workspace deps
uv sync
# Run tests
pytest -q
# Build wheel/sdist
python -m build
Project Structure
./
├── nexios_contrib/
│ └── etag/ # ETag middleware package
├── tests/
├── docs/
├── pyproject.toml
└── README.md
Each contrib package is versioned and released independently.
Releasing
- Update the package’s version in its
pyproject.toml(SemVer). - Commit and push to
main. - Create a release/tag.
- Publish to PyPI.
Built with ❤️ by @nexios-labs
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 nexios_contrib-0.1.0.tar.gz.
File metadata
- Download URL: nexios_contrib-0.1.0.tar.gz
- Upload date:
- Size: 168.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0efa99b17b95f733abf38ceb78ddf7382d726bd6126850736253fc94d5e35cef
|
|
| MD5 |
baa2ad0cdb31c9071d96df6235899332
|
|
| BLAKE2b-256 |
e09bcf6e417c8111d7f2ffdbd5c385daa47ada62060a2d877d602b5f4bb791c7
|
File details
Details for the file nexios_contrib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nexios_contrib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 88.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05e032996578117b9f9c34a73bfc33037adc474426dfad04b9f167b6712a88dd
|
|
| MD5 |
3e3411df42efd704f2211765b5aedb8b
|
|
| BLAKE2b-256 |
8f42ad42476aee10815bbf2c884bfa98e8a5f105b680b31b4ea1208342872fb6
|