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
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 django-easy-schedule-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68d05bd54743eac0e5ec9020ff20a3832160087f0229b92fc656d8ad3df25b66 |
|
MD5 | 2c80b1744549874625858eb87ae2f2da |
|
BLAKE2b-256 | 74dd1eab96a2cae9c486c6bc383faca457dbd99c65a669dde93d3c130dd45247 |
Close
Hashes for django_easy_schedule-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a555e6d04ede6418f9ca54fcee147a86cc15a35b225290c3917fbf1488b9fd38 |
|
MD5 | 5e16e280a01d6acd18678257e02a67ad |
|
BLAKE2b-256 | 4b59e0f94d95d42ccf76da808004bf5573a136ab2996046fa6b8f7a0ccaa0f4c |