This file is designed for AI coding assistants. If you are a human, see README.md for the human-friendly guide.
git clone https://github.com/GreyforgeLabs/sqlite-checkpoint.git && cd sqlite-checkpoint && ./scripts/setup.shAtomic SQLite backup and snapshot tool. Wraps SQLite's WAL checkpoint and online backup APIs into a single CLI and Python library — zero dependencies, safe under concurrent writes, no corruption risk.
sqlite-checkpoint/
src/sqlite_checkpoint/
__init__.py # package version
core.py # checkpoint, backup, snapshot, db_info logic
cli.py # argparse CLI entry point
__main__.py # python -m sqlite_checkpoint support
tests/
test_core.py # unit tests for core functions
test_cli.py # CLI integration tests
scripts/
setup.sh # idempotent install script
.github/workflows/ # CI, release, and PyPI publish workflows
README.md # human-facing docs
STARTHERE.md # this file
- Python 3.11+
- No system dependencies required (uses stdlib
sqlite3)
- Clone:
git clone https://github.com/GreyforgeLabs/sqlite-checkpoint.git - Enter directory:
cd sqlite-checkpoint - Run setup:
./scripts/setup.sh
source .venv/bin/activate
sqlite-checkpoint --version
# Expected output: sqlite-checkpoint 0.1.0src/sqlite_checkpoint/cli.py— CLI entry point (sqlite-checkpointcommand)src/sqlite_checkpoint/core.py— Python API (checkpoint,backup,snapshot,db_info)
No configuration files or environment variables required. All options are passed via CLI flags or function arguments.
# Run tests
python -m pytest
# Run linter
python -m ruff check .
# Format code
python -m ruff format .
# Build distribution
python -m build