gutenbit
A command line tool for fast local search across public-domain literary works.
Find, browse and search books from your terminal.
CLI Install
Try the latest stable release from PyPI without a persistent install:
uvx gutenbit --help
Or install it like this and then run gutenbit --help:
uv tool install gutenbit
gutenbit stores its database and catalog cache in ~/.gutenbit/.
CLI Example
Find a book in the Project Gutenberg catalog and download it locally. Sections are parsed automatically during import.
gutenbit catalog --author "Jane Austen"
gutenbit add 1342
Inspect the table of contents, read the opening, or jump into a section. If a
book is missing locally, gutenbit toc <id> adds it automatically first.
gutenbit toc 1342
gutenbit view 1342
gutenbit view 1342 --section 2 --forward 5
Search within the book and read exact matches or nearby context.
gutenbit search "truth universally acknowledged" --book 1342 --phrase
gutenbit search "bennet" --book 1342 --limit 3 --radius 1
All commands support --json for machine-readable output.
CLI-managed state is stored under ~/.gutenbit/ by default, including the database at
~/.gutenbit/gutenbit.db and the catalog cache under ~/.gutenbit/cache/.
Python
gutenbit can also be used as a python module. Add it to your project with:
uv add gutenbit
from gutenbit import Catalog, Database
catalog = Catalog.fetch()
book = catalog.get(1342)
if book is not None:
with Database("~/.gutenbit/gutenbit.db") as db:
db.ingest([book])
for hit in db.search("truth universally acknowledged", book_ids=[1342]):
print(hit.title, hit.div1, hit.content[:80])
Documentation
Full documentation: Getting Started | CLI | Python API | Concepts
Project Gutenberg Access
gutenbit is an open-source project not affiliated with Project Gutenberg. It is for individual downloads, not bulk downloading. It prefers official mirrors and uses the main site only as a fallback, with a default 2 second delay between downloads. gutenbit also sends an identifying default User-Agent on Gutenberg requests. Review Project Gutenberg's Robot Access Policy and Terms of Use.
Development
uv run pytest # fast local suite (excludes live Gutenberg downloads)
uv run pytest -m network # live parser regression corpus against Gutenberg
uv run ruff check . # lint
uv run ruff format --check . # format check
uv run ty check # type check
License
MIT
Metadata
Release files for gutenbit 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gutenbit-1.0.0.tar.gz | 402.3 kB | With provenance | Details for gutenbit-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gutenbit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for gutenbit-1.0.0-py3-none-any.whl |
Total release size: 511.9 kB
Release files / gutenbit-1.0.0.tar.gz
| Download URL | gutenbit-1.0.0.tar.gz |
|---|---|
| Size | 402.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
401ca8e09587ab30ea8d712ebb2e05d0ee0a24ebbe1c4d3613ace198aef00937
|
|
BLAKE2b-256 checksum How to use checksums |
b8fd59513e989ee4c687694363aad1a1398988bcc25db0e3918ffb904fad6eb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2026.
Transparency logRelease files / gutenbit-1.0.0-py3-none-any.whl
| Download URL | gutenbit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 109.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31888ff81565ced512d0a5e498cf06a9bcf281a6de3eb2157388abc7408716e4
|
|
BLAKE2b-256 checksum How to use checksums |
573d44b797d894fae9e39ba3b71542e40eeacd8a89d734625f64f69e9e761fd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2026.
Transparency logSecurity for gutenbit 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gutenbit-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.