v0.1.0 — Initial public release
Initial public release
First public release of the datos-mexico Python SDK.
Features
- 78 endpoints implemented covering 100% of the public read API of
https://api.datos-itam.org - 9 namespaces: cdmx (servidores públicos), consar (SAR/AFOREs),
enigh (hogares), comparativo (cross-dataset), personas, nombramientos,
demo, export, plus root client.health() - Pydantic v2 strict models with Decimal precision for monetary
fields (preserves accuracy for financial analysis) - HTTP client with retries (exponential backoff), in-memory TTL
cache, and structured exception hierarchy - 201 unit tests + 27 integration tests validating identidad
contable contra cifras INEGI oficiales - Type checked with mypy --strict in 28 source files
- 5 Jupyter example notebooks demonstrating real workflows
Installation
pip install datos-mexico==0.1.0Optional dependencies for running notebooks:
pip install datos-mexico[examples]Quickstart
from datos_mexico import DatosMexico
with DatosMexico() as client:
stats = client.cdmx.dashboard_stats()
print(f'{stats.total_servidores:,} servidores públicos en CDMX')Documentation
See https://github.com/datos-mexico/datos-mexico-py for full documentation
and example notebooks in the examples/
directory.
Citation
See CITATION.cff
for citation in BibTeX format.