Skip to main content

flask-bucket

Flask-Bucket is an extension that uses the flask command line interface to create a module inside your project directory. It comes in handy when operating in a flask application factory configuaration.

Installation

Run the following command to install:

$ Python pip install flask-bucket

Usage

  1. Import and initialize the package inside the create_app function.
  2. Import your module and register your blueprint object.
from flask_bucket import FlaskBucket 

def create_app():

    app = Flask(__name__)
    FlaskBucket(app)

    from .<module_name>.routes import <blueprint_name>
    app.registerblueprint(<blueprint_name>)

    return app

Initialize your module by running the make_module command from an interactive Python shell and specify the name of the directory. Note The package automatically produces a blueprint and a routes layout inside your routes.py file, located inside the module.

$ flask make_module <directory_name>

Developing flask-bucket

To install flask-bucket along with the tools you need to develop and run tests, run the following in your virtual enviroment.

$ pip install -e .[dev]

Release files for flask-bucket 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-bucket 0.0.1
File Size Uploaded
flask-bucket-0.0.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-bucket 0.0.1
File Interpreter ABI Platform
flask_bucket-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / flask-bucket-0.0.1.tar.gz

Download URL flask-bucket-0.0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6bc76a94980ca07f87c95dd6c67cab3880a4d09a210b99b905523ba43c8075ca
BLAKE2b-256 checksum
How to use checksums
08805ee8b8db47707fcb3ec6be0472eab1824d69f62b280c835f2525c3210181
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4

Release files / flask_bucket-0.0.1-py3-none-any.whl

Download URL flask_bucket-0.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98c44c12c557c479636f608832291aded1103b7f3f4e694104244fddd490b94f
BLAKE2b-256 checksum
How to use checksums
3eb8edb335cb650bc70ec58bba946b47248ae9fc43a32afbf1a09c633ed08a55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page