Skip to main content

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.

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)

Source distribution for bangladesh-geo-data 0.1.0
File Size Uploaded
bangladesh_geo_data-0.1.0.tar.gz 819.4 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

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