Command-line tools for running AI research agents against a Gramps Web family tree without letting them write guesses into it
pip install gramps-web-toolkit Copy PIP instructions
gramps-web-toolkit is a set of command-line tools for running AI research agents against a family tree in Gramps Web without letting them write guesses into it. Each tool fixes a failure we hit while running about 30 research rounds over two trees of roughly 10,000 people each. The pipeline design and every trap it taught us sit next to the code.
The toolkit works for genealogy in any country. One module, spanish-poller, is Spain-only: it watches the Spanish Ministry of Justice sede and the DEHú notification inbox. In gwt-fetch, iiif works with any IIIF archive, while digibib, gazeta and geo cover Spanish sources and europeana searches every provider in any country (--provider Hispana narrows it to Spain).
Watch the toolkit refuse a duplicate in two minutes, with no server. The tree in examples/ is a snapshot of 30 invented people, and changes.jsonl adds a wife and a son for Tomás Ortega Sanz, but adds Tomás again as a new person although he is already in the tree.
git clone https://github.com/GeiserX/gramps-web-toolkit cd gramps-web-toolkit pipx install . # Python 3.11+, macOS or Linux; every Python tool, needs only requests cd examples gwt check selftest # plants every kind of error in a made-up tree and finds each one gwt apply changes.jsonl --snapshot tree.json.gz --log /tmp/gwt-demo.jsonl # refused: Tomás is already I0008 gwt apply changes-fixed.jsonl --snapshot tree.json.gz --log /tmp/gwt-demo.jsonl # uses I0008: the plan goes through gwt check check tree.json.gz # the whole tree, offline gwt leads --root I0001 --limit 10 tree.json.gz # the gaps to research next, Lucía's ancestors first ./demo.sh in examples/ runs the same commands and checks each exit code. Nothing above writes to a tree: without --apply, gwt apply only prints the plan. Every tool runs as gwt and keeps its old gwt- command too. gwt mh needs the mh extra (pipx install '.[mh]') and a Chrome it reaches over CDP. gwt-spanish-poller needs Node 18+ and Playwright and is not in the package. PyPI gets the package with the first release. Getting started connects the tools to your own tree.
The full documentation is at https://geiserx.github.io/gramps-web-toolkit/
All 2 files in this release have provenance metadata.
ai-agents family-tree genealogy gramps gramps-web
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
All 2 files in this release have been uploaded with provenance metadata.
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.




