GithubHelp home page GithubHelp logo

matthiaselisee / free_python_bible_api Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 12 KB

Open-source MIT-licensed offline bible api to get passages from references in 36+ languages

License: MIT License

Python 100.00%
bible bible-api bible-verse bible-translations bibledata python python3 python-3 opensource open-source adventist

free_python_bible_api's Introduction

free_python_bible_api

Quickstart

You need an OSIS xml bible to proceed.

You can find them here : https://github.com/bzerangue/osis-bibles

Before getting verses you need to set the Bible file.

import free_bible_api

free_bible_api.set_bible("kjv.xml")

Getting verses in natural language

There are 2 different ways to get verses :

# Get verses from reference in French or English (they must be separated by semi-colons)
print(free_bible_api.text_from_references("Am 3:4-6; jude 4,6; Gen7.8"))
# The Bible can be in whatever language you want, but the reference must be in French or English.

# Get verse from OSIS id :
print(free_bible_api.text_from_osisID("Gen.5.4"))

You can also just translate a reference in French or English to an clean OSIS id.

# Reference to OSIS ID translator
print(free_bible_api.osisID_from_reference("Genesis  5: 4"))
# prints : 
# Gen.5.4

Use it as much as you want, and please report bugs.

1 Corinthians 10:31 Whether therefore ye eat, or drink, or whatsoever ye do, do all to the glory of God.

free_python_bible_api's People

Contributors

matthiaselisee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

free_python_bible_api's Issues

Deuteronomy not included.

Deuteronomy is missing from book list.

#Esther not at the right place, but is just before Ezra
#James not at the right place, but is just after Luke
#Deuteronomy not included

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.