Flask Crontab

screenshot of Flask Crontab
flask

Simple Flask scheduled tasks without extra daemons

Overview

Flask-crontab is an innovative solution for managing scheduled tasks within Flask applications without the need for additional daemons. Inspired by django-crontab, this package is designed to work seamlessly with Python 3.5 and above, making it an ideal choice for developers looking to enhance their Flask projects with reliable scheduling capabilities. The simplicity of installation and usage sets it apart as an attractive option for those who want to leverage cron jobs within their web applications.

Setting up flask-crontab is a breeze; you can quickly create and manage scheduled tasks directly from your Flask application. With automatic context activation for each job, accessing necessary application resources becomes effortless. This tool allows you to focus on code rather than complex configurations, ensuring that your task scheduling remains straightforward and efficient.

Features

  • Easy Installation: Install flas-crontab with a simple pip command, integrating it effortlessly into your Flask application.
  • App Context Management: Automatically activates the app context for each job run, providing seamless access to application resources.
  • Decorator API: Utilizes a user-friendly decorator that accepts standard crontab time format parameters, making scheduling intuitive.
  • Job Management: Easily add, list, or purge scheduled jobs with minimal effort, streamlining management.
  • Custom Job Locking: Offers the option to lock jobs during execution, preventing overlapping runs and potential conflicts.
  • MIT License: Enjoy the flexibility of using this package under an MIT license, promoting open-source collaboration.
  • Python 3.5+ Compatibility: Specifically crafted for Python 3.5 and above, ensuring a robust and modern foundation for task scheduling.
flask
Flask

Flask is a lightweight and popular web framework for Python, known for its simplicity and flexibility. It is widely used to build web applications, providing a minimalistic approach to web development with features like routing, templates, and support for extensions.