Description
Really simple module to decide wether a a date string is considered “obsolete” or not.
Given a time-string like 2010-01-01 it will return True if this date should not be retained, or False if it should.
Other time strings can be used by specifying a different format string (see strftime and strptime for the detailed syntax)
Example Usage:
from retaindate import is_obsolete
from datetime import datetime, timedelta
for i in range(10*365, -1, -1):
date = datetime.today() - timedelta(i)
if not is_obsolete(date):
print date
See the module docs (or the source) for more details
Metadata
Release files for retaindate 1.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 | |
|---|---|---|---|---|
| retaindate-1.0.tar.gz | 1.5 kB | Without provenance | Details |
Release files / retaindate-1.0.tar.gz
| Download URL | retaindate-1.0.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95b263288e6fb0697d0b85b96a3d6cf09f27ca158d2ed5edbada20c8c0843584
|
|
BLAKE2b-256 checksum How to use checksums |
2ddc61859cf55e344eb70380ddc6e33ae83be68f6ca67ad278cabbc75c5d83df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for retaindate 1.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.