Skip to main content

zen router library

Project description

zrouter

Zen Router library.

# 定义路由
router = Router('body', __name__, url_prefix='/body')

# 添加REST资源
router.add_resource('/metric', MetricResource)

# 批量添加REST资源
router.add_resources({
    '/metric': MetricResource,
    '/sport':  SportResource,
    '/entry': EntryResource,
    '/entry/stat': EntryStatResource,
    '/punch': PunchResource,
    '/punch/stat': PunchStatResource
})

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

zrouter-0.5.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

zrouter-0.5.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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