CLI to validate CSV or GeoJSON against the Bharat Address schema (JSON Schema draft 2020-12) and run basic QC rules.
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python validate.py data/sample.geojson --schema specs/address-register.schema.json --schema-target collection
python check_qc.py data/sample.geojson- The authoritative schema lives in
BharatAddress/specs; this repo includes a synced copy for CI examples. - The validator supports three targets via
--schema-target:collection,feature, orproperties. - QC checks are intentionally small and can be extended for local rules.
validate.py: schema validation entrypoint.check_qc.py: basic QC checks.specs/: synced schema copy for tests.
- Data teams validating pilot datasets.
- Tool builders integrating schema checks.
See LICENSE.
- Central guidelines: https://github.com/BharatAddress/.github/blob/main/AGENTS.md