Package of countries provinces and cities.
Project description
Countries Provinces and Cities
This project provides data for provinces/states and cities of various countries. Currently, the following countries are included:
- Iran: Detailed list of provinces and cities.
- Germany: Comprehensive list of federal states (Bundesländer) and their cities.
If you use languages other than Python and need these lists, you can access the JSON and MySQL Information through this repository.
Install
pip install provinces-and-cities
How to Use
from provinces_and_cities import Iran
Iran.main # all provinces and main cities
Iran.all # all provinces and all cities
Examlpe of data
Iran.main[7] = {
"id": 8,
"name": "تهران",
"tel_prefix": "021",
"cities": [
"اسلامشهر",
"بومهن",
"پاكدشت",
"تهران",
"چهاردانگه",
"دماوند",
"رودهن",
"ري",
"شريف آباد",
"شهر رباط كريم",
"شهر شهريار",
"فشم",
"فيروزكوه",
"قدس",
"كهريزك",
"لواسان بزرگ",
"ملارد",
"ورامين"
]
}
Future Plans
The project is designed to be scalable, and we plan to add data for other countries in the future. If you have suggestions for specific countries, feel free to contribute or create an issue.
Contributions
We welcome contributions to expand this project. If you'd like to add data for a new country or improve existing data, please create a pull request.
Support
If this project was helpful, please consider giving it a star. Your support helps us grow!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file provinces_and_cities-1.0.4.tar.gz.
File metadata
- Download URL: provinces_and_cities-1.0.4.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
145d5a31ed311b7cb4bc473d4b7744ac2bbadee1809f5c480e23f88713e9879e
|
|
| MD5 |
8a20e08e6a4447a39b0cd6ca9a38713a
|
|
| BLAKE2b-256 |
f772a6904364893d590fb3e7cc7a59d2d7d19a6a28101a4ffd4f153e60c518d7
|
Provenance
The following attestation bundles were made for provinces_and_cities-1.0.4.tar.gz:
Publisher:
publish.yml on mohammad-prb/provinces-and-cities-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
provinces_and_cities-1.0.4.tar.gz -
Subject digest:
145d5a31ed311b7cb4bc473d4b7744ac2bbadee1809f5c480e23f88713e9879e - Sigstore transparency entry: 163914337
- Sigstore integration time:
-
Permalink:
mohammad-prb/provinces-and-cities-pypi@f0d17bc168415e2f1b9d6df3f979012582ecefa3 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/mohammad-prb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f0d17bc168415e2f1b9d6df3f979012582ecefa3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file provinces_and_cities-1.0.4-py3-none-any.whl.
File metadata
- Download URL: provinces_and_cities-1.0.4-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f21d0fbc5f8b75682433460cec4cecb6a5a1ffd42ecf2a86b55b0ba5952f0766
|
|
| MD5 |
603f7d2e4552ac2e48fae200d285f86d
|
|
| BLAKE2b-256 |
cf47b023382797aeb819670d8b1d0a224192bce4d5462424f2e011444c8e3b15
|
Provenance
The following attestation bundles were made for provinces_and_cities-1.0.4-py3-none-any.whl:
Publisher:
publish.yml on mohammad-prb/provinces-and-cities-pypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
provinces_and_cities-1.0.4-py3-none-any.whl -
Subject digest:
f21d0fbc5f8b75682433460cec4cecb6a5a1ffd42ecf2a86b55b0ba5952f0766 - Sigstore transparency entry: 163914339
- Sigstore integration time:
-
Permalink:
mohammad-prb/provinces-and-cities-pypi@f0d17bc168415e2f1b9d6df3f979012582ecefa3 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/mohammad-prb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f0d17bc168415e2f1b9d6df3f979012582ecefa3 -
Trigger Event:
release
-
Statement type: