Pyroutes

Latest version: v0.5.0

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.5.0

-------------

- Fixed Cookie path default value to be relative to base site location.
- Added AppendSlashes middleware for forcing URLs to end in slash. Not on as
default.
- Changed handling of requests against invalig URLs (We now process all
requests as if their URLs had a leading slash, regardless...)
- Created ``Responsify`` middleware, and included it as default. This allows
you to return from a route withoute wrapping your response in a Response
object.
- Ensured compatability across Python versions 2.4 through 3.2

0.4.1

-------------

- Rename ``find_request_handler`` to ``find_route``.
- Rename some internal variables, notably all references to ``handler`` that
were actually a ``Route`` instance have been renamed to route.
- Minor fixes.

0.4.0

-------------

- Implemented redirection relative to Application's root. See issue 1 on github: https://github.com/pyroutes/pyroutes/issues/1
- Fixed argument defaults being overwritten. See issue 5 on github: https://github.com/pyroutes/pyroutes/issues/3
- Altered logic for matching routes (stricter matching of argument count)
- Code simplification on many minor details
- Some minor regressions introduced by the middleware fixed

0.3.1

-------------

- Remove leftover print statement causing errors using mod_wsgi

0.3.0

-------------

- Added support for autopopulating handler method with data from the URL.
- Added middleware support
- New and improved documentation
- Lots of cleanups on the code.

0.2.2

-------------

- Fixed bug where setting the TEMPLATE_DIR-option in ``pyroutes_settings.py``
would cause the default 404,403 and 400 error pages to not work.
- Fix bug where pyroutes would add two content-type headers to responses. (Thanks to Dalton Barreto)
- Fixed IF_MODIFIED_SINCE handling in utils.fileserver on windows.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.