Skip to main content

Simple router for Falcon framework

Project description

Falcon Router

Version Downloads Formatter License

Simple router lib for Falcon framework.

Idea

Falcon's default router requires specifying routes by using app.add_route() syntax. While this might not be a problem with small API's, it is not very friendly to repeat this line for large API with over 50 routes. This is where Falcon Router comes in.

Features

  • Both ASGI and WSGI apps supported
  • Single router file supported
  • Multiple router files/groups list supported
  • Ending trailing slash supported

Usage

Basic (single route file) and advanced usage (multiple route groups/files) can be found under examples.

Credits

Falcon Router is heavily inspired by falcon-url-versioning

Installing Falcon Router

Falcon Router is available on PyPI:

$ python -m pip install falcon-router

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

falcon-router-0.0.4.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

falcon_router-0.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file falcon-router-0.0.4.tar.gz.

File metadata

  • Download URL: falcon-router-0.0.4.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for falcon-router-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2a4cdf4a42d5d7960290d4cd7efecde2bdc84aecabf7f8ad6edad3b476705f7e
MD5 566fc35be5e1a9eb3bae0998b63a377f
BLAKE2b-256 640ed67d97633881b6811c15b2b65357af6c0a67748a9b5e159eb57b862e03d8

See more details on using hashes here.

File details

Details for the file falcon_router-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: falcon_router-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for falcon_router-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ebe3e61d6c51754ddaa9c09e4fd77af775a195a1af338a2a97892bb03429a27f
MD5 82227d37376ddfef548c35c1c8632e67
BLAKE2b-256 f448b0bed0a1941d9181d366f7e2fd0b61fa9def46d4fd96c2042f1d48060c92

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