Skip to main content

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

Project description

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
# }

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

chaosrouter-0.2.7.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file chaosrouter-0.2.7.tar.gz.

File metadata

File hashes

Hashes for chaosrouter-0.2.7.tar.gz
Algorithm Hash digest
SHA256 36b2a2b6cf74ae1a6832d17b07c9302b191aa166123b4e40cefac64943d4ed7c
MD5 fe144b591dd4ccab15c806fddac20476
BLAKE2b-256 181b196ad2318828e3904e6f9d622995fda42499f6d07faecdf16f8d1b89af18

See more details on using hashes here.

Supported by

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