Werkzeug based routing system for Brubeck - Escape from Regex
Project description
SimpleURL
======
SimpleURL is based on Werkzeug routing system for Brubeck.
Why not use regex based routing system?
----
- Regex is hard.
- Too complicated.
- Easy to make mistake.
Example
----
@app.add_url_route('^/brubeck')
@app.add_url_route('^/brubeck/\d')
Above regex routes seems to be different but not.
Request - `/brubeck` and `/brubeck/1` will match first because
you have failed to place `$` at the end. As a developer you are not supposed
to waste your time writing clever regex and debugging regex.
Why Werkzeug ?
----
- Simple
- Extensively documented
- Active community
- Fully WSGI compatible
- Various utility functions for dealing with HTTP headers such as
`Accept` and `Cache-Control` headers
Development
---
The SimpleURL development version can be installed by cloning the git
repository from `github`_::
git clone git@github.com:kracekumar/simpleurl.git
.. _github: http://github.com/kracekumar/simpleurl
======
SimpleURL is based on Werkzeug routing system for Brubeck.
Why not use regex based routing system?
----
- Regex is hard.
- Too complicated.
- Easy to make mistake.
Example
----
@app.add_url_route('^/brubeck')
@app.add_url_route('^/brubeck/\d')
Above regex routes seems to be different but not.
Request - `/brubeck` and `/brubeck/1` will match first because
you have failed to place `$` at the end. As a developer you are not supposed
to waste your time writing clever regex and debugging regex.
Why Werkzeug ?
----
- Simple
- Extensively documented
- Active community
- Fully WSGI compatible
- Various utility functions for dealing with HTTP headers such as
`Accept` and `Cache-Control` headers
Development
---
The SimpleURL development version can be installed by cloning the git
repository from `github`_::
git clone git@github.com:kracekumar/simpleurl.git
.. _github: http://github.com/kracekumar/simpleurl
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
SimpleURL-0.0.1.tar.gz
(6.9 kB
view details)
File details
Details for the file SimpleURL-0.0.1.tar.gz
.
File metadata
- Download URL: SimpleURL-0.0.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f263cc3983b47d2a4de76011eda4fb1c56347da78cd2d61d2995b75a8681d28 |
|
MD5 | d9e7cd93ba604e60866b2051f69738f0 |
|
BLAKE2b-256 | 4c35ac0b5e4b7a016dee77f97242bfe5a610a767f701145c07e59f7f2cc272d9 |