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.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 timeir 0.1.0
File Size Uploaded Provenance Actions
timeir-0.1.0.tar.gz 174.5 kB Without provenance Details for timeir-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 351.1 kB

Release files / timeir-0.1.0.tar.gz

Download URL timeir-0.1.0.tar.gz
Size 174.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dd40c38471e082d8cf96415ba8862e1414141925b22aa7294333a611ffc76bfc
BLAKE2b-256 checksum
How to use checksums
96e534fc01c2a3ae70a6131c6966051e8a15d981b51d82a6be3814245ae3bb0b
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.0-py3-none-any.whl

Download URL timeir-0.1.0-py3-none-any.whl
Size 176.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d1201760581e640ac505ff52a6908228ba5f31dd0551cd192893876505cfc1e
BLAKE2b-256 checksum
How to use checksums
3934c5181ea2a1be051b13d30ba11ec2aebc8dd317dc3722c48e5d5f3f00c570
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.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