Skip to main content

OSS Tooling Library

Project description

routing.py

Routing stuff like auto-generated HTML and JSON pages with map of routes. This is useful for development process and for exposing APIs.

Example:

from oss_lib import routing
...

app = Flask(...)
...
app.add_url_rule(...)  # add routes
...

# Now add routing map pages
app = routing.add_routing_map(app,
                              html_uri="/api.html",
                              json_uri="/api.json")

Now run the application and find auto-generated pages on given URIs /api.html and /api.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for oss-lib, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size oss_lib-0.1.0-py2.py3-none-any.whl (4.4 kB) File type Wheel Python version any Upload date Hashes View
Filename, size oss_lib-0.1.0.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page