Skip to main content

A few Python functions to extract data from https://time.ir.

Requirements

Python 3.15 or newer.

Usage

The holiday_occasion function will return the holiday occasion of the requested date, or None if the given date is not a holiday.

In [1]: from timeir import holiday_occasion

In [2]: holiday_occasion(1404, 1, 13)
Out[2]: 'جشن سیزده به در'

In [3]: holiday_occasion(1404, 1, 14)

In [4]:

Note: This function fetches data from the time.ir website annually (one request per requested year) and caches the results for up to 3 months. See the source code for more details.

Metadata

Release files for timeir 0.1.1

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

Source distribution (sdist)

Source distribution for timeir 0.1.1
File Size Uploaded Provenance Actions
timeir-0.1.1.tar.gz 174.6 kB Without provenance Details for timeir-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 351.2 kB

Release files / timeir-0.1.1.tar.gz

Download URL timeir-0.1.1.tar.gz
Size 174.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bae9d6166ca48e39a8dace61d8a15d132b62a2b57920fc6e076165b4fa2f3752
BLAKE2b-256 checksum
How to use checksums
ae8d6e3f18fe813c9be33301c6828839cce65740f85aa7f665710d21c930c952
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / timeir-0.1.1-py3-none-any.whl

Download URL timeir-0.1.1-py3-none-any.whl
Size 176.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92cd386d6bf3f130f0759636051ffe0757d40b8c52e86eada5964b6654fcea88
BLAKE2b-256 checksum
How to use checksums
1611129828c21faf92142ee61784f9278875629e4e454f0971f68002c4d7c595
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for timeir 0.1.1

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