Skip to main content

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.

Source Distribution

pyislam-0.1.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

pyislam-0.1.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page