Skip to main content

Diyanet

Python interface for internal API of Turkey's Presidency of Religious Affairs to get prayer times.

API

Units

  • GeographicUnit, base class for all geographic units. All units share these members
    • idx: int => Internal ID (to use in API)
    • name: str => Name of the country
  • Country, unit for countries
  • State, unit for states (if no states present in given country, this will be same with Country)
    • country: Country => A link to it's country
  • Region, unit for citites/regions
    • url: str => URL that points out to prayer times page for that specific region
    • state: State => A link to it's state
    • country: Country => A link to it's country
  • PrayerTimes, unit for prayer times of a day
    • fajr: time
    • sunrise: time
    • dhuhr: time
    • asr: time
    • maghrib: time
    • isha: time

API

All methods described below are members of Diyanet class

  • get_countries: () -> Iterator[Country] => Iterates through all available countries
  • get_states: (country: Country) -> Iterator[State] => Iterates through all available states
  • get_regions: (state: State) -> Iterator[Region] => Iterates through all available regions
  • get_country / get_state/ get_region => Takes a name (and depending on the context, a geographical unit that covers itself) and returns if it finds something that matches with given name. If there isn't any match, it raises a ValueError.
  • get_times: (region: Region) -> PrayerTimes => Returns prayer times for the current day

Metadata

Release files for diyanet 0.1.2

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

Source distribution (sdist)

Source distribution for diyanet 0.1.2
File Size Uploaded Provenance Actions
diyanet-0.1.2.tar.gz 6.2 kB Without provenance Details for diyanet-0.1.2.tar.gz

Release files / diyanet-0.1.2.tar.gz

Download URL diyanet-0.1.2.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6a27be1e6f1d97478954229d7d00cc9dbacd351d73af42b2803cd40f900f4b77
BLAKE2b-256 checksum
How to use checksums
06dcd49dee76f16c109da5da70f7a22ab7fd3629af2f877813d3bd9cabbe869e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.8.0 tqdm/4.54.1 CPython/3.8.5+

Security for diyanet 0.1.2

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

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