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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: world-3.1.1.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for world-3.1.1.tar.gz
Algorithm Hash digest
SHA256 a63782a86c505e2423f9036265ed455c92a3b4bc6016738e3334ca86d177c69b
MD5 1156cf6293bb02e37db91f583a4c2b31
BLAKE2b-256 4890f433e7c818bbc1adc7e54f6ffed238eef0fde2ab5ef28a3ce31fca54c8f4

See more details on using hashes here.

File details

Details for the file world-3.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for world-3.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c1e95158ee71c3ccb4d60bb4a55c8952ea289d1761888349e67cffcf6b94c2f3
MD5 100dab930238b488e3cf5bc630509e0c
BLAKE2b-256 650a3a7222c8143ba179ad9c6bbeeb3ee3f327c8ad1616a3f9b9a28b09021f17

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