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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3b175cf7bc5c4cedac31efe453bbc1d6b66923f1a53cad16418061307c2649e |
|
MD5 | 7a51e95adfad2baf07015a94ff223b51 |
|
BLAKE2b-256 | 175cfac376fb6f51d09eccc73eeeb2f414a85c2b2b5d6a13c0303865352adb80 |