Skip to main content

kenya-data (Python SDK)

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 and docs/sdk-design.md.

Release files for kenya-data 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kenya-data 0.1.0
File Size Uploaded
kenya_data-0.1.0.tar.gz 112.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kenya-data 0.1.0
File Interpreter ABI Platform
kenya_data-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 226.5 kB

Release files / kenya_data-0.1.0.tar.gz

Download URL kenya_data-0.1.0.tar.gz
Size 112.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fae5e4f3e6b41732152f0ac3d9763ae9f9849d7162f55bea8dbd7c146dc855a2
BLAKE2b-256 checksum
How to use checksums
fcad209847e386dc4fd797ed00aec072f2e80a0015679f68ddd8f24473435607
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / kenya_data-0.1.0-py3-none-any.whl

Download URL kenya_data-0.1.0-py3-none-any.whl
Size 114.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
631400843492bb4bdac46d1f2b9d4832537e922006c9888e73e000caac9ac189
BLAKE2b-256 checksum
How to use checksums
5bcd0debed911e611de1d87f447324b69d313b29216f205995ba9a6f3785747d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page