Skip to main content

python functions to extract and work with time.ir data

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

timeir-0.0.3.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timeir-0.0.3-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file timeir-0.0.3.tar.gz.

File metadata

  • Download URL: timeir-0.0.3.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for timeir-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8f68458b8d3fa0db53e2248f0130d9fd6d3405c934446914378bf909624f99ef
MD5 195113abeaf7aaf06339f694c061182a
BLAKE2b-256 334a039f4d74e65a03e2ccfa3d573e14977b5b2ce7f41d72cfaa5b894337813a

See more details on using hashes here.

File details

Details for the file timeir-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: timeir-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for timeir-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 49d676e7ce0e165712a292024d8b0d41f0b1057359fd35c3ec53c73ebfe99e78
MD5 875fb9cd66af04b37d527f59461aba0e
BLAKE2b-256 0d8e8e66674e65af28c11acb2c804e346a6a0735652467d7309b5ea29b183105

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page