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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eeed24371abc6e7707cca0906b8da5f7710fe778bf6cded8226eeb089ebaebae
|
|
| MD5 |
ddd1bf98188e5ed2d7a4f6a881ad9bc2
|
|
| BLAKE2b-256 |
1deb20283c80d7f7370ea4ff19efdf7aaf5df1000a7dd4c22eff7287d5378a8d
|
File details
Details for the file django_easy_schedule-0.1.7-py3-none-any.whl.
File metadata
- Download URL: django_easy_schedule-0.1.7-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb2ec8d828ad0e6f69ffa43767d4059551b0c30a11071ffe6a7bdf716e32be17
|
|
| MD5 |
f7545c131b1bb2dbc6fcdfe6e74a4f66
|
|
| BLAKE2b-256 |
a4f86261dc0acec172938850f0cfb445edd6de58a76963deb86df7030b255165
|