A text-based Bible study companion for your terminal
Project description
biblestudy-cli
BibleStudy CLI — a text-based Bible study companion for your terminal.
Powered by api.bible, api.nlt.to, api.esv.org, and OpenAI.
Inspired by SimplyScripture.
Note: Neither I nor this tool are affiliated with SimplyScripture — I just like their concept and wanted a CLI version.
✨ Features
- Input or detect Bible references (e.g.,
John 3:16) - Choose from the following translations:
- ✅ NLT (New Living Translation) — via
api.nlt.to - ✅ ESV (English Standard Version) — via
api.esv.org - ✅ FBV (Free Bible Version)
- ✅ KJV (King James Version)
- ✅ ASV (American Standard Version)
- ✅ WEB (World English Bible)
- ✅ NLT (New Living Translation) — via
- Retrieve verse content and:
- ✏️ Simplify it
- 🗣️ Translate into modern speech
- 🏺 Reveal historical background
- 🔗 Cross-reference other scriptures
- 🔍 Highlight key terms
- 🛠️ Apply to daily life
- 📅 Verse of the Day support (automatically shown on launch or via Option 9)
- Save study notes automatically
- Works in any terminal — beautiful output powered by
rich
🚀 Quickstart
🔐 API Keys Setup
You'll need:
- OpenAI API key (Get one here)
- api.bible key (Sign up here)
- NLT API key (Request access here)
- ESV API key (Request access here)
Set environment variables:
export OPENAI_API_KEY=your-openai-key
export BIBLE_API_KEY=your-api-bible-key
export NLT_API_KEY=your-nlt-api-key
export ESV_API_KEY=your-esv-api-key
export BIBLESTUDY_NOTES_DIRECTORY=./notes # optional override
Or use config.py locally (not recommended for production).
Install from PyPI
This package is published to PyPI, so you can install using pip directly:
pip install biblestudy
biblestudy
...OR Install Locally
To install the package locally for development or testing:
# Clone the repository (if you haven't already)
git clone https://github.com/labrack/biblestudy-cli.git
cd biblestudy-cli
# Install the package in development mode
pip install .
This is equivalent to the old way of running python main.py, but now the biblestudy command is available system-wide after installation.
🚀 Requirements
- Python 3.9+
requests,openai,rich,beautifulsoup4
Install dependencies:
pip install -r requirements.txt
▶️ Running the App
Once installed, you can run the Bible study CLI from anywhere:
# Run the CLI using the installed command
biblestudy
💬 Sample Run
📖 Welcome to the Bible Study CLI 📖
Enter a Bible reference (e.g., John 3:16) or a snippet of scripture.
>> John 3:16
Which translation would you like to use?
[1] NLT (New Living Translation)
[2] ESV (English Standard Version)
[3] FBV (Free Bible Version)
[4] KJV (King James Version)
[5] ASV (American Standard Version)
[6] WEB (World English Bible)
Enter the number for your translation [1-6]: 1
Fetching NLT passage: John 3:16... done.
📜 John 3:16
╭────────────────────────────────────────────────────────────────────────────╮
│ For God loved the world so much that he gave his one and only Son, so │
│ that everyone who believes in him will not perish but have eternal life. │
╰────────────────────────────────────────────────────────────────────────────╯
What would you like to do?
[1] ✏️ Simplify
[2] 🗣️ Modern English
[3] 🏺 Background
[4] 🔗 Cross-References
[5] 🔍 Keyword Focus
[6] 🛠️ Life Application
[7] 🔄 Change Translation for Current Reference
[8] ➕ Enter a New Bible Reference
[9] 📅 Show the Verse of the Day
[0] 🚪 Exit
💾 Saving Notes
Your study results are saved to the notes/ folder by default.
You can change the location with the BIBLESTUDY_NOTES_DIRECTORY environment variable.
💡 Tips for Development
- Don't commit your real API keys — use the provided
.gitignoreto ignoreconfig.py - Use
.env.exampleas a template for local testing - Notes are plain
.txtfiles and easy to back up
🍎 Mac-Specific Notes
If you see a warning like this:
NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently using LibreSSL
✅ You can safely ignore it, or pin urllib3<2 in your requirements to avoid it.
🔮 Future Ideas
- Add fuzzy search for snippets (e.g. "love is patient")
- Support full chapter navigation
- Offline caching for entire books
- Save notes in Markdown format
- Session resume after crash
- UI upgrade using
textualorurwid
📜 License
MIT License — use freely and contribute back!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file biblestudy-1.4.2.tar.gz.
File metadata
- Download URL: biblestudy-1.4.2.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3e2598620fcd5c99420d57ae4ca49cfcc843f222ca15e01c22ce858153d7b22
|
|
| MD5 |
e54b5c96974998deefd893e048357c5d
|
|
| BLAKE2b-256 |
a148100bef92e40ed3036e50b3afabf3884f4ace290cda31821f633117e26f5c
|
File details
Details for the file biblestudy-1.4.2-py3-none-any.whl.
File metadata
- Download URL: biblestudy-1.4.2-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbf5d29ad46b28de1d1e9a28fcf3c12893cfceec2d9be7098b3266b729cc724a
|
|
| MD5 |
772611f18d9c1753ec0d491d69d6a077
|
|
| BLAKE2b-256 |
0efb1e41e10ab9cd789ae21a7cfb528791296964b203dc524d8528d1f23726c1
|