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

Reverse look ups are also supported:

$ world -r united
Matches for "united":
  ae: UNITED ARAB EMIRATES
  gb: UNITED KINGDOM
  tz: TANZANIA, UNITED REPUBLIC OF
  uk: United Kingdom (common practice)
  um: UNITED STATES MINOR OUTLYING ISLANDS
  us: UNITED STATES

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.

Author

world is Copyright (C) 2013-2015 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

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-3.1.1.tar.gz (32.0 kB view hashes)

Uploaded Source

Built Distribution

world-3.1.1-py2.py3-none-any.whl (22.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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