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
Close
Hashes for py_countries_states_cities_database-2.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a3ec28e27c0f3c14aff8531256daf42f11ff099b072d49f4a3ce2c72067b9c |
|
MD5 | 8803f287c2442ee3b2dcf59e42c9ae3e |
|
BLAKE2b-256 | e47c48faa9a5ed7735c5c617ffe2cf5d938aa1b70a30f317350a25a28d4f8664 |