Skip to main content

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

# import { Iran } from 'provinces-and-cities'
# 
# 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


Download files

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

Source Distribution

provinces_and_cities-1.0.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

provinces_and_cities-1.0.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file provinces_and_cities-1.0.2.tar.gz.

File metadata

  • Download URL: provinces_and_cities-1.0.2.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

Hashes for provinces_and_cities-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e928a958505a1907c93fef72cf661fb041d2f2801f8c242fb8b16bc537655953
MD5 5e1e59e4267573af7ed3238ca2d88317
BLAKE2b-256 9e2ec440c8dc7be2ab89c25b73fff1e3c39dd113335c14a26dda9a8a5a3da762

See more details on using hashes here.

Provenance

The following attestation bundles were made for provinces_and_cities-1.0.2.tar.gz:

Publisher: publish.yml on mohammad-prb/provinces-and-cities-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file provinces_and_cities-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for provinces_and_cities-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0eaa69835eb6f7de7992b84110e2c0ddaa30624a2476cc97af6c39a16e801660
MD5 9da003e56dd38a273e7e7dd988126bc8
BLAKE2b-256 112825364073d86d815556abc5ea04693c0be49752c3347feaff35855b7d1034

See more details on using hashes here.

Provenance

The following attestation bundles were made for provinces_and_cities-1.0.2-py3-none-any.whl:

Publisher: publish.yml on mohammad-prb/provinces-and-cities-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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