Skip to main content

Nepali municipalities is a python package to get data about Nepali municipalities based on districts

Project description

Nepali 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-municipalities.

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 nepali_municipalities import NepalMunicipality

print(NepalMunicipality().all_data_info('Kathmandu'))
[{'province': 'Province 3', 'country': 'Nepal', 'id': 311, 'district': 'Kathmandu', 'name': 'Kathmandu'}]

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 nepali_municipalities import NepalMunicipality

print(NepalMunicipality().all_districts())
# ['Bhojpur', 'Dhankuta', 'Ilam', 'Jhapa', ......]

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

from nepali_municipalities import NepalMunicipality

print(NepalMunicipality('Kathmandu').all_municipalities())
# ['Kathmandu', 'Kageshwori Manohara', 'Kirtipur', 'Gokarneshwor', 'Chandragiri', 'Tokha', 'Tarkeshwor', 'Dakchinkali', 'Nagarjun', 'Budhanilkantha', 'Shankharapur']

print(NepalMunicipality('Kaski').all_municipalities())

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

#Update on new version Autocomplete This version has major update as you can autocomplete all remaining fields when municipalities name is provided. you can now use Nepali Municipalities API too.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nepali-municipality-0.1.4.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nepali_municipality-0.1.4-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file nepali-municipality-0.1.4.tar.gz.

File metadata

  • Download URL: nepali-municipality-0.1.4.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for nepali-municipality-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ca9cb3318d3e0bb70d0a04025ed925f06aeb270ae180f24045d041a1d6502037
MD5 26858f2abf15e4fbed1e370eaa3d0801
BLAKE2b-256 948f6e966f1491eaf0e968398021825ef504ebe546a8de462b06df935f377717

See more details on using hashes here.

File details

Details for the file nepali_municipality-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: nepali_municipality-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for nepali_municipality-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ef593c87b86f6e8d8151fdd1519bde732f627ba20190e3ec3c20e0df839d78
MD5 cf99f704affd8ade8282bff8cf517743
BLAKE2b-256 316d435057053fb23109fb3502068cd99b8840a6e50ffcc3e691ea99e1b1320d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page