Files
bible/README.md
T

65 lines
1.2 KiB
Markdown

# Bible CLI/TUI - *Powered by API.Bible*
[![Pixi](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/prefix-dev/pixi/main/assets/badge/v0.json&style=flat-square)](https://pixi.sh)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
---
### Install
#### Clone the repository, and then
*with uv*
```console
uv tool install .
```
*with pipx*
```console
pipx install .
```
---
### Run as a CLI
```console
bible-cli book chapter Genesis 1
```
![cli](./img/cli.png)
### Run as a TUI
```console
bible-tui
```
![tui](./img/tui.png)
---
### Requirements
- An API key from [API Bible][api-bible]
### Configure
Example .env:
```env
BIBLE_API_KEY="<api-key>"
BIBLE_BIBLE_NAME="New King James Version"
BIBLE_BOOK_NAME='Genesis'
BIBLE_THEME="onyx-light"
BIBLE_LOG_LEVEL="info"
```
> Note, although cache expiry days is configurable it should NOT be set above 30 days, as per the terms and conditions of the API. See [Acceptable Use][acceptable-use]
---
[api-bible]: https://api.bible
[acceptable-use]: https://api.bible/terms-and-conditions#acceptable_use