Skip to main content

tsenum

Tests

A timestamp generator.

Install

You can use pip to install from the repository

pip install tsenum

or download sources and run pip from this directory

git clone https://github.com/aboehm/tsenum
pip install .

Usage

tsenum provides an CLI. For help run:

tsenum -h

To count 7 days back from yesterday via CLI, run:

tsenum --offset -1 --count -7 --step day --pattern "%Y-%m-%d: Hello world!"
2016-05-27: Hello world!
2016-05-28: Hello world!
2016-05-29: Hello world!
2016-05-30: Hello world!
2016-05-31: Hello world!
2016-06-01: Hello world!
2016-06-02: Hello world!

To do it programmatically:

from datetime import datetime
import tsenum

print(
    tsenum.enumerate_times(
        datetime.now().astimezone(),
        offset=-1,
        count=-7,
        step=tsenum.Step.DAY,
        pattern='%Y-%m-%d'
    )
)

Metadata

Release files for tsenum 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tsenum 1.2.0
File Size Uploaded Provenance Actions
tsenum-1.2.0.tar.gz 12.0 kB Without provenance Details for tsenum-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tsenum 1.2.0
File Interpreter ABI Platform Actions
tsenum-1.2.0-py3-none-any.whl Python 3 none any Details for tsenum-1.2.0-py3-none-any.whl

Total release size: 22.6 kB

Release files / tsenum-1.2.0.tar.gz

Download URL tsenum-1.2.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2ce07a32c25414dc670b22fbd135bd25ee2d575e40eeb774e6e7374527b9e13a
BLAKE2b-256 checksum
How to use checksums
4ea8af8bbce03fe151992ff5256f1d5f3407ae31318166b8ebd3b3637c54ad8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / tsenum-1.2.0-py3-none-any.whl

Download URL tsenum-1.2.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eb410016f1f2eb4e6a06cd14ddcd7f86bd3fd56a3dca1faaa2fe3f9d5b2b98f
BLAKE2b-256 checksum
How to use checksums
d4f48d5ab64806076b46f9b40a19838f3325545f440c86ee8992b425491a1184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Security for tsenum 1.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page