flask-bucket-0.0.1
توضیحات
Create flask modules using a flask shell command
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-bucket-0.0.1 |
| نام | flask-bucket |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Owen O. Phakade |
| ایمیل نویسنده | olwethuphakade89@gmail.com |
| آدرس صفحه اصلی | https://github.com/owen-eternal/flask-bucket |
| آدرس اینترنتی | https://pypi.org/project/flask-bucket/ |
| مجوز | BSD |
# 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:
```bash
$ 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.
```python
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.
```bash
$ 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.
```bash
$ pip install -e .[dev]
```
نیازمندی
| مقدار | نام |
|---|---|
| - | Flask |
| >=3.7 | pytest |
نحوه نصب
نصب پکیج whl flask-bucket-0.0.1:
pip install flask-bucket-0.0.1.whl
نصب پکیج tar.gz flask-bucket-0.0.1:
pip install flask-bucket-0.0.1.tar.gz