Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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

Release history Release notifications

This version
History Node

1.6

History Node

1.5

History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
python-quran-odoa-1.6.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None Jul 29, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page