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

Uploaded Source

Built Distributions

pypassage-1.3-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

pypassage-1.3-py2.py3-none-any.whl (19.1 kB view details)

Uploaded Python 2 Python 3

pypassage-1.3-py2-none-any.whl (23.7 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for pypassage-1.3.tar.gz
Algorithm Hash digest
SHA256 ba964502d1d16e59bb01c486b927f477986763a1840db0b68d33da648d23409e
MD5 823f3df31d9c7003d0e96eda06039e1f
BLAKE2b-256 53400929eb7dbff1fdf3b4928ca873df6e07eee0cfb9fa287e5892a75ebd88c0

See more details on using hashes here.

File details

Details for the file pypassage-1.3-py3-none-any.whl.

File metadata

  • Download URL: pypassage-1.3-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/18.5 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.10

File hashes

Hashes for pypassage-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 984fe4f582e444c141653d23fdf5c7e36750070a9627c0dda5786a3c7887154c
MD5 204748bd038a315be0563f7768793e29
BLAKE2b-256 7bde623b96460c7596473f316c3323f54d5b90ab1ed5afc886aad153bdc4ea75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pypassage-1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b6b42225aa331117999aeb2a72e74729a7ec5e00838c25b3a0cb5308b6896488
MD5 27f2eea4b7439d8446c88e517d204e53
BLAKE2b-256 4dcf120322a4052f19ad1b9c7ad9468e9d0272fd542f5b99a4b1d2959dc8ede3

See more details on using hashes here.

File details

Details for the file pypassage-1.3-py2-none-any.whl.

File metadata

  • Download URL: pypassage-1.3-py2-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/18.5 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.10

File hashes

Hashes for pypassage-1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 62e28ecbb3d59e50d38897ca8793cdab2d20805dfba8a691a1b7a90214e46887
MD5 5b67d1558c2cf1b13b55ec036eab1cff
BLAKE2b-256 93dbb33dbc3eff9a99400198dca355b3e2bd786f70ce6703f0bea2b16f401203

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