Skip to main content

An API wrapper for Quran.com written in Python.

Project description

quran.py

An easy to use API wrapper for Quran.com v4 written in Python.

Installation

Use the package manager pip to install. (Git required as well.)

pip install git+https://github.com/Jadtz/quran.py.git

Usage

from quran.verses import Verses
vrs = Verses()

vrs.get_chapter() # returns complete chapter from Quran.
vrs.get_juz() # returns all verses from a specific juz(1-30).
vrs.get_page() # returns all verses of a specific Madani Mushaf page(1 to 604).
vrs.get_hizb() # returns all verses from a specific Hizb( half(1-60).
vrs.get_rub() # returns all verses of a specific Rub number(1-240).
vrs.get_verse() # returns a specific ayah with key.
#example for verse key, "10:5" is 5th ayah of 10th surah.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quran.py-0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quran.py-0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file quran.py-0.1.tar.gz.

File metadata

  • Download URL: quran.py-0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for quran.py-0.1.tar.gz
Algorithm Hash digest
SHA256 0f9af4a37bda2bd8c15e5dfb35259f29901969a06db3c8e5a2dc4681013d7ef6
MD5 b20ec852da6f5c8916729d91c1a5663b
BLAKE2b-256 6697893de44c9d01c745967edca3b14243bcc9278eeb7085b16eefa7d3051f50

See more details on using hashes here.

File details

Details for the file quran.py-0.1-py3-none-any.whl.

File metadata

  • Download URL: quran.py-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for quran.py-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75e97cf123d5ee0f6d62f5b9fc12026a3f983f0da74b87b58ff5402008639695
MD5 d26b342265a9e15fc56489b4d338c92e
BLAKE2b-256 0f6734da3803bbf7417f2e9039fa48079ecce13dc38a9e347ed340ed101956c8

See more details on using hashes here.

Supported by

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