Skip to main content

Route path based requests to JSON endpoints. Designed for web APIs

Usage examples

from chaosrouter                  import ChaosRouter

router                            = ChaosRouter({
    "404": {
        "error": "Not Found",
        "message": "The page you are looking for does not exist",
        "code": 404
    }
})

Draft                             = router.route("/404")
data                              = Draft.proceed()

print(data)

# Output:
# {
#     "error": "Not Found",
#     "message": "The page you are looking for does not exist",
#     "code": 404
# }

Metadata

Release files for chaosrouter 0.2.7

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

Source distribution (sdist)

Source distribution for chaosrouter 0.2.7
File Size Uploaded Provenance Actions
chaosrouter-0.2.7.tar.gz 5.8 kB Without provenance Details for chaosrouter-0.2.7.tar.gz

Release files / chaosrouter-0.2.7.tar.gz

Download URL chaosrouter-0.2.7.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
36b2a2b6cf74ae1a6832d17b07c9302b191aa166123b4e40cefac64943d4ed7c
BLAKE2b-256 checksum
How to use checksums
181b196ad2318828e3904e6f9d622995fda42499f6d07faecdf16f8d1b89af18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for chaosrouter 0.2.7

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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