Bible reference classes
pip install bible-passage-reference-parser==1.0.4
Python classes for Bible Verse and Passage - useful for storing, comparing, and formatting Bible references. Also includes Django form classes to make it easy to add Bible references to your Django models.
Note that this module does not let you actually pull and display the text of a Bible verse or passage - it is just for working with and displaying the reference to the verses. Other tools and APIs can be used to grab and display the actual verse text for a reference.
pip install bible-passage-reference-parser
While this section is being expanded, please see the test program, test_bible.py for numerous examples of use. Here are some basics:
bible.Verse('James 2:10')
bible.Passage('John 4:3', 'John 4:10')
bible.Passage('John 4:3-10')
or supply 2 Verse objectsPassage.includes(Verse)
Passage1.overlap(Passage2)
I forked this to add a parse_string
methods
_str_ and _repr_ added to both Verse and Passage classes, _len_ added to Passage, other changes were minimal.
Thanks to Jason Ford and Tom Faulkner for writing this and making it available to the world.