An Islamic Python Package
Project description
PyIslam
PyIslam is a python library that provide easier way to get verses and soon hadith.
This Package uses https://Quran.com api to retrieve verses and some info
Examples
Quran
- Get a random verse from quran
from PyIslam import Quran
Q = Quran()
print(Q.get_random_verse)
- Get a specific verse
from PyIslam import Quran
Q = Quran(chapter = 5, verse = 10)
print(Q.Verse) # Case Sensitive
Q.Verse
will return a dict in this structure : {'ar' : '<Arabic Verse>', 'en' : '<English Translation>', 'verse_number' : <Verse Number>, 'chapter_id' : <Chapter ID>
Tafsir
Coming soon
Hadith
Coming Soon
Installing
pip install pyislam
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
pyislam-0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
pyislam-0.1-py3-none-any.whl
(4.2 kB
view hashes)