task scheduler for pyramid framework
Project description
pyramid_task_scheduler
Install
install packages
pip install pyramid-task-scheduler
or require in setup.py
add the follwing line to your Configuratior section of your pyramid application:
e.g
config = Configurator(settings=settings)
config.include('pyramid_task_scheduler') # Add this Line
Modes
json crontab
add the following two lines to your .ini file
pyramid_task_scheduler_mode = json
pyramid_task_scheduler_path = path_to/crontab.json
single cron crontab example:
{
"cron": [
{
"name": "first_cron",
"import_script": "import_script",
"exec_func": "function_to_execute",
"crontab_time": "0 * * * *"
}
]
}
multiple crons crontab example:
{
"cron": [
{
"name": "first_cron",
"import_script": "import_script",
"exec_func": "function_to_execute",
"crontab_time": "0 * * * *"
},
{
"name": "second_cron",
"import_script": "import_script",
"exec_func": "function_to_execute",
"crontab_time": "0 * * * *"
}
]
}
NOTE
this package is alpha experimental. It is recommened to NOT use it for productional environments.
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 pyramid_task_scheduler-0.0.4.tar.gz.
File metadata
- Download URL: pyramid_task_scheduler-0.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d10937b339c8e5a6dd8430c539e060c0807e2d94f336df0af7debcbfc3e6cd5
|
|
| MD5 |
a0e82572dd10f699ccac44e18dfe5437
|
|
| BLAKE2b-256 |
32b6041b4ddb5622b23972336c6b065ddc253880685bc9a969ddfed3a438b827
|
File details
Details for the file pyramid_task_scheduler-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pyramid_task_scheduler-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aa5ce9d69c53b60e5f87351dfb11fa178f79569f018e976f92aca5482ae07d7
|
|
| MD5 |
5223433f1a06056701f1b66565910a76
|
|
| BLAKE2b-256 |
0cf9f618cf5e4912c188a10ba98290cb30d0953e4f0a4932a40b6d9e8c12cd05
|