A Quart auto importer that allows your Quart apps to grow big.
Project description
Quart-Imp
pip install quart-imp
What is Quart-Imp?
Quart-Imp's main purpose is to help simplify the importing of blueprints, and resources. It has a few extra features built in to help with securing pages and password authentication.
Generate a Quart app
quart-imp init
Example
project/
└── app/
├── blueprints/
│ └── www/...
├── extensions/
│ └── __init__.py
├── resources/
│ ├── static/...
│ ├── templates/...
│ └── routes.py
└── __init__.py
# app/extensions/__init__.py
from quart_imp import Imp
imp = Imp()
# app/__init__.py
from quart import Quart
from app.extensions import imp
def create_app():
app = Quart(__name__, static_url_path="/")
imp.init_app(app)
imp.import_app_resources()
imp.import_blueprints("blueprints")
return app
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
quart_imp-1.0.0.tar.gz
(50.8 kB
view hashes)
Built Distribution
quart_imp-1.0.0-py3-none-any.whl
(63.3 kB
view hashes)
Close
Hashes for quart_imp-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4f929b641b4ba2281850d0803b1cd64497de5471676fc09d5f622e11496bd90 |
|
MD5 | 771622a58a170b42bccbb5ef2b1e102a |
|
BLAKE2b-256 | 3f0cff90671fbc534e94ae2388f7dba4d0647573a0aaed7946e39910d46a3507 |