tgaz-query

Installation
SKILL.md

TGAZ Historical Gazetteer Query Skill

Setup: Get the Database

The database is 228 MB, so it is not stored in this repo. Keep one copy on the machine at ~/.local/share/sino-authorities/tgaz.db and point everything there.

query_tgaz.py finds it on its own. It looks in this order and uses the first one that exists:

  1. the path given with --db
  2. $TGAZ_DB, if that variable is set
  3. tgaz.db in the current directory
  4. tgaz.db next to query_tgaz.py
  5. ~/.local/share/sino-authorities/tgaz.db (the shared copy)

Check whether the shared copy is already there:

Installs
7
GitHub Stars
9
First Seen
Jun 2, 2026