Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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.

Release history Release notifications

This version
History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pypassage-1.3-py2.py3-none-any.whl (19.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Apr 4, 2018
pypassage-1.3.tar.gz (20.3 kB) Copy SHA256 hash SHA256 Source None Apr 4, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page