Skip to main content

Utility pack for Nexios

Project description

Nexios Logo

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

  • Trusted Host Middleware: nexios_contrib.trusted

    • README: nexios_contrib/trusted/README.md
    • Validates the Host header against allowed hosts to prevent Host header attacks and ensure requests come from trusted domains.
  • ETag Middleware: nexios_contrib.etag

  • JSON-RPC: nexios_contrib.jrpc

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

  1. Update the package’s version in its pyproject.toml (SemVer).
  2. Commit and push to main.
  3. Create a release/tag.
  4. Publish to PyPI.

Built with ❤️ by @nexios-labs

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

nexios_contrib-0.3.0.tar.gz (186.1 kB view details)

Uploaded Source

Built Distribution

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

nexios_contrib-0.3.0-py3-none-any.whl (104.9 kB view details)

Uploaded Python 3

File details

Details for the file nexios_contrib-0.3.0.tar.gz.

File metadata

  • Download URL: nexios_contrib-0.3.0.tar.gz
  • Upload date:
  • Size: 186.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nexios_contrib-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ba8756b447c6bf720b81a2dbcf6172b6f83669ae0f1470c997f4eae5da620f9d
MD5 2edf5d0be2fe61c30c5c9dae236d2f4f
BLAKE2b-256 433ec0296d2edd24d7a8260c932febcc96a86cc6316d1018348d9858f2db92f9

See more details on using hashes here.

File details

Details for the file nexios_contrib-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: nexios_contrib-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 104.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nexios_contrib-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b88a1ddf4f9c4a25d647b8321424a9f8c2cc1d77430fbf888b2c0704aeb456b
MD5 e27fc8536e8aa8c7ae6e726f8e93ee2a
BLAKE2b-256 241cbff834661022579560b2d0c7d98e9b832096357bc6f95115d0f2f6892994

See more details on using hashes here.

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