pyislam

An Islamic Python Package


Keywords
islam, quran, sunnah
License
MIT
Install
pip install pyislam==0.1.1

Documentation

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