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-2022 Barry Warsaw <barry@python.org>

Licensed under the terms of the GNU General Public License, version 3 or later. See the LICENSE.txt 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.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

world-5.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: world-5.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for world-5.0.tar.gz
Algorithm Hash digest
SHA256 143cd1a9eed01d55bb5eeb8b2c290c8a520f67621a01789422a479789e3221dc
MD5 2eaf577350393f95178158572264828e
BLAKE2b-256 a12111ed6f1b71fbc212ee4c3f0a40cd28763146a58c86537d293b44e68c8c97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: world-5.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for world-5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0311aca6d6cffb2d785bc0b3680c9e97f948c4b9ed4bcdaf0e2ad16fd4287c61
MD5 d407075bb579abf7f68cc36e570a64cf
BLAKE2b-256 17618076da0cd9112e7de05e67604de513b493ec2ee75a8a956b741f4c307100

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