Iterators for datetime objects.
Project description
The recur module provides iterators for datetime objects. Recurrence patterns can be provided in natural language strings like “every 3 days” or “Sept 14” (currently, only a English Locale is provided). For example, this code: d = recur.Recurrence(datetime.date(1999, 11, 28), “-5 each month”) Will make “d” an iterator, producing datetime.date objects starting with datetime.date(1999, 12, 26), and then proceeding to the fifth-from-last date of each succeeding month.
The recur module now includes a Worker class, which spawns new threads as needed to accomplish recurring tasks. Subclass it and override its “work” method. You can set its “paused” and “terminated” attributes to True/False as needed to manage a recurring task.
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
File details
Details for the file recur-r105.tar.gz
.
File metadata
- Download URL: recur-r105.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1b6f7d372c5293107c331c412e72c1cdedc108143124b7c7bd814bbc42c6c4e |
|
MD5 | 8bac99901694a78dd5589e053cdc8486 |
|
BLAKE2b-256 | a3b7cc8d22fefcd5724a3c8347ab451d2ea6c1efc2290654e670e38468b66574 |
File details
Details for the file recur-r105-py2.4.egg
.
File metadata
- Download URL: recur-r105-py2.4.egg
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c01a5674902b5d9621fc9276a1e4cf983b3edb5a2db1088ad2c2a07dac117b89 |
|
MD5 | 082008d4ee0b6d9744bf69cadaa5a702 |
|
BLAKE2b-256 | 9841f52f26879ecabea78ce7e744fa355daa11f9c2505930f14f0a6ab6a303bf |