Skip to main content

Django integration with schedule module

Project description

django-easy-schedule

Integration of Python schedule library with Django

Installation

Add "django_easy_schedule" to your INSTALLED_APPS settings like this:

INSTALLED_APPS = (
    "django_easy_schedule",
    ...
)

Usage

Create a file named jobs.py in any installed app, like this:

from schedule import every, repeat


@repeat(every(1).seconds)
def run_job():
    try:
        ## Do your work here
        pass
    except KeyboardInterrupt:
        pass

Running jobs

To run the jobs use the following command

python manage.py jobs run

More documentation

For more information check the documentation of schedule package.

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

django-easy-schedule-0.1.7.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_easy_schedule-0.1.7-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file django-easy-schedule-0.1.7.tar.gz.

File metadata

  • Download URL: django-easy-schedule-0.1.7.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for django-easy-schedule-0.1.7.tar.gz
Algorithm Hash digest
SHA256 eeed24371abc6e7707cca0906b8da5f7710fe778bf6cded8226eeb089ebaebae
MD5 ddd1bf98188e5ed2d7a4f6a881ad9bc2
BLAKE2b-256 1deb20283c80d7f7370ea4ff19efdf7aaf5df1000a7dd4c22eff7287d5378a8d

See more details on using hashes here.

File details

Details for the file django_easy_schedule-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for django_easy_schedule-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fb2ec8d828ad0e6f69ffa43767d4059551b0c30a11071ffe6a7bdf716e32be17
MD5 f7545c131b1bb2dbc6fcdfe6e74a4f66
BLAKE2b-256 a4f86261dc0acec172938850f0cfb445edd6de58a76963deb86df7030b255165

See more details on using hashes here.

Supported by

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