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

Uploaded Python 3

File details

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

File metadata

  • Download URL: worldmapper-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9470e70387bc1085b8133434407b5d983d8c1e6be0a4100d558191244d368b4f
MD5 683fdab104b27585d9d1bdce47d82582
BLAKE2b-256 a83e623dcf825b0f659fe1c3771e35e74065f1d16fa211f0b2f9326be1b90cb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: worldmapper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 936.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99bda2c659880639cae85cd3246b69492be167f54ea0b96d0ae2d6a261fb6629
MD5 87fa934f18e6cdbfa2f31f1a5f09bb87
BLAKE2b-256 53357a6f999e3743ddd09af8b727330ddba41b0d651638d8890dc4b96199485b

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