Skip to main content

Cerberus plugin for bottle

Project description

Currently under development, unstable version!

Cerberus plugin

Cerberus plugin for bottle

installation

Via pip: pip install bottle-cerberus

Or clone: git clone https://github.com/kianxineki/bottle-cerberus.git

example:

from bottle import get, install, run
from cerberus_plugin import CerberusPlugin


@get("/example/<number>", schema={'url': {'number': {'coerce': int}}})
def example(number):
    return "the best number %s!" % number


install(CerberusPlugin())
run(host="0.0.0.0", port="9988")

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

bottle-cerberus-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file bottle-cerberus-0.0.1.tar.gz.

File metadata

File hashes

Hashes for bottle-cerberus-0.0.1.tar.gz
Algorithm Hash digest
SHA256 33089f4c89ddfb72bec2063a2ada6a38be62d6330c3c25ef0ccc49845ef0dcec
MD5 90880b0316a00b50c922503ecef54b40
BLAKE2b-256 cca75eb5ef8c73cbce368830d28ef7aa6e075b98517289127ebde8191790499e

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