flask-create-0.0.2
توضیحات
A tool to create flask boilerplate code
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-create-0.0.2 |
| نام | flask-create |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Deekshith Anand |
| ایمیل نویسنده | deekshith27anand@gmail.com |
| آدرس صفحه اصلی | https://github.com/deekshithanand/flask-create.git |
| آدرس اینترنتی | https://pypi.org/project/flask-create/ |
| مجوز | MIT |
flask create readme
## Flask-Create
#### Author: Deekshith Anand
### A python package to create production grade flask boiler plate setup.
## Usage:
Create venv inside the project folder.
pip install flask-create
Once it is installed, in your root project directory hit this:
flask-create
That's it you are all set and good to go!
### Important!
You need to create a .env file with key value pairs containing all the required credentials.
### Default Factory setup
This approach embraces blueprints. It is implemented in the template. All your code lies inside the src, which can be treated like a package.
The other related files like config files, scripts files, etc . . are included outsied src(which will be you project repo)
#### To init db /invoke SQLAlchemy creatall():
Define your models in models.py . A default script is provided in scripts.py.You can have your own scripts defined here along with their equivalent commands(Look into flask-script extension for more).
To int db run this from outside src(i.e., root project folder):
python scripts.py init-db
#### To run flask app run this from root folder where flask-create was called:
python wsgi.py
##### Note : - The default config is provided for dev. Production config can be modified by user in config.py
نیازمندی
| مقدار | نام |
|---|---|
| ==7.1.2 | click |
| ==1.1.2 | Flask |
| ==0.5.0 | Flask-Login |
| ==2.4.3 | Flask-SQLAlchemy |
| ==0.14.3 | Flask-WTF |
| ==1.1.0 | itsdangerous |
| ==2.11.2 | Jinja2 |
| ==1.1.1 | MarkupSafe |
| ==0.13.0 | python-dotenv |
| ==1.3.17 | SQLAlchemy |
| ==1.0.1 | Werkzeug |
| ==2.3.1 | WTForms |
نحوه نصب
نصب پکیج whl flask-create-0.0.2:
pip install flask-create-0.0.2.whl
نصب پکیج tar.gz flask-create-0.0.2:
pip install flask-create-0.0.2.tar.gz