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

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

  • Download URL: pypassage-1.3.1.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • 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.1.tar.gz
Algorithm Hash digest
SHA256 efb17249aceb0e86ccafa6cd3811041569c6967d553553ec699ba88158ad34c1
MD5 43fa6430281c3b3ff88160b0f0cfcbf5
BLAKE2b-256 01a35f485553b8f3187b0d0ad2a9848fd4da2b11520a61f75eabefdfb403f54d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypassage-1.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1290041ec7c26d547178d16acdc204a4c326768c9ecf2284595e8b0de1fc7bf1
MD5 cc87539f1db09afca122369e0097698c
BLAKE2b-256 bcc1ad79d60da239a95d85ab171f5f9dc793d2de2167d23ea2d5ca9aee7dfbab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypassage-1.3.1-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.1-py2-none-any.whl
Algorithm Hash digest
SHA256 ef5e5337218acfdb0de98e864918625bb44749cb0d76ac61930459ec1aa57c70
MD5 aaac23c7c3861601ee5a66c34c06f3d0
BLAKE2b-256 dca8cbde71dd0ba81bf7c952fb19d2ff77eaeed10c43943aa5e567dc3767fcfe

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