Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyislam, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pyislam-0.1.1-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyislam-0.1.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page