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

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.3
File Size Uploaded
timeir-0.0.3.tar.gz 18.8 kB Details

Built distribution (wheel)

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

Total release size: 33.5 kB

Release files / timeir-0.0.3.tar.gz

Download URL timeir-0.0.3.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8f68458b8d3fa0db53e2248f0130d9fd6d3405c934446914378bf909624f99ef
BLAKE2b-256 checksum
How to use checksums
334a039f4d74e65a03e2ccfa3d573e14977b5b2ce7f41d72cfaa5b894337813a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

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

Download URL timeir-0.0.3-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49d676e7ce0e165712a292024d8b0d41f0b1057359fd35c3ec53c73ebfe99e78
BLAKE2b-256 checksum
How to use checksums
0d8e8e66674e65af28c11acb2c804e346a6a0735652467d7309b5ea29b183105
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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