The main purpose for hook connection with db, based on flask-sqlalchemy and Flask-APScheduler.
Project description
Flask Database Pacemaker
python_requires>=3.6
Flask>=1.0.2
Flask-APScheduler>=1.11.0
Flask-SQLAlchemy>=2.3.2
- How to use
- Import package at
app.py
from flask_dbpacemaker import DBPacemaker
- Append this after you declare
config
andapp
DBPacemaker.run(app=app, config=config, interval=60, display=True)
- If you already have a exist scheduler, remember add it as parameters.
DBPacemaker.run(app, config, 60, True, secheduler=secheduler)
Note: The job trigger is 'interval', and interval unit is set as seconds.
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
Close
Hashes for Flask_DBPacemaker-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 775e45a4c7c2e0bd8318cfe6f151abff3f9e49fb41b3922e7d0388d433920a08 |
|
MD5 | f515e103b6ec56abb5d4cfc81503e22a |
|
BLAKE2b-256 | dfc26a14992ee25aa245a15f78406573944baceb1f1bd8b42e50780fd0dbd105 |