Skip to main content

bookish-developer-toolkit

Open-source tools for digital productivity, automation, and template development.

Bookish QA

Bookish QA (bookish-qa) is a local-first command-line tool that checks a folder or a ZIP file before you ship it: templates, ebooks, software packages and downloadable bundles. It reports empty files, duplicate files, files that should not ship (for example a .env), missing files you require, names that break on Windows or macOS, and ZIPs that are damaged or unsafe to open. It can also check a product against a manifest of file sizes and SHA-256 hashes.

Status: version 0.1.0 release candidate. Not published to PyPI yet. The code is complete for Phase 1 and passes CI on Linux, macOS and Windows with Python 3.11 to 3.14. Until the first release you install it from a built wheel or from source (see below). The project is young: expect rough edges, read Known limitations, and treat a clean report as "no problems found by these checks", not as proof that a product is flawless or safe.

What makes it different

  • Read-only scanning. A scan never modifies, moves or deletes your files. It writes a report only when you pass --output, and then only to a new file (it never overwrites, and refuses to write inside what it is scanning).
  • Local-first. Your files are never sent anywhere. The package has no network code, and a test checks that it does not import networking modules.
  • ZIPs are inspected, not extracted. Archives are read in memory with strict size, count, ratio and time limits, using a small purpose-built parser.
  • Says when it could not check something. Encrypted entries, unsupported compression, files it could not hash and similar gaps make the inspection incomplete. An incomplete scan is labelled as such in every report, and --require-complete turns it into a failure.
  • No runtime dependencies. Python 3.11+ standard library only, which keeps it easy to audit.
  • Reports for people and machines. Text for terminals, Markdown for issues and pull requests, and versioned JSON (with a published schema) for CI. Hostile file names cannot inject terminal escape sequences or Markdown into a report.

Other tools cover neighbouring ground (archive scanners, secret scanners, file-format validators, checksum tools; see the comparison). Bookish QA is not a replacement for them: it is not a malware scanner, not a secret scanner (it only flags suspicious file names and never reads those files), and it does not validate the internal structure of EPUB, PDF or other formats.

Install

Requires Python 3.11 or newer on Windows, macOS or Linux. A virtual environment is recommended.

# After the first release is published:
python -m pip install bookish-qa

# Today: from a clone of this repository
python -m pip install .
# or, for development:
python -m pip install -e ".[dev]"

Check it works:

bookish-qa --version
bookish-qa --help

More detail (wheels, upgrading, uninstalling, platform notes) in docs/installation.md.

Quickstart

bookish-qa scan path/to/folder            # scan a folder
bookish-qa scan path/to/bundle.zip        # scan a ZIP (never extracted)

Example output for a small flawed bundle:

Bookish QA 0.1.0
Target: flawed (directory)
Inspected: 6 files, 2 directories, 0 links, 0 other
Inspection: complete

ERROR    BQ004  .env
         Possibly sensitive file (matched ".env"). Contents were not read.
         Hint: Remove it from the release; it may contain credentials or keys.
WARNING  BQ001  docs/empty-notes.txt
         Empty file (0 bytes).
         Hint: Add the intended content or remove the file from the release.
...
Summary: 1 error, 3 warnings, 1 info. Result: FAIL (fail-on: error)

(Three findings are omitted from this excerpt; examples/make_flawed_bundle.py creates the bundle.)

Make the checks stricter or add your own requirements:

bookish-qa scan product --require README.md --require "LICENSE*" --max-file-size 20M \
    --fail-on warning --require-complete
bookish-qa scan product --config examples/bookish-qa.toml

Write a report to a new file:

bookish-qa scan product --format markdown --output report.md
bookish-qa scan product --format json --output report.json

Record what a release should contain, then verify a delivered copy against it:

bookish-qa manifest generate product --output manifest.json
bookish-qa scan delivered-copy.zip --manifest manifest.json

A step-by-step tutorial with example bundles is in docs/quickstart.md.

Exit codes

Code Meaning
0 No finding at or above --fail-on (default error); with --require-complete, the inspection was also complete
1 Findings at or above --fail-on, or an incomplete inspection with --require-complete
2 Usage error or invalid configuration
3 Unreadable input, refused output path, closed output pipe, or internal error
130 Interrupted with Ctrl-C

