Skip to main content

An Api Wrapper for extracting info from the quran api and bible api.

Project description

holybooks

An API Wrapper for extracting info from the Al-Quran API and the Bible api. I will add more functions for certain api in the future! Documentation for this project is not avalaible at the moment. Full function can be seen in client.py

Installation

Find the module here.

pip install holybooks

Usage

# First make the client instance
from holybooks import Client

client = Client(
    quran_translation="en.asad",
    bible_translation="kjv"
)

client.fetch_ayah("2:255", "en.pickthall") #Retrives a verse from the Quran api. This will get chapter 2, verse 255. The second argument is the translation, if None specified the default translation is your quran_translation in your client instance.

client.fetch_verse("Genesis", "1:10", "kjv") #Retrives verses from the Bible API. This will get Genesis chapter 1, verse 1-10. The second argument is the translation, if None specified the default translation is your bible_translation in your client instance. 

API's That I Used

Qur'an

Bible

Contributing

Pull requests are welcome! Particularly for supporting other api(s). Please make sure to update tests as appropriate.

License

MIT

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

holybooks-1.0.0.tar.gz (9.7 kB view hashes)

Uploaded Source

Supported by

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