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.2.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.2-py3-none-any.whl (936.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: worldmapper-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 94fea07165af60ef38174183893cb93cf81a5681f8870eaf2e29eb6cc612554e
MD5 b16c24460c6009d9848c3c098fd3e32f
BLAKE2b-256 37c22b630c3cd3996aba3d12e19deaeb1a792e5bc8bbbbd44ad6949fcc7d562d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: worldmapper-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 394c2aa55d981c8daa79fdf2d2888f5d834bbd88ed1e73f9ce5bd5713a8750eb
MD5 b43f2d20fd3963a2a66f9384ff6d5f0b
BLAKE2b-256 36249c076a1d516ff633c15b3c50c8a78c505f25ff4b5d51bfdd066a058a34de

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