[go: up one dir, main page]

Skip to content

A synchronous object oriented library for the Quran & Bible apis

License

Notifications You must be signed in to change notification settings

TheGenocides/holybooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A synchronous object oriented library for the Quran & Bible apis

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages