Skip to main content

Bible reference CLI application

Project description

Pybible-cli - Bible reference

The pybible-cli is as a basic module for referencing the bible books, chapters and verses. Using the command line is possible to reference the King James Bible (https://www.sacred-texts.com/bib/osrc/index.htm).

Installation

You can install the pybible-cli from PyPI(): pip install pybible-cli

This module is available on Python 3 and above.

How to use

The pybible-cli is a command line application, named pybible. To reference (print on your terminal) verses, chapters, books and even the whole bible simply call the program:

$ pybible
In the beginning God created the heaven and the earth.
...
The grace of our Lord Jesus Christ be with you all. Amen.

It's possible to reference the whole bible as above or just a part of it, some examples are:

Reference the old testament:

$ pybible -ot
In the beginning God created the heaven and the earth.
...
And he shall turn the heart of the fathers to the children, and the heart of the children to their fathers, lest I come and smite the earth with a curse

Reference the new testament:

$ pybible -nt
The book of the generation of Jesus Christ, the son of David, the son of Abraham.
...
The grace of our Lord Jesus Christ be with you all. Amen.

Reference the book of John:

$ pybible --book john
In the beginning was the Word, and the Word was with God, and the Word was God.
...
And there are also many other things which Jesus did, the which, if they should be written every one, I suppose that even the world itself could not contain the books that should be written. Amen.

Reference third chapter from the book of John:

$ pybible --chapter john 3
There was a man of the Pharisees, named Nicodemus, a ruler of the Jews:
...
He that believeth on the Son hath everlasting life: and he that believeth not the Son shall not see life; but the wrath of God abideth on him.

Reference the fourth verse of the third chapter from the book of John:

$ pybible --verse john 3 4
Nicodemus saith unto him, How can a man be born when he is old? can he enter the second time into his mother's womb, and be born?

Get a random verse with the --qotd arugmnet:

$ pybible --qotd
"And the house which I build is great: for great is our God above all gods." - 2 Chronicles 2:5 (King James Bible)    

It is possible to add extra parameters for adding the reference on the output(-r, --reference) and count the size(-s, --size) of what is been referenced.

For help execute:

$ pybible -h
usage: pybible [-h] [--bible BIBLE]
               [-ot | -nt | --qotd | --book BOOK_NAME | --chapter BOOK_NAME CHAPTER_NUMBER | --verse BOOK_NAME CHAPTER_NUMBER VERSE_NUMBER]
               [-r] [-s]

Bible reference

optional arguments:
  -h, --help            show this help message and exit
  --bible BIBLE         Bible version to use
  -ot, --old_testament  Reference the old testament
  -nt, --new_testament  Reference the new testament
  --qotd                Quote a single, random verse
  --book BOOK_NAME      Reference book
  --chapter BOOK_NAME CHAPTER_NUMBER
                        Reference book and chapter
  --verse BOOK_NAME CHAPTER_NUMBER VERSE_NUMBER
                        Reference book, chapter and verse
  -r, --reference       Include book, chapter number and verse reference
  -s, --size            Size of bible, book, chapter or vere referenced

✞

You can also use pybible-cli on your on python code for referencing the bible, just import pybible_load module from pybible package:

>>> from pybible import pybible_load
>>> bible = pybible_load.load()
>>> bible.name
'King James Bible'

Contributing

If you like this module feel free to contribute and make the pybible-cli module a pythonic bible reference module (that's is the goal).

At this point there is only on bible version available(King James Version), you can help adding more versions of the bible to this module, just follow the OOP structure inside the classes package and pickle it to a single file.

There are some performance issues involving unpickling, you can help on that too ;)

Feel free to reach me for the new features and ideas ...

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

pybible-cli-1.1.3.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

pybible_cli-1.1.3-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file pybible-cli-1.1.3.tar.gz.

File metadata

  • Download URL: pybible-cli-1.1.3.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

File hashes

Hashes for pybible-cli-1.1.3.tar.gz
Algorithm Hash digest
SHA256 8d2a1b145a24f2663ee189a6a9cba54235b0fbb63ceed61513c0c25f8690a6b0
MD5 0f3da44860c0e0e556ae5eda24aaf13c
BLAKE2b-256 3b7f6d663bda42384729abe1f96188d43edb5cabbae68df0ff69598396fa99b3

See more details on using hashes here.

File details

Details for the file pybible_cli-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: pybible_cli-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

File hashes

Hashes for pybible_cli-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 23a6b61c5c7f627b819cdf2f9e5bb772d36a5c0b4ab3817c3a0a006b38f7b97a
MD5 77a5df0e8d09605537a49981ca80ee17
BLAKE2b-256 61bb4a3fc8e376a96779655605e53b366c12ae2e73dc8ec20163d921ce531423

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page