tzcron
A library to work with cron/quartz expressions and timezones.
Overview
tzcron provides a way to define schedules attached to timezones and get time occurrences out of it by just iterating the object created.
Install
>>> pip install tzcron
Usage
>>> import tzcron
>>> import pytz
>>> schedule = tzcron.Schedule("* * * * * *", pytz.utc)
>>> str(schedule)
'Cron: * * * * * * @UTC [2016-09-25 19:10:48.948486+00:00->None]'
>>> next(schedule)
datetime.datetime(2016, 9, 25, 19, 11, tzinfo=<UTC>)
>>> next(schedule)
datetime.datetime(2016, 9, 25, 19, 12, tzinfo=<UTC>)
>>> next(schedule)
datetime.datetime(2016, 9, 25, 19, 13, tzinfo=<UTC>)
For further information, check the official documentation
Develop this package
To test the package:
> python -m nose
To release a new version of the package:
> python setup.py sdist bdist_wheel upload
Metadata
Release files for tzcron 1.0.0
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 |
|---|---|---|---|---|
| tzcron-1.0.0.tar.gz | 5.7 kB | Without provenance | Details for tzcron-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tzcron-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for tzcron-1.0.0-py2.py3-none-any.whl |
Total release size: 12.2 kB
Release files / tzcron-1.0.0.tar.gz
| Download URL | tzcron-1.0.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d48ce0981e0bc1dcbc895927fa590a4b3485db3123ddcdfde65588d99e0fa5ce
|
|
BLAKE2b-256 checksum How to use checksums |
03c7d5599259887ca1e36d32d5b844458078cfac22fc402a1ff48a07b23e6874
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tzcron-1.0.0-py2.py3-none-any.whl
| Download URL | tzcron-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a9ec9c149085525157e6746b5f745069a39c7c5405d31cdd7e89a65cbb20b99f
|
|
BLAKE2b-256 checksum How to use checksums |
e7239559e563db330b55f6e1f3ff3400849993b87ffd3bc21e4727b2fd6d617f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tzcron 1.0.0
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.