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
Contributing
Pull requests are welcome! Particularly for supporting other api(s). Please make sure to update tests as appropriate.
License
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
holybooks-1.0.0.tar.gz
(9.7 kB
view details)
File details
Details for the file holybooks-1.0.0.tar.gz
.
File metadata
- Download URL: holybooks-1.0.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00e7c66b70f476a853efbd379ce3140cdc637099f712fab4978ab4cf619b0d64 |
|
MD5 | de6a1e4a7712cec16c45517eec82489d |
|
BLAKE2b-256 | 2efd78d0c346c781ad97975bbff37c4aa0596115d2c4224784c35af957403e8d |