countrystatecity-countries
Type-safe Python package for countries, states, and cities data with 250+ countries, 5000+ states, and 151K+ cities. Features Pydantic models, lazy loading, and comprehensive geographic metadata.
countrystatecity-countries has been downloaded 95,388 times in total on PyPI, including 38,658 in the last 30 days. The latest version is 1.0.2, released Mar 28, 2026.
Version1.0.2
Downloads
95.39k
LicenseOpen Database License (ODbL) v1.0
This package uses data from the countries-states-cities-database project,
which is licensed under the Open Database License (ODbL) v1.0.
For the full text of the ODbL license, please visit:
https://opendatacommons.org/licenses/odbl/1-0/
Summary:
You are free to:
- Share: Copy and redistribute the database
- Create: Produce works from the database
- Adapt: Modify, transform and build upon the database
Under the following conditions:
- Attribute: You must attribute any public use of the database
- Share-Alike: If you publicly use any adapted version, you must also offer
that adapted database under the ODbL
- Keep open: If you redistribute the database, you must keep it open
Authordr5hn
Downloads
Weekly, last 90d.
Includes CI traffic.
VersionsTotal1.*
Range
View
Granularity
Group by
CI traffic
Stack: OffCI: Included2 / 4 series
Selected total125.15k
95.4kAll-time
38.7kLast 30 days
2.1kLast 24 h
0.02/sPer second
Sponsored
Sponsorships keep pepy free to read
Version distribution
Share of downloads by released version. Computed over the last quarter.
- 0177.8%
1.0.0
48.5k downloadsDownloads48.5k77.8% - 0221.6%
1.0.2
13.5k downloadsDownloads13.5k21.6% - 030.6%
1.0.3
356 downloadsDownloads3560.6%
Guess the next day
Thirteen recent days of countrystatecity-countries downloads. Drag the green handle on the right to guess where day fourteen lands.