Skip to main content

A reliable distributed cron with pluggable storage backends

  • Free software: MIT license

Installation

pip install pyncette

You can also install the in-development version with:

pip install https://github.com/tibordp/pyncette/archive/master.zip

Documentation

https://pyncette.readthedocs.io

Usage example

Simple in-memory cron (does not persist state)

from pyncette import Pyncette

app = Pyncette()

@app.cron(schedule='* * * * *')
async def foo():
    print('This will run every minute')

if __name__ = '__main__':
    app.main()

# alternatively asyncio.run(app.run())

Persistent distributed cron using Redis (coordinates execution with parallel instances and survives restarts)

from pyncette import Pyncette
from pyncette.repository.redis import redis_repository

app = Pyncette(repository_factory=redis_repository, redis_url='redis://localhost')

@app.cron(schedule='* * * * *')
async def foo():
    print('This will run every minute')

if __name__ = '__main__':
    app.main()

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

0.0.0 (2019-12-31)

  • First release on PyPI.

Download files

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

Source Distribution

pyncette-0.0.7.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

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

pyncette-0.0.7-py2.py3-none-any.whl (11.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyncette-0.0.7.tar.gz.

File metadata

  • Download URL: pyncette-0.0.7.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3

File hashes

Hashes for pyncette-0.0.7.tar.gz
Algorithm Hash digest
SHA256 14689388c10127cb1ee7cc6df437b57ee29d8fc196f89445ae953c21a93abe5f
MD5 0ca8fd91370582d1ea05de4a3140b8d7
BLAKE2b-256 49e5efba531af0e3a59705493742204d75a3cdb9b58638d3e0f0ff75ea8c6df0

See more details on using hashes here.

File details

Details for the file pyncette-0.0.7-py2.py3-none-any.whl.

File metadata

  • Download URL: pyncette-0.0.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3

File hashes

Hashes for pyncette-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e5dce2f32cbc2c7bfe898b97eac9a7ceaa260b41c796072322dedc41357ca267
MD5 b6629efde931dd347ded64ac786d546f
BLAKE2b-256 bf2c32514564296b532ee313c699bbdfd2ebbda998199dcf12961036c87b237b

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.0

2 files

0.11.0

2 files

0.10.1

2 files

0.10.0

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

0.0.8

2 files

This release

0.0.7 This release

2 files

0.0.6

2 files

0.0.4

1 file

0.0.2

2 files

0.0.1

2 files

Supported by

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