https://github.com/tomfaulkner/bible
Fixes for bible 0.2 and Python 3.x compatibility
https://github.com/tomfaulkner/bible
bible bible-verse passages python python3 reference scripture
Last synced: about 1 month ago
JSON representation
Fixes for bible 0.2 and Python 3.x compatibility
- Host: GitHub
- URL: https://github.com/tomfaulkner/bible
- Owner: TomFaulkner
- Created: 2017-07-28T01:25:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-07T22:20:04.000Z (almost 4 years ago)
- Last Synced: 2025-03-29T08:51:08.181Z (2 months ago)
- Topics: bible, bible-verse, passages, python, python3, reference, scripture
- Language: Python
- Homepage: https://pypi.python.org/pypi/bible3
- Size: 31.3 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
Awesome Lists containing this project
README
Python Classes for manipulating Bible references
------------------------------------------------
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.Installation
------------pip install bible3
## Using Classes
While this section is being expanded, please see the test program, test_bible.py
for numerous examples of use. Here are some basics:- create Verse objects: `bible.Verse('James 2:10')`
- create Passage objects: `bible.Passage('John 4:3', 'John 4:10')`
`bible.Passage('John 4:3-10')`
or supply 2 Verse objects
- test for a Verse to be included in a passage:
`Passage.includes(Verse)`
- test for a Passage to have overlap with another Passage:
`Passage1.overlap(Passage2)`
- and moreFork and Thanks
---------------I forked this to make it Python 3 compatible. I've added some tests, certainly
more could be included. All tests pass in Python 2.7.13 and Python 3.6.2.\__str__ and \__repr__ added to both Verse and Passage classes, \__len__ added to
Passage, other changes were minimal.Thanks to Jason Ford for writing this and making it available to the world.
SDG,
Tom Faulkner