Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #2240
| From | Barry Warsaw <barry@python.org> |
|---|---|
| Newsgroups | comp.lang.python.announce |
| Subject | world 4.0 |
| Date | 2016-08-24 17:09 -0400 |
| Organization | Damn Crazy Followers of the Horn |
| Message-ID | <mailman.331.1472212980.2268.python-announce-list@python.org> (permalink) |
| References | <20160824170904.458bd721@anarchist.wooz.org> |
[Multipart message — attachments visible in raw view] - view raw
world is a script that maps ISO 3166 top-level country codes to the English
country names and back again. It also knows about a bunch of, but no where
near complete, other top-level domains. For example:
$ world tz us
tz originates from Tanzania, United Republic of
us originates from United States of America (the)
$ 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)
It also provides the worldlib package, which is an API you can use in your own
programs if you need this database. The library is only compatible with
Python 3.
Version 4.0 is a major new update to the tool, library, and database.
It can be installed using `pip install world` of course. :)
* PyPI: https://pypi.python.org/pypi/world
* Project home: https://gitlab.com/warsaw/world
* Report bugs at: https://gitlab.com/warsaw/world/issues
* Code hosting: https://gitlab.com/warsaw/world.git
* Documentation: http://world.readthedocs.io/en/latest/
Enjoy,
-Barry
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
world 4.0 Barry Warsaw <barry@python.org> - 2016-08-24 17:09 -0400
csiph-web