Diyanet API
Project description
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 membersidx:int=> Internal ID (to use in API)name:str=> Name of the country
Country, unit for countriesState, unit for states (if no states present in given country, this will be same withCountry)country:Country=> A link to it's country
Region, unit for citites/regionsurl:str=> URL that points out to prayer times page for that specific regionstate:State=> A link to it's statecountry:Country=> A link to it's country
PrayerTimes, unit for prayer times of a dayfajr:timesunrise:timedhuhr:timeasr:timemaghrib:timeisha:time
API
All methods described below are members of Diyanet class
get_countries:() -> Iterator[Country]=> Iterates through all available countriesget_states:(country: Country) -> Iterator[State]=> Iterates through all available statesget_regions:(state: State) -> Iterator[Region]=> Iterates through all available regionsget_country/get_state/get_region=> Takes aname(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 aValueError.get_times:(region: Region) -> PrayerTimes=> Returns prayer times for the current day
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
diyanet-0.1.2.tar.gz
(6.2 kB
view details)
File details
Details for the file diyanet-0.1.2.tar.gz.
File metadata
- Download URL: diyanet-0.1.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using 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+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a27be1e6f1d97478954229d7d00cc9dbacd351d73af42b2803cd40f900f4b77
|
|
| MD5 |
42465886e76c256f85d6e3475989f805
|
|
| BLAKE2b-256 |
06dcd49dee76f16c109da5da70f7a22ab7fd3629af2f877813d3bd9cabbe869e
|