A python wrapper quran.com api.
Project description
Quran.com API
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
Release history Release notifications | RSS feed
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)
Built Distribution
quran-1.0.0-py3-none-any.whl
(6.5 kB
view hashes)