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 and worldlib is Copyright (C) 2013-2019 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-4.1.1.tar.gz (32.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: world-4.1.1.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

File hashes

Hashes for world-4.1.1.tar.gz
Algorithm Hash digest
SHA256 17583a2cb92247c2969435df872d874be0dddeb5e5d2419812872fd03a685f62
MD5 fcb58997c7e947060f1e55cc67e80073
BLAKE2b-256 1fbb9e95c7a7eb25283a4cd143e49649e5f43bb36715949699d1eaf810c9db89

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