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 details)
Built Distribution
quran-1.0.0-py3-none-any.whl
(6.5 kB
view details)
File details
Details for the file quran-1.0.0.tar.gz
.
File metadata
- Download URL: quran-1.0.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d706dae770902a0a882696b0bffdda07cbfc36a798c56ba5b83214db1b88d79 |
|
MD5 | b3ab5c6c9be4daaba4af7a3523e7466b |
|
BLAKE2b-256 | fad7bd6461ddc67ac083afc0381af6bb786d15f000e37ac22c22b0fe1a18f5a3 |
File details
Details for the file quran-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: quran-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7abe0db87ce435b52d99d21611cdd646ffa12f0fcae386951847271082c553d8 |
|
MD5 | 752fb46685bb5a357f79c8677bf603c3 |
|
BLAKE2b-256 | e2282f49b29fa0174661918f8daa2f86e939ae1712c62180cb7c69ddbc375265 |