$ pipx install world
installed package world 5.1.1, installed using Python 3.12.1
These apps are now globally available
- world
done! ✨ 🌟 ✨
$ world
usage: world [-h] [--version] [-r] [-a] [domain ...]
Top level domain name mapper.
positional arguments:
domain
options:
-h, --help show this help message and exit
--version show program's version number and exit
-r, --reverse Do a reverse lookup. In this mode, the arguments can be any Python regular
expression; these are matched against all TLD descriptions (e.g. country names) and a
list of matches is printed.
-a, --all Print the mapping of all top-level domains.
$ world cf
cf originates from Central African Republic (the)
$ world -r republic
Matches for "republic":
cd : Congo (the Democratic Republic of the)
cf : Central African Republic (the)
cz : Czech Republic (the)
do : Dominican Republic (the)
ir : Iran (Islamic Republic of)
kp : Korea (the Democratic People's Republic of)
kr : Korea (the Republic of)
la : Lao People's Democratic Republic (the)
md : Moldova (the Republic of)
mk : Macedonia (the former Yugoslav Republic of)
sy : Syrian Arab Republic
tz : Tanzania, United Republic of
ve : Venezuela (Bolivarian Republic of)
Refs
`