nepal-sub-divisions


Namenepal-sub-divisions JSON
Version 0.0.5 PyPI version JSON
download
home_pagehttps://github.com/iDineshRoy/nepal-sub-divisions
SummaryNepali municipalities is a python package to get data about Nepali municipalities based on districts
upload_time2024-10-23 05:33:43
maintainerNone
docs_urlNone
authorDinesh Roy
requires_python>=3.6
licenseNone
keywords nepali nepal nepal provinces nepali districts nepali municipalities dinesh roy nepali states
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Nepal Municipalities
[![Downloads](https://static.pepy.tech/personalized-badge/nepal-sub-divisions?period=total&units=international_system&left_color=black&right_color=yellowgreen&left_text=Downloads)](https://pepy.tech/project/nepal-sub-divisions)


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.

```python
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'}

```

**If No matching municipalities are supplied The Exception is thrown as below**
``` python
No matching info for provided municipalities try changing spelling or try another name.
```



**To get list of all districts of Nepal**

```python
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.

```python
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](https://choosealicense.com/licenses/mit/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/iDineshRoy/nepal-sub-divisions",
    "name": "nepal-sub-divisions",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "Nepali, nepal, nepal provinces, nepali districts, nepali municipalities, dinesh roy, nepali states",
    "author": "Dinesh Roy",
    "author_email": "dinesh.roy@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f1/e7/4c2d2463c2f7e038fb08d2cb6e69cf6fc5ac4d48303b38474cc3bc0eb3e5/nepal_sub_divisions-0.0.5.tar.gz",
    "platform": null,
    "description": "# Nepal Municipalities\n[![Downloads](https://static.pepy.tech/personalized-badge/nepal-sub-divisions?period=total&units=international_system&left_color=black&right_color=yellowgreen&left_text=Downloads)](https://pepy.tech/project/nepal-sub-divisions)\n\n\nThis 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.\n\n# Contents\nInstallation\nUse the package manager pip to install nepal-sub-divisions.\n\n\nTo Autocomplete all info based on municipalities name provided\nfor example if you provide municipalities names then rest of district and province will be autocompleted.\n\n```python\nfrom nepal_municipalities import NepalMunicipality\n\nprint(NepalMunicipality.all_data_info('Kathmandu Metropolitan City'))\n{'municipality': 'Kathmandu Metropolitan City', 'district': 'Kathmandu', 'province': 'Bagmati', 'province_no': 'Province 3', 'country': 'Nepal'}\n\nprint(NepalMunicipality.all_data_info('Ratuwamai Municipality'))\n{'municipality': 'Ratuwamai Municipality', 'district': 'Morang', 'province': 'Koshi', 'province_no': 'Province 1', 'country': 'Nepal'}\n\nprint(NepalMunicipality.all_data_info('Ratuwamai'))\n{'municipality': 'Ratuwamai Municipality', 'district': 'Morang', 'province': 'Koshi', 'province_no': 'Province 1', 'country': 'Nepal'}\n\n```\n\n**If No matching municipalities are supplied The Exception is thrown as below**\n``` python\nNo matching info for provided municipalities try changing spelling or try another name.\n```\n\n\n\n**To get list of all districts of Nepal**\n\n```python\nfrom nepal_municipalities import NepalMunicipality\n\n\nprint(NepalMunicipality.districts(\"Koshi\")) # search by province name\n# ['Morang', 'Sankhuwasabha', 'Udayapur', 'Jhapa', ......]\n\n```\n\nTo get list of all municipalities of Nepal based on District provided.\n\n```python\nfrom nepal_municipalities import NepalMunicipality\n\nprint(NepalMunicipality.municipalities('Kathmandu'))\n\n# ['Kathmandu', 'Kageshwori Manohara', 'Kirtipur', 'Gokarneshwor', 'Chandragiri', 'Tokha', 'Tarkeshwor', 'Dakchinkali', 'Nagarjun', 'Budhanilkantha', 'Shankharapur']\n\n```\n\n\n# Contributing\nPull requests are welcome! Please feel free to reach out if you have any suggestions or encounter any bugs.\n\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Nepali  municipalities is a python package to get data about Nepali municipalities based on districts",
    "version": "0.0.5",
    "project_urls": {
        "Homepage": "https://github.com/iDineshRoy/nepal-sub-divisions"
    },
    "split_keywords": [
        "nepali",
        " nepal",
        " nepal provinces",
        " nepali districts",
        " nepali municipalities",
        " dinesh roy",
        " nepali states"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0aef6c355a63e23054f51bb5f9660003667e72877e271c8df23e4229f2962243",
                "md5": "1d1544f1a5f6da15c441db251c7149d5",
                "sha256": "981e16233f30272dec7b96721324c0b446c965d6f51b3d319b250378e875f936"
            },
            "downloads": -1,
            "filename": "nepal_sub_divisions-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1d1544f1a5f6da15c441db251c7149d5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 19277,
            "upload_time": "2024-10-23T05:33:42",
            "upload_time_iso_8601": "2024-10-23T05:33:42.218576Z",
            "url": "https://files.pythonhosted.org/packages/0a/ef/6c355a63e23054f51bb5f9660003667e72877e271c8df23e4229f2962243/nepal_sub_divisions-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f1e74c2d2463c2f7e038fb08d2cb6e69cf6fc5ac4d48303b38474cc3bc0eb3e5",
                "md5": "f4f101739fa2b4f3c10fb1e1287d10ba",
                "sha256": "b9ccf0b14226c2421e6318f24eee2718524dd234056a7b957cbe93fe8bd67fc2"
            },
            "downloads": -1,
            "filename": "nepal_sub_divisions-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "f4f101739fa2b4f3c10fb1e1287d10ba",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 19327,
            "upload_time": "2024-10-23T05:33:43",
            "upload_time_iso_8601": "2024-10-23T05:33:43.463204Z",
            "url": "https://files.pythonhosted.org/packages/f1/e7/4c2d2463c2f7e038fb08d2cb6e69cf6fc5ac4d48303b38474cc3bc0eb3e5/nepal_sub_divisions-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-23 05:33:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "iDineshRoy",
    "github_project": "nepal-sub-divisions",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "nepal-sub-divisions"
}
        
Elapsed time: 4.53848s