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.

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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page