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 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.0.1.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: world-5.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c900ffbbd6c03c24d4951b16d5914a63f67d39f42c238e440dcce1e82077f371
MD5 9b1243466f518a1c1d4c87ae8d3b6088
BLAKE2b-256 0c13cb58fa31445da02e40cf7064697e3c92d919534b27dc30a1b5defb63a554

See more details on using hashes here.

File details

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

File metadata

  • Download URL: world-5.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c2a07c9e84e8619c8fa492c9e27915a719b95619636d01090cbb1748341a84b
MD5 733c9763556492be3b635cecb8ff2c9f
BLAKE2b-256 7806eb3168b835b39c2b4ade22c35715c078fc7cb0516531e7650d40430ca926

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