Using the Data / Python
Python Package
Install the published package when you want the administrative data available offline inside a Python project.
Install
python -m pip install bangladesh-geo-dataInspect the package
from bangladesh_geo_data import data
print(data.divisions)
print(data.districts)
print(data.upazilas)
print(data.unions)Use it in a data pipeline
The package is a convenient distribution channel for local analysis, ETL jobs, and notebooks. For browser applications or lightweight deployments, fetch the repository JSON files directly instead.
Offline-first: Pin the package version in production so the data snapshot used by a pipeline remains reproducible.