An Api Wrapper for extracting info from: quran api and bible api. I didn't made the document for this so for now read the file in my github(https://github.com/TheGenocides/holybooks) to find all functions there. I will add more holybooks in the future!
Project description
hollybooks
An Api wrapper for extracting info from 3 diffreant hollybooks. I didn't made the document for this so for now read the file to find all functions etc. I will add more hollybooks in the future!
Installation
Find the module in here Module
pip install holybooks
Usage
# To return a verse(s) info inside the surah(Chapter)
from hollybooks import Surah
surah=Surah.request(112) #'112' is the chapter and request is for sync function to make it async replace request to async_request()
print(surah.request_ayahs())
#return the verses in a list
#===============================================================================================================================
# To return a bible verse's info
from hollybooks import Bible
bible_verses=Bible.request( #request is for sync function to make it async replace request to async_request()
"2 Corinthians", chapter=4,
starting_verse=16, ending_verse=18
) # this gets the info of 2 Corinthians 4:16-18
for verse in bible_verses.verses:
print(
verse.citation, # The citation of the current verse
verse # executes the __str__ method of the ChapterVerse class (it returns the verse itself)
)
#===============================================================================================================================
from hollybooks import Torah
torah_verses=Torah.request( #request is for sync function to make it async replace request to async_request()
"Genesis", chapter=1,
starting_verse=1, ending_verse=10
) # this gets the info of Genesis 1:1-10
for verse in torah_verses.verses:
print(
verse.citation, # The citation of the current verse
verse # executes the __str__ method of the ChapterVerse class (it returns the verse itself)
)
API That I Used
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
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
Built Distribution
Hashes for holybooks-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5e9bc9e1d4c1eb5ebfe8836413a58e8126e6dd110c5e5d4fd70ca854214c566 |
|
MD5 | 59427dbdabbac8acb24e4d902acf6ee9 |
|
BLAKE2b-256 | 708ebd228237cb8a9db46a8239b2b211422d707d9b17c7c6e1f183871be849a5 |