Skip to main content

task scheduler for pyramid framework

Project description

pyramid_task_scheduler

Build Status pre-commit Code style: black

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyramid_task_scheduler-0.0.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

pyramid_task_scheduler-0.0.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for pyramid_task_scheduler-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9d10937b339c8e5a6dd8430c539e060c0807e2d94f336df0af7debcbfc3e6cd5
MD5 a0e82572dd10f699ccac44e18dfe5437
BLAKE2b-256 32b6041b4ddb5622b23972336c6b065ddc253880685bc9a969ddfed3a438b827

See more details on using hashes here.

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

Hashes for pyramid_task_scheduler-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6aa5ce9d69c53b60e5f87351dfb11fa178f79569f018e976f92aca5482ae07d7
MD5 5223433f1a06056701f1b66565910a76
BLAKE2b-256 0cf9f618cf5e4912c188a10ba98290cb30d0953e4f0a4932a40b6d9e8c12cd05

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