8000 GitHub - AlsunniNet/prayer-times-calculator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AlsunniNet/prayer-times-calculator

  A062
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prayer Times Calculator

Just a python package around https://aladhan.com's API. Only tested on python3.

Usage

from prayer_times_calculator import PrayerTimesCalculator

lat = 41.881832
long = -87.623177
calc_method = 'isna'
date = "2018-11-27"

calc = PrayerTimesCalculator(latitude=lat, longitude=long,
calculation_method=calc_method, date=date)

times = calc.fetch_prayer_times()

the fetch_prayer_times method will return a dict similar to:

{'Fajr': '05:31', 'Sunrise': '06:53', 'Dhuhr': '11:38', 'Asr': '14:03', 'Sunset': '16:22', 'Maghrib': '16:22', 'Isha': '17:44', 'Imsak': '05:21', 'Midnight': '23:38'}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%
0