Skip to main content

A Python package for searching multiple versions of the Bible.

Project description

bible_search

A Python package for searching multiple versions of the Bible.

Installation

pip install multi_bible_search

Usage

from multi_bible_search import BibleSearch


if __name__ == '__main__':
    searcher = BibleSearch()
    query_results = searcher.search("Jesus wept")
    print(query_results[0:10])

The search method returns a list of references. For example, the above code prints the following:

['Luke 8:52', 'Matthew 1:16', 'Luke 5:31', '1 Corinthians 2:2', 'Colossians 1:1', 'Matthew 22:41', 'Genesis 37:35', 'Luke 2:21', 'John 8:59', 'Matthew 3:16']

The results of each query are ranked by the number of keyword occurrences.

If a query is made with no matches, say "notawordinthebible," the result of the query will be a list of length 0.

Supported Versions

Supported versions can be listed with

BibleSearch().versions

Currently, these versions are supported:

  • American King James Version (AKJV)

  • Amplified Bible (AMP)

  • American Standard Version (ASV)

  • Bible in Basic English (BBE)

  • Berean Standard Bible (BSB)

  • Christian Standard Bible (CSB)

  • English Standard Version (ESV)

  • Geneva Bible (GNV)

  • King James Version 1769 (KJV)

  • King James Version 1611 (KJV 1611)

  • Literal Standard Version (LSV)

  • The Message (MSG)

  • New American Standard Bible (NASB 1995)

  • New English Translation (NET)

  • New International Version (NIV 1984)

  • New International Version (NIV 2011)

  • New King James Version (NKJV)

  • New Living Translation (NLT)

  • Revised Standard Version (RSV)

  • World English Bible (WEB)

  • Young’s Literal Translation (YLT)

Versions can be specified with the version parameter in search(). The string passed should be the short form of the version name.

For example, you could use

BibleSearch().search("Jesus wept", version="ESV")

to search the ESV.

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

multi_bible_search-0.0.5.tar.gz (27.8 MB view details)

Uploaded Source

Built Distribution

multi_bible_search-0.0.5-py3-none-any.whl (27.8 MB view details)

Uploaded Python 3

File details

Details for the file multi_bible_search-0.0.5.tar.gz.

File metadata

  • Download URL: multi_bible_search-0.0.5.tar.gz
  • Upload date:
  • Size: 27.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for multi_bible_search-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5ec615c55bab8165909971c9c22382bb177edc1efc9b6ef86c95f0216b6150b2
MD5 552f2f8d866dd7f6b5ea716b602d287c
BLAKE2b-256 689c102d14ef7d4dbb7328cbbdd4aee9206f83d6db2fa452c2d4a32501612fdd

See more details on using hashes here.

File details

Details for the file multi_bible_search-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for multi_bible_search-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 46f944bd7ce07a00611c44d9c0550bedf38b09429f79aebd56be3192ba096389
MD5 c3463f0f82d41b16d1ed1cf7ffa250bd
BLAKE2b-256 1cbe9ce300e0c178976193c6c4dcf405aae90f2b60d99fb7d42a74fba8bdd7ed

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