Skip to content

Commit

Permalink
Added more Bible versions
Browse files Browse the repository at this point in the history
  • Loading branch information
samhaswon committed Mar 9, 2024
1 parent 268e9a7 commit 2cf027a
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 24 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ BibleSearch().versions

Currently, these versions are supported:

- A Conservative Version (ACV)

- American King James Version (AKJV)

- Amplified Bible (AMP)
Expand All @@ -53,6 +55,12 @@ Currently, these versions are supported:

- Christian Standard Bible (CSB)

- Darby Bible (Darby)

- Douay-Rheims 1899 American Edition (DRA)

- Rotherham's Emphasized Bible (EBR)

- English Standard Version (ESV)

- Geneva Bible (GNV)
Expand All @@ -77,15 +85,21 @@ Currently, these versions are supported:

- New Living Translation (NLT)

- Restored Name King James Version (RNKJV)

- Revised Standard Version (RSV)

- Revised Webster Version 1833 (RWV)

- Updated King James Version (UKJV)

- 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
For example, you could use:
```python
BibleSearch().search("Jesus wept", version="ESV")
```
Expand Down
52 changes: 30 additions & 22 deletions build_index/build_bible_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,36 @@ def make_index(bibles: dict) -> dict:

if __name__ == '__main__':
# Bible object initialization
bibles = {'AKJV': AKJV(),
'AMP': AMP(),
'ASV': ASV(),
'BBE': BBE(),
'BSB': BSB(),
'CSB': CSB(),
'ESV': ESV(),
'GNV': GNV(),
'KJV': KJV(),
'KJV 1611': KJV1611(),
'LSV': LSV(),
'MSG': MSG(),
'NASB 1995': NASB1995(),
'NET': NET(),
'NIV 1984': NIV1984(),
'NIV 2011': NIV2011(),
'NKJV': NKJV(),
'NLT': NLT(),
'RSV': RSV(),
'WEB': WEB(),
'YLT': YLT()
}
bibles = {
'ACV': ACV(),
'AKJV': AKJV(),
'AMP': AMP(),
'ASV': ASV(),
'BBE': BBE(),
'BSB': BSB(),
'CSB': CSB(),
'Darby': Darby(),
'DRA': DRA(),
'EBR': EBR(),
'ESV': ESV(),
'GNV': GNV(),
'KJV': KJV(),
'KJV 1611': KJV1611(),
'LSV': LSV(),
'MSG': MSG(),
'NASB 1995': NASB1995(),
'NET': NET(),
'NIV 1984': NIV1984(),
'NIV 2011': NIV2011(),
'NKJV': NKJV(),
'NLT': NLT(),
'RNKJV': RNKJV(),
'RSV': RSV(),
'RWV': RWV(),
'UKJV': UKJV(),
'WEB': WEB(),
'YLT': YLT()
}
# Timer start, because I like stats
start = time.perf_counter()

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "multi_bible_search"
version = "0.0.6"
version = "0.0.7"
authors = [
{ name="Samuel Howard" },
]
Expand Down
Binary file modified src/multi_bible_search/bible_index.json.pbz2
Binary file not shown.

0 comments on commit 2cf027a

Please sign in to comment.