Skip to main content

Period Iterator

Period Iterator is a library easing you to iterate through given period.

Usage

from period_iterator.period_iterator import period_iterator

period = period_iterator('2020-02-01,2020-02-03', 'Asia/Bangkok')

while True:
    print(period.cursor.begin()) # Begin of day
    print(period.cursor.end()) # End of day
    print(period.cursor.date()) # Date
    if not period.next():
        break

# Expected Output
#
# 2020-02-01T00:00:00+07:00
# 2020-02-01T23:59:59+07:00
# 2020-02-01
# 2020-02-02T00:00:00+07:00
# 2020-02-02T23:59:59+07:00
# 2020-02-02
# 2020-02-03T00:00:00+07:00
# 2020-02-03T23:59:59+07:00
# 2020-02-03

License

MIT

Metadata

Release files for period-iterator 1.3.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 period-iterator 1.3.0
File Size Uploaded Provenance Actions
period-iterator-1.3.0.tar.gz 6.1 kB Without provenance Details for period-iterator-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for period-iterator 1.3.0
File Interpreter ABI Platform Actions
period_iterator-1.3.0-py3-none-any.whl Python 3 none any Details for period_iterator-1.3.0-py3-none-any.whl

Total release size: 12.5 kB

Release files / period-iterator-1.3.0.tar.gz

Download URL period-iterator-1.3.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ad5f92949cbfe31ea518b89a0a02e303cdd2f0419f619f323caa93b0e43cb2d1
BLAKE2b-256 checksum
How to use checksums
3ea80acc3bf18c4634e69364068fb4dbdd62667a82b8b434d3f02c74197d9beb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / period_iterator-1.3.0-py3-none-any.whl

Download URL period_iterator-1.3.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41ef910e66c8fc9c1626febe2a37e9f96fbcf76097b462463bb13807cf80d2c3
BLAKE2b-256 checksum
How to use checksums
fa3defa08ad8edd5e8fc4be3d725c5bbb4f8f9aeaabcc6896aef16b920e75c1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for period-iterator 1.3.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