A Python package to get countries, states and cities information
Project description
API 🚀
🎉 Introducing API for Countries States Cities Database.
📦 Installation
pip install py-countries-states-cities-database
📚 Usage
from py_countries_states_cities_database import (
get_all_cities,
get_all_states,
get_all_countries,
get_all_sub_regions,
get_all_regions,
get_all_states_and_cities_nested,
get_all_countries_and_states_nested,
get_all_countries_and_cities_nested,
)
# All functions return a list of dictionaries
print(get_all_cities())
print(get_all_states())
print(get_all_countries())
print(get_all_sub_regions())
print(get_all_regions())
print(get_all_states_and_cities_nested())
print(get_all_countries_and_states_nested())
print(get_all_countries_and_cities_nested())
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
File details
Details for the file py_countries_states_cities_database-2.2.5.tar.gz
.
File metadata
- Download URL: py_countries_states_cities_database-2.2.5.tar.gz
- Upload date:
- Size: 13.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a5079d9f1f731b00171b9dd53e7d73a3ca502dbc3676275aa273d6aa1bf87c7 |
|
MD5 | 32b3a7e26f74d0bb92cb6f4d772200bd |
|
BLAKE2b-256 | 2a94cc81eaf84a851fe9903653a681709199d9e3adfd6dabfbb603206b8a50be |