Skip to main content

world -- top level domain code mappings

Project description

This script takes a list of Internet top-level domain names and prints out where in the world those domains originate from. For example:

$ world tz us
tz originates from Tanzania, United Republic of
us originates from United States of America (the)

Reverse look ups are also supported:

$ world -r united
Matches for "united":
  ae: United Arab Emirates (the)
  gb: United Kingdom of Great Britain and Northern Ireland (the)
  tz: Tanzania, United Republic of
  uk: United Kingdom (common practice)
  um: United States Minor Outlying Islands (the)
  us: United States of America (the)

Only two-letter country codes are supported, since these are the only ones that were freely available from the ISO 3166 standard. However, as of 2015-01-09, even these are no longer freely available in a machine readable format.

This script also knows about non-geographic, generic, USA-centric, historical, common usage, and reserved top-level domains.

Project details

Author

world is Copyright (C) 2013-2025 Barry Warsaw <barry@python.org>

Licensed under the Apache License, Version 2.0 (the “License”). See the LICENSE file for details.

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

world-5.2.1.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

world-5.2.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file world-5.2.1.tar.gz.

File metadata

  • Download URL: world-5.2.1.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for world-5.2.1.tar.gz
Algorithm Hash digest
SHA256 635e9890f2a4a72c1417ee002184feb8254303c7c3b4ab6d1fb168bd7e750cc7
MD5 2e8412c020f4ee3df89e981f2dc073df
BLAKE2b-256 2035c0ae907af59800247f9b46ae35f1779afa99e3037341b2277bb2ae3e93b7

See more details on using hashes here.

File details

Details for the file world-5.2.1-py3-none-any.whl.

File metadata

  • Download URL: world-5.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for world-5.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4863376e045d4ba0baf5f3798963a99b9ebfd1eb85a5a8f04f5ea59f5e80edb2
MD5 d96366c5cc2efc83998a5f84b455713f
BLAKE2b-256 5770374b2916138e7fc34fec89be48ba74787900900c42271b1203b061c89db0

See more details on using hashes here.

Supported by

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