Skip to main content

The main purpose for hook connection with db, based on flask-sqlalchemy and Flask-APScheduler.

Project description

Flask Database Pacemaker

Buy Me A Coffee

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 and app
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-DBPacemaker-0.0.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

Flask_DBPacemaker-0.0.2-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page