Skip to main content

A python wrapper quran.com api.

Project description

Quran.com API Build Status

This is a python wraper for quran.com v3 api

API will respond with English content by default, but you can get content in other language for most api calls using language query parameters. You can pass language id or language iso code as query string value. For list of available language see languages endpoint.

Using quran.com

Installing

python3 -m pip install git+https://github.com/dreygur/Quran.com.git

or

pip install git+https://github.com/dreygur/Quran.com.git

Importing Quran:

from quran import Quran
qur = Quran()

Methods

from quran import Quran
qur = Quran()

# All the methods returns a dictionary object

# Getting all Recitations
qur.get_recitations

# Getting all available Translations
qur.get_translations()

# Getting all avalailable Languages
qur.get_languages()

# Getting all Tafsirs available in this api
qur.get_tafsirs()

# Getting all Chapters names
qur.get_chapter(6, info=True, language='bn') # Keyworded arguments are optional

# Getting all the Verses from a chapter
qur.get_verses(6)

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

quran-1.0.0.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

quran-1.0.0-py3-none-any.whl (6.5 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