Skip to main content

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

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.0.4

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

Built distribution (wheel)

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

Total release size: 101.0 kB

Release files / timeir-0.0.4.tar.gz

Download URL timeir-0.0.4.tar.gz
Size 49.7 kB
Tags Source
SHA-256 checksum
How to use checksums
032b7cf0a2da3374e42e56cf348bd6bef477d61110bc73a83940c4c7c4f85005
BLAKE2b-256 checksum
How to use checksums
3dee0e30651458630956c79a192570a7311ec76e390ec85d349e5185771789d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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.0.4-py3-none-any.whl

Download URL timeir-0.0.4-py3-none-any.whl
Size 51.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
651b9527700a42afbe77840402ed99b015b89c33b8fa2954a0bce90ebd7a1aef
BLAKE2b-256 checksum
How to use checksums
35551e922b2c0fbc5b845055f24a7f93719a75e366b463639056dfbfcc1e4f0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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.0.4

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