Skip to main content

Small Python module for working with bible passages/references

Project description

Python module for working with bible passages/references

It can:

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

  • render reference strings sensibly; e.g. knowing that Ephesians 1:1-1:23 should be rendered simply as “Ephesians 1” because there are only 23 verses in that chapter;

  • 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;

  • count the number of verses in a passage, and truncate or extend a passage to a given number of verses; and

  • look up actual passage text using external API services.

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.0.tar.gz (19.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pypassage-1.0.tar.gz
Algorithm Hash digest
SHA256 9f440c7c480a5b018542554883088c8aafb2e54e1fbab1445c6f4e33252bef7a
MD5 0d3a5970a8549a27c90ef7e2ed7305f7
BLAKE2b-256 a798506b0a5c356de14e5cbeaf8abb34dab43f9f4b5a1a989959583dc3000aa0

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