Skip to main content

Library to get random ayah within quran including the translation.

Project description

Python Quran ODOA
=================
|pypy| |travis| |Codecov|

.. |pypy| image:: https://badge.fury.io/py/python-quran-odoa.svg
:target: https://badge.fury.io/py/python-quran-odoa

.. |travis| image:: https://travis-ci.org/Keda87/python-quran-odoa.svg?branch=master
:target: https://travis-ci.org/Keda87/python-quran-odoa

.. |codecov| image:: https://codecov.io/gh/Keda87/python-quran-odoa/branch/master/graph/badge.svg?branch=master
:target: https://codecov.io/gh/Keda87/python-quran-odoa


Python library to display random ayah within quran surah including the translation. Currently supports only Bahasa Indonesia and English.

This library is part of supporting ODOA (One Day One Ayat) campaign and using datasource from `https://github.com/semarketir/quranjson <https://github.com/semarketir/quranjson>`_


Suitable for your bot or web apps.

Prerequisite:
-------------
- Python v2.* or Python v3.*

Installation:
-------------

**Manual**

- Clone repo : https://github.com/Keda87/python-quran-odoa.git
- Run : ``python setup.py install``

**PIP**

- ``pip install python-quran-odoa``

**easy_install**

- ``easy_install python-quran-odoa``

**Usage:**
::
from odoa import ODOA

odoa = ODOA()

# by default the translation using bahasa indonesia,
# pass `lang='en'` if you want english translation.
surah = odoa.get_random_surah() # odoa.get_random_surah(lang='en')

surah.ayah
surah.desc
surah.translate
surah.sound

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

python-quran-odoa-1.6.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file python-quran-odoa-1.6.tar.gz.

File metadata

File hashes

Hashes for python-quran-odoa-1.6.tar.gz
Algorithm Hash digest
SHA256 e50c26765fd88a9204a3129774b0f6ece03c955c4b8bc6635f7c1b60994635ac
MD5 882187aa0994c37c15ed2ae9cbd0cd1f
BLAKE2b-256 ef2222bcb1b5f1cbcbb9b41dd20f74b9fc2ad920c0670a6ccc04db44eeff85f0

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