A lightweight terminal workflow for daily Bible reading
Project description
Bible Reader
A lightweight terminal workflow for daily Bible reading.
This project stores a day-by-day reading plan, shows one day at a time, and tracks your progress using standard Linux (XDG) directories.
What This Project Does
- Imports a WorldBiblePlans-style EPUB into a normalized markdown plan.
- Splits a full markdown plan into one file per day with commentary.
- Extracts scripture-only files from commentary files.
- Shows today's reading in the terminal and optionally advances your day counter.
- Includes a command to prompt you to read only once per day, perfect for your shell startup file.
Project Structure
plan.md: Source markdown reading plan (generated or provided by you).days-commentary/: Per-day files containing label, reference, scripture, and commentary.days/: Per-day scripture-only files.src/bible_reader/: The core Python package containing all script logic.tests/: Unit tests for the package.
Local State Files (XDG Standards)
This project respects standard Linux directory structures to keep your home folder clean. Your reading progress and prompt history are stored here:
- Reading Progress:
~/.local/share/bible-reader/current_day.txt - Daily Prompt Stamp:
~/.local/state/bible-reader/last_prompt_date.txt
If you ever need to reset your local progress, you can edit or delete those specific files.
Requirements
- Python 3.11+
- uv (Recommended for installation and dependency management)
Installation
The easiest way to install the Bible Reader is using uv. This installs the tools globally so you can use them anywhere.
uv tool install bible-reader
If you prefer using standard pip:
pip install bible-reader
Project Status
This project is actively developed.
Development cadence may be uneven, and there may be periods of slower progress or pauses due to health limitations. Bug reports and well-scoped contributions are still welcome during those periods.
Accessibility
Accessibility is a core project goal.
This project aims to provide an easy, low-friction, screen-reader-friendly way to read the Bible in a terminal workflow.
When changing output, prompts, or documentation, prefer:
- plain, readable text over decorative formatting.
- predictable headings and labels.
- wording that makes sense when read aloud by a screen reader.
- output that does not rely on visual alignment, color, or ASCII art to communicate meaning.
Contributors should treat regressions in accessibility as real regressions, not cosmetic issues.
Development Checks
Run these checks locally before committing:
uv run ruff check .
uv run python3 -m unittest discover tests -v
Quick Start (Daily Workflow)
Because this is a Python package, you no longer need to type python3 path/to/script.py. You can use the installed commands from anywhere in your terminal.
1. One-Time Setup (From EPUB)
If you are starting from a new WorldBiblePlans EPUB, create a folder for your plan and run this sequence:
import-epub /path/to/plan.epub --output plan.md
split-plan
extract-scripture
2. Daily Reading
To read today's passage:
bible-reader
When prompted:
- Enter
yto mark the reading complete and advance to the next day. - Enter
nto keep your current day.
3. Shell Integration (Read Once Per Day)
If you want your terminal to prompt you to read when you open it, but only once per day, add this command to your .bashrc or .zshrc:
maybe-read-bible
Command Reference
All commands support a --debug flag for verbose troubleshooting output.
import-epub
Usage: import-epub /path/to/plan.epub --output plan.md
- Reads EPUB spine order from the package document.
- Detects day pages from
h1headings likeDay N:. - Writes normalized sections with scripture and commentary
##headings.
split-plan
Usage: split-plan
- Splits
plan.mdand writesdays-commentary/day0001.txt,day0002.txt, etc. - Validates each non-cover section has at least two
##headings.
extract-scripture
Usage: extract-scripture
- Extracts the text between the first and second
##headings from the commentary files. - Writes scripture-only files into
days/with matching day filenames.
bible-reader
Usage: bible-reader
- Initializes
current_day.txtin your XDG Data directory if missing. - Prints the day label, reference, and scripture text.
- Prompts to mark complete and increments the counter on
y. - Uses a file lock to prevent multiple terminal tabs from overwriting your progress concurrently.
maybe-read-bible
Usage: maybe-read-bible
- Uses a date stamp in your XDG State directory to avoid prompting more than once per calendar date.
- Updates the stamp only when you mark the reading complete (
y). - Delegates locking and reading logic to the main
bible-readerworkflow.
Plan Source and Compatibility
The EPUB import flow is designed specifically for plans from WorldBiblePlans.com:
Current compatibility target:
- Plans that include full Bible text plus commentary in each day page.
Known-compatible sample:
New-Living-Translation-2015-Chuck-Smith-Commentary-Gen-to-Rev-Scriptures-1-Chapter-Daily-Verse-By-Day.epub
Important limitation: Other EPUB layouts (e.g., plans without commentary, alternate heading structures) are not guaranteed to parse correctly as they have not been broadly tested.
Copyright and Content Notice
This repository is intended to distribute tooling only.
- Do not commit or publish copyrighted plan content (for example EPUB source files, generated
plan.md,days/, ordays-commentary/) unless you have explicit rights to do so. - The repository ignores those content paths by default so they stay local.
- Users should provide their own plan files and are responsible for ensuring they have permission to use that content.
Request Support
If a specific Bible plan from World Bible Plans is not working with this tool, I would like to help.
Because I use a screen reader, please provide information as plain text or Markdown. Please do not send screenshots of the error or the plan.
- Check your file: Ensure your plan has "Day" headings (like
Day 1:) and section headings (like## Scripture). - Open an Issue: Go to the "Issues" tab on GitHub and describe what happened.
- Paste a sample: If possible, paste a small section of the text from the EPUB that is causing the error.
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 bible_reader-2.0.2.tar.gz.
File metadata
- Download URL: bible_reader-2.0.2.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b3f63a602caa2f5dd917f34c843a73091a754a1b283011a347db0032ee7d417
|
|
| MD5 |
b2f12ce2f13f69a5a0046eafa38f2f54
|
|
| BLAKE2b-256 |
c3f7549cb706323b17d44b5c6271c3452209516766097cfba34f76ea7a242356
|
Provenance
The following attestation bundles were made for bible_reader-2.0.2.tar.gz:
Publisher:
release.yml on RareBird15/bible-reader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bible_reader-2.0.2.tar.gz -
Subject digest:
5b3f63a602caa2f5dd917f34c843a73091a754a1b283011a347db0032ee7d417 - Sigstore transparency entry: 1268856180
- Sigstore integration time:
-
Permalink:
RareBird15/bible-reader@57fb9da14bbf536be1e84ce90cd363c28374eddc -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/RareBird15
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@57fb9da14bbf536be1e84ce90cd363c28374eddc -
Trigger Event:
push
-
Statement type:
File details
Details for the file bible_reader-2.0.2-py3-none-any.whl.
File metadata
- Download URL: bible_reader-2.0.2-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c236de28b1b48a651c01e9a5e3789d51b17db70c2ab1108260452e74b4bed875
|
|
| MD5 |
8589f4a0ffe2193d7e70428652a8d48b
|
|
| BLAKE2b-256 |
208badc4df52f86a2ebe4809b5db0ba51027bc52ecce634956bb738bf949cc30
|
Provenance
The following attestation bundles were made for bible_reader-2.0.2-py3-none-any.whl:
Publisher:
release.yml on RareBird15/bible-reader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bible_reader-2.0.2-py3-none-any.whl -
Subject digest:
c236de28b1b48a651c01e9a5e3789d51b17db70c2ab1108260452e74b4bed875 - Sigstore transparency entry: 1268856254
- Sigstore integration time:
-
Permalink:
RareBird15/bible-reader@57fb9da14bbf536be1e84ce90cd363c28374eddc -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/RareBird15
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@57fb9da14bbf536be1e84ce90cd363c28374eddc -
Trigger Event:
push
-
Statement type: