A Flask auto importer that allows your Flask apps to grow big.
Project description
Flask-Imp
What is Flask-Imp?
Flask-Imp's main purpose is to help simplify the importing of blueprints, resources, and models. It has a few extra features built in to help with securing pages and password authentication.
Documentation
https://cheesecake87.github.io/flask-imp/
Getting Started
Setup.
Create a new project folder and navigate to it.
# Linux
cd /path/to/project-folder
# Windows
cd C:\path\to\project-folder
Create a virtual environment and activate it.
Linux / MacOS
python3 -m venv venv
source venv/bin/activate
Windows
python -m venv venv
.\venv\Scripts\activate
Install Flask-Imp
pip install flask-imp
Create a new project.
flask-imp init
Working on this project.
Setup.
Create a new project folder and navigate to it in the terminal, then clone this repository.
git clone https://github.com/CheeseCake87/flask-imp.git
Create a virtual environment and activate it.
Linux / MacOS
python3 -m venv venv
source venv/bin/activate
Windows
python -m venv venv
.\venv\Scripts\activate
Install the requirements.
pip install -r requirements/dev.txt
Install the local version of Flask-Imp.
flit install
Create a new app.
flask-imp init --name app --full
Run the included Flask app.
Flask run --debug
Run the tests.
pytest
Run the tests under multiple Python versions using docker.
python3 tests_docker
Info
The tests are located in the tests
folder.
The test Flask app is located in the tests/test_app
folder.
The tests are linked to the tests
blueprint located at tests/test_app/blueprints/tests
.
Building the docs.
All docs are generated from the docs folder.
Edit these files, then run the following command to generate the docs.
flask --app docs compile
You can set it to watch for changes and automatically recompile the docs by adding the --watch
flag.
flask --app gdocs compile --watch
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
Built Distribution
Hashes for flask_imp-5.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f545b8aff38d97794c90b979ba8e84c093c10df121339b417224333902c4bff |
|
MD5 | 6465696a2dabbde4598e4deb24904a34 |
|
BLAKE2b-256 | a6c998e5d6cec9fd08723c782d0e9a01e2c9b8eacca4b3586e83185ce6479c8f |