Flask extension for providing auxiliary components to be used by different projects
Project description
Flask-Auxs
Flask extension for providing auxiliary components to be used by different projects.
Installation
$ pip install Flask-Auxs
Usage
First create the auxs
object:
from flask_auxs import Auxs
auxs = Auxs()
Then initialize it using init_app method:
auxs.init_app(app) # app is your Flask app instance
Content
Components automatically installed:
- context processor for injecting redir_path to templates
- dtformat jinja filter for date and time formatting
Components to be directly imported on demand:
- error handler error_obj_not_found
- exceptions: NotAllowed, PermissionDenied for crud validation
- url helpers: get_cancel, get_next, valid_url
License
Flask-Auxs
was created by Rafal Padkowski. It is licensed under the terms
of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask_auxs-0.1.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for flask_auxs-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 396fd0b67bd17151ebd617c5a11d95d0a4bcf14e560608b230d2cdf814bfbe77 |
|
MD5 | 7cc401ef5ded44dacee3374691135b76 |
|
BLAKE2b-256 | 2232a6850e2c905d6ba3d8a6881f25b1f991576d20e22bf417cf76fb73a68290 |