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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ebddb7a75e5bf41a66123fc5f0374a3741a94b9bcebd1ca0a6562e41868fa1c |
|
MD5 | 8974476a82253f12219df8a9fe445f54 |
|
BLAKE2b-256 | a2994a8603ba8f1ea89c1b39bcc85787e4d12555316b68a29e50f98b094d76c3 |