Skip to main content

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

Licensed under the Apache License, Version 2.0 (the “License”). See the LICENSE file for details.

Release files for world 5.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for world 5.2.1
File Size Uploaded
world-5.2.1.tar.gz 20.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for world 5.2.1
File Interpreter ABI Platform
world-5.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 33.4 kB

Release files / world-5.2.1.tar.gz

Download URL world-5.2.1.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
635e9890f2a4a72c1417ee002184feb8254303c7c3b4ab6d1fb168bd7e750cc7
BLAKE2b-256 checksum
How to use checksums
2035c0ae907af59800247f9b46ae35f1779afa99e3037341b2277bb2ae3e93b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via python-httpx/0.28.1

Release files / world-5.2.1-py3-none-any.whl

Download URL world-5.2.1-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4863376e045d4ba0baf5f3798963a99b9ebfd1eb85a5a8f04f5ea59f5e80edb2
BLAKE2b-256 checksum
How to use checksums
5770374b2916138e7fc34fec89be48ba74787900900c42271b1203b061c89db0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via python-httpx/0.28.1

Release history Release notifications | RSS feed

This release

5.2.1 This release

2 release files

5.2

2 release files

5.1.1

2 release files

5.0.1

2 release files

5.0

2 release files

4.1.1

1 release file

4.0

1 release file

3.1.1

2 release files

3.1

1 release file

3.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page