bangladesh-geo-data
Offline, dependency-free Python access to Bangladesh's administrative geography: Division → District → Upazila → Union. The package includes bilingual English/Bengali records, district coordinates, and GeoJSON boundary polygons.
python -m pip install bangladesh-geo-data
Quick start
from bangladesh_geo_data import (
get_district_boundaries,
get_districts,
get_divisions,
get_postcodes,
get_unions,
get_upazilas,
)
get_divisions() # 8 divisions
get_districts(division_id=6) # districts in a division
get_upazilas(district_id=1) # upazilas in a district
get_unions(upazila_id=1) # unions in an upazila
get_postcodes(1206) # bilingual records for a postcode
get_district_boundaries() # GeoJSON FeatureCollection
Every administrative record includes an id, its parent ID where applicable, an English name, a Bengali bn_name, and a government url. District records additionally include lat and lon. IDs are returned as strings to match the source exports; filter arguments accept either strings or integers.
The package makes no network calls and needs no API key. All data is bundled locally, including 8 divisions, 64 districts, 494 upazilas, 4,540 unions, Bangladesh postal-code records, and 64 district boundary features.
Data source and credit
This package distributes data from the open Bangladesh Geocode project by Sayad Md Bayezid Hosan. The repository describes the source material as Bangladesh government websites, Wikipedia, and Google Maps. The project is released under the MIT License.
Full documentation
Read the developer guide in the repository or visit the online documentation.
License
MIT. See the LICENSE file.
Metadata
Release files for bangladesh-geo-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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bangladesh_geo_data-0.1.0.tar.gz | 819.4 kB | Without provenance | Details for bangladesh_geo_data-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bangladesh_geo_data-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bangladesh_geo_data-0.1.0-py3-none-any.whl |
Total release size: 1.7 MB
Release files / bangladesh_geo_data-0.1.0.tar.gz
| Download URL | bangladesh_geo_data-0.1.0.tar.gz |
|---|---|
| Size | 819.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b87d9d8af060d8cacd5320c47797508b621fc90400ff59b04a3ded30f663111
|
|
BLAKE2b-256 checksum How to use checksums |
6236b50ff1bf3a44cd63423ca483760fd79915a48e1d56700ed5866d47225a66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / bangladesh_geo_data-0.1.0-py3-none-any.whl
| Download URL | bangladesh_geo_data-0.1.0-py3-none-any.whl |
|---|---|
| Size | 842.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3401cac14f61e36677e5e1a440ed14db17660da2a43ac190b561049437bfeeee
|
|
BLAKE2b-256 checksum How to use checksums |
759e43fd77ecd924014b8903201a251d520d3f6b61e71735596a1863150062a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for bangladesh-geo-data 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.