Overview
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
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.
Metadata
Release files for pyncette 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyncette-0.0.7.tar.gz | 18.9 kB | Without provenance | Details for pyncette-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyncette-0.0.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pyncette-0.0.7-py2.py3-none-any.whl |
Total release size: 30.7 kB
Release files / pyncette-0.0.7.tar.gz
| Download URL | pyncette-0.0.7.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14689388c10127cb1ee7cc6df437b57ee29d8fc196f89445ae953c21a93abe5f
|
|
BLAKE2b-256 checksum How to use checksums |
49e5efba531af0e3a59705493742204d75a3cdb9b58638d3e0f0ff75ea8c6df0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyncette-0.0.7-py2.py3-none-any.whl
| Download URL | pyncette-0.0.7-py2.py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e5dce2f32cbc2c7bfe898b97eac9a7ceaa260b41c796072322dedc41357ca267
|
|
BLAKE2b-256 checksum How to use checksums |
bf2c32514564296b532ee313c699bbdfd2ebbda998199dcf12961036c87b237b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pyncette 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.