The exit code does not depend on --format or --output.

What it checks

26 rules, each with a stable ID. Severities can be changed in a configuration file, and rules that protect you from unsafe input cannot be switched off.

Area Rules
Files and folders (directories and ZIPs) BQ001 empty file · BQ002 empty directory · BQ003 missing required file · BQ004 sensitive or junk file · BQ005 duplicate content (SHA-256) · BQ006 unexpected file · BQ007 file too large · BQ008 portability (Windows/macOS names, long paths) · BQ009 link or special file · BQ010 entry could not be inspected
ZIP archives BQ100 unsafe path · BQ101 compression ratio · BQ102 size or count limit · BQ103 encrypted entry · BQ104 integrity failure · BQ105 duplicate names · BQ106 special entry · BQ107 nested archive · BQ108 invalid ZIP structure
Manifests BQ200 missing · BQ201 invalid · BQ202 declared file missing · BQ203 undeclared file · BQ204 hash mismatch · BQ205 size mismatch · BQ206 unsafe or duplicate path

BQ003, BQ006 and BQ007 do nothing until you give them a policy. The full catalogue, with what each rule means and how to fix it, is in docs/rules.md.

Use it in CI

examples/github-actions/bookish-qa.yml is a ready-to-copy GitHub Actions workflow that scans a folder, fails the job on problems and keeps the report. docs/ci.md explains it.

Documentation

Document Purpose
Quickstart First scan to first report, with example bundles
Installation Install, upgrade, uninstall, verify
CLI reference Every command, option and exit code
Rules The rule catalogue
Configuration TOML configuration, limits, severities
Manifests Manifest format, generation, verification
Reports Text, Markdown and JSON reports; the JSON schema
CI integration GitHub Actions example
Troubleshooting Messages, exit codes, false positives
Threat model What is defended, how, and what is not
Known limitations Honest list of gaps
Architecture Design and decisions
Contributing · Security policy · Changelog Project policies

Safety, stated carefully

Bookish QA is built to handle untrusted folders, archives, manifests and configuration files defensively, and the defences are tested, including with generated hostile inputs. That is not a guarantee. On directories, an attacker who can change the folder while it is being scanned can race the scanner (documented as KL-015); ZIP time limits are cooperative; and the POSIX output-safety code has been exercised in CI but not mutation-tested. Run it on products you are preparing to ship, not as a security boundary for hostile content. Details: the threat model and known limitations. To report a vulnerability, follow SECURITY.md.

License

MIT. See LICENSE.

Scope note

Bookish QA is an independent project. It contains no proprietary Bookish Marketplace products, files, credentials or business assets, and none are used in its tests, fixtures or examples.

Metadata

Release files for bookish-qa 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bookish-qa 0.1.0
File Size Uploaded Provenance Actions
bookish_qa-0.1.0.tar.gz 201.8 kB With provenance Details for bookish_qa-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bookish-qa 0.1.0
File Interpreter ABI Platform Actions
bookish_qa-0.1.0-py3-none-any.whl Python 3 none any Details for bookish_qa-0.1.0-py3-none-any.whl

Total release size: 267.7 kB

Release files / bookish_qa-0.1.0.tar.gz

Download URL bookish_qa-0.1.0.tar.gz
Size 201.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6c3e4de3d0fb047c432d6f6e6c6d5c76481cc2a28e262c03e6fe0a5edc5479d5
BLAKE2b-256 checksum
How to use checksums
94d32c4dd1e6786e0792814a599b35633ef743daa148d1c12de4653bd010085f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Release files / bookish_qa-0.1.0-py3-none-any.whl

Download URL bookish_qa-0.1.0-py3-none-any.whl
Size 65.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a839a6bf16b94c408578c78c2d74775ba343cce8eda2b459f1e3ad8e9efa732e
BLAKE2b-256 checksum
How to use checksums
297a9c7a0e435f62d809e62c3b13d5f50feac64124e6315e8641c607db3d2769
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Security for bookish-qa 0.1.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.

Select from 2 files

Attestation for bookish_qa-0.1.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 Dec 3, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page