A Python package for accessing world country, state, and city information
Project description
WorldMapper
A Python package for accessing comprehensive world country, state, and city information.
Installation
pip install worldmapper
## Usage
from worldmapper import WorldMapper
# Initialize the data
wm = WorldMapper()
# Get all countries
countries = wm.get_all_countries()
# Get country by name
usa = wm.get_country_by_name("United States")
# Get country by alpha2 code
us = wm.get_country_by_alpha2("US")
# Get languages by alpha2 code
us = wm.get_languages_by_alpha2("US")
# Get countries by continent
european_countries = wm.get_countries_by_continent("Europe")
# Search countries
results = wm.search_countries("samoa")
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
worldmapper-0.1.3.tar.gz
(910.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
worldmapper-0.1.3-py3-none-any.whl
(936.7 kB
view details)
File details
Details for the file worldmapper-0.1.3.tar.gz.
File metadata
- Download URL: worldmapper-0.1.3.tar.gz
- Upload date:
- Size: 910.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a4dd59bfc728cd2cd741ae2b58857b911fe0dcae5700581e6e99faa2f0b1725
|
|
| MD5 |
e2dd227ee1d1e4007c8033fb06b588d2
|
|
| BLAKE2b-256 |
dc2ce6fdb398f1c434236d619a21d9ec9d53b61291765a8edc2d491b180aa8b6
|
File details
Details for the file worldmapper-0.1.3-py3-none-any.whl.
File metadata
- Download URL: worldmapper-0.1.3-py3-none-any.whl
- Upload date:
- Size: 936.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be93886b39d26dae13cb36a64083667ec4d8b3845af9b740e529d0ac3605abaa
|
|
| MD5 |
be453548f0e9c5b76a920a656a693b9e
|
|
| BLAKE2b-256 |
43c032b0eef6826555ed02f173e3ebc2d83909eabef89b2e87534319c3236827
|