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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | def8c9672bd87e5f7216bdbf9dee797a3280a21ca861dbbd9a7b81d6018ff645 |
|
MD5 | 901976c574bc125da0abcc78645e3b5a |
|
BLAKE2b-256 | f4210b71f189381675abffab53ac7ceca521b09be1fbc7b0138d9dd4e10ecd8b |