Skip to main content

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


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)

Uploaded Source

Built Distribution

flask_auxs-0.1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page