Skip to main content

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.1.tar.gz (910.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

worldmapper-0.1.1-py3-none-any.whl (936.7 kB view details)

Uploaded Python 3

File details

Details for the file worldmapper-0.1.1.tar.gz.

File metadata

  • Download URL: worldmapper-0.1.1.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

Hashes for worldmapper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 401e926df4a33c8d92bb6d006124f009847fae29ca63e79ef9cbcdf494db31d9
MD5 e183c82d16b2fa09da30736653b4beb6
BLAKE2b-256 122818f3823644cd981d1358aeba705d42da688861968519a6424ae36c09b1f4

See more details on using hashes here.

File details

Details for the file worldmapper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: worldmapper-0.1.1-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

Hashes for worldmapper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53383ab72e93dc696a54ce923328a2dce761709294f2aa2957e7ad69d6d25f7d
MD5 3a3c7ccabca70179cac70e9a097feb5a
BLAKE2b-256 aa10d63c3640f7b51d9a77ee794543e1ee87f89e655c7d84fb161ae38cc166e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page