Skip to main content

Python module for working with bible references

Project description

Python module for working with bible references

It can:

  • render reference strings sensibly and non-ambiguously; e.g. returning “Ephesians 1” when Ephesians 1:1-1:23 was specified, because there are only 23 verses in that chapter;

  • look up actual passage text using external API services;

  • fill in missing information where possible; e.g. inferring that for the inputs of book=”EPH” and start_chapter=1, the whole Ephesians 1 chapter (verses 1 to 23) was intended;

  • verify that a passage is valid; e.g. telling you that Ephesians 99 and Genesis 3:5-1:2 can’t exist;

  • add verses or chapters to the start or end of a passage, or [truncate](#passage-truncation) a passage to a given number of verses; such as for satisfying copyright restrictions; and

  • count the number of verses in a passage.

Basic Usage:

from pypassage import Passage
p = Passage(book='Genesis', start_chapter=1, start_verse=1, end_chapter=2, end_verse=3)

Documentation

Full documentation may be found on the GitHub page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypassage-1.2.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

pypassage-1.2-py2.py3-none-any.whl (19.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pypassage-1.2.tar.gz.

File metadata

  • Download URL: pypassage-1.2.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypassage-1.2.tar.gz
Algorithm Hash digest
SHA256 e31e03067ba5b04cb7dac1290a1fae98d00bee6c0ee9adfeee73d65655a95b4d
MD5 d20d2ad86264c5763704ec849348d43a
BLAKE2b-256 bcbb0b7f6ec42f1053788b08f6b1b65fbf069c4c648a119a8bfd2210bb3c0bc5

See more details on using hashes here.

File details

Details for the file pypassage-1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pypassage-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2aea285e97a2efb0aa92c0d114092ad7c9de86f3d57ba7cdb97ffcabc0d18717
MD5 fa81acc8c3888bad7bad1c2db93c92fe
BLAKE2b-256 cfefe313420f5bdaa25a4b8d13869413fb3c7a1aa221084864768ccabbb217f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page