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.5.tar.gz (5.8 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for chaosrouter-0.2.5.tar.gz
Algorithm Hash digest
SHA256 3cfa069a68ceadffe82872f898020830a830d49ed337563c576e83d69ee96d70
MD5 99dcdb4a09565d42ca48336a4319f662
BLAKE2b-256 a1a4799489fe6910c451fd9857c3e821561ca8accf166b8d0f15d4043c9a6e18

See more details on using hashes here.

Supported by

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