Metadata-Version: 2.5
Name: kenya-data
Version: 0.1.0
Summary: Python SDK for the Kenya Data structured dataset
Project-URL: Homepage, https://github.com/ToshGitonga0/kenya-data
Project-URL: Repository, https://github.com/ToshGitonga0/kenya-data
Project-URL: Issues, https://github.com/ToshGitonga0/kenya-data/issues
Author: Kenya Data contributors
License: MIT
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: mypy>=1.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Description-Content-Type: text/markdown

# kenya-data (Python SDK)

```python
from kenya_data import Kenya

kenya = Kenya()                       # loads the bundled data/kenya.db by default
kenya = Kenya(db_path="/path/to/kenya.db")  # or point at a specific build

kenya.counties.list()
kenya.counties.get("Nakuru")
kenya.constituencies.in_county("Nakuru")
kenya.wards.in_constituency("Naivasha")

kenya.dataset.version
kenya.dataset.updated_at
```

Backed by the SQLite database built from `database/schema/schema.sql` —
see the repository root [README](../../README.md) and
[docs/sdk-design.md](../../docs/sdk-design.md).
