Skip to main content

Nepal Municipalities

Downloads

This is a simple and small python package contributed by me to get all list of municipalities of Nepal based on given districts of Nepal on latest version now you can autocomplete other info when municipalities name is given.

Contents

Installation Use the package manager pip to install nepal-sub-divisions.

To Autocomplete all info based on municipalities name provided for example if you provide municipalities names then rest of district and province will be autocompleted.

from nepal_municipalities import NepalMunicipality

print(NepalMunicipality.all_data_info('Kathmandu Metropolitan City'))
[{'municipality': 'Kathmandu Metropolitan City', 'district': 'Kathmandu', 'province': 'Bagmati', 'province_no': 'Province 3', 'country': 'Nepal'}]

print(NepalMunicipality.all_data_info('Ratuwamai Municipality'))
[{'municipality': 'Ratuwamai Municipality', 'district': 'Morang', 'province': 'Koshi', 'province_no': 'Province 1', 'country': 'Nepal'}]

print(NepalMunicipality.all_data_info('Ratuwamai'))
[{'municipality': 'Ratuwamai Municipality', 'district': 'Morang', 'province': 'Koshi', 'province_no': 'Province 1', 'country': 'Nepal'}]

print(NepalMunicipality.all_data_info('Rat'))
[{'municipality': 'Biratnagar Metropolitan City', 'district': 'Morang', 'province': 'Koshi', 'province_no': 'Province 1', 'country': 'Nepal'}, {'municipality': 'Ratuwamai Municipality', 'district': 'Morang', 'province': 'Koshi', 'province_no': 'Province 1', 'country': 'Nepal'}, {'municipality': 'Bharatpur Metropolitan City', 'district': 'Chitwan', 'province': 'Bagmati', 'province_no': 'Province 3', 'country': 'Nepal'}, {'municipality': 'Ratnanagar Municipality', 'district': 'Chitwan', 'province': 'Bagmati', 'province_no': 'Province 3', 'country': 'Nepal'}, {'municipality': 'Mahabharat Rural Municipality', 'district': 'Kavrepalanchowk', 'province': 'Bagmati', 'province_no': 'Province 3', 'country': 'Nepal'}, {'municipality': 'Pratappur Rural Municipality', 'district': 'Nawalparasi West', 'province': 'Lumbini', 'province_no': 'Province 5', 'country': 'Nepal'}, {'municipality': 'Dasharathchand Municipality', 'district': 'Baitadi', 'province': 'Sudurpashchim', 'province_no': 'Province 7', 'country': 'Nepal'}]

If No matching municipalities are supplied The Exception is thrown as below

No matching info for provided municipalities try changing spelling or try another name.

To get list of all districts of Nepal

from nepal_municipalities import NepalMunicipality


print(NepalMunicipality.districts("Koshi")) # search by province name
# ['Morang', 'Sankhuwasabha', 'Udayapur', 'Jhapa', ......]

To get list of all municipalities of Nepal based on District provided.

from nepal_municipalities import NepalMunicipality

print(NepalMunicipality.municipalities('Kathmandu'))

# ['Kathmandu', 'Kageshwori Manohara', 'Kirtipur', 'Gokarneshwor', 'Chandragiri', 'Tokha', 'Tarkeshwor', 'Dakchinkali', 'Nagarjun', 'Budhanilkantha', 'Shankharapur']

Contributing

Pull requests are welcome! Please feel free to reach out if you have any suggestions or encounter any bugs.

License

MIT

Metadata

Release files for nepal-sub-divisions 0.0.11

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

Source distribution (sdist)

Source distribution for nepal-sub-divisions 0.0.11
File Size Uploaded Provenance Actions
nepal_sub_divisions-0.0.11.tar.gz 19.9 kB Without provenance Details for nepal_sub_divisions-0.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nepal-sub-divisions 0.0.11
File Interpreter ABI Platform Actions
nepal_sub_divisions-0.0.11-py3-none-any.whl Python 3 none any Details for nepal_sub_divisions-0.0.11-py3-none-any.whl

Total release size: 39.6 kB

Release files / nepal_sub_divisions-0.0.11.tar.gz

Download URL nepal_sub_divisions-0.0.11.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
903e845e2c6698369e3f32b95ccc22ff76ae2d3c32472dda15fec1e494a8927b
BLAKE2b-256 checksum
How to use checksums
74ae596afd5c8d6b55b6339f0e76d1b9ca264f4ee6f4c494b85a126c439114be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / nepal_sub_divisions-0.0.11-py3-none-any.whl

Download URL nepal_sub_divisions-0.0.11-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
247b4a8e8879c54321dd858bdafc8696ee9eeaf1df9aee723014557371dd52c5
BLAKE2b-256 checksum
How to use checksums
0b663d1024fd5c9f9bbc178a1eba9850e21d4a77c5d339b69caac49c14753f3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Security for nepal-sub-divisions 0.0.11

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.

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