Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #2240

world 4.0

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Barry Warsaw <barry@python.org>
Newsgroups comp.lang.python.announce
Subject world 4.0
Date Wed, 24 Aug 2016 17:09:04 -0400
Organization Damn Crazy Followers of the Horn
Lines 62
Approved python-announce-list@python.org
Message-ID <mailman.331.1472212980.2268.python-announce-list@python.org> (permalink)
References <20160824170904.458bd721@anarchist.wooz.org>
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; boundary="Sig_/ZJTKK+l=SHU+NkQAO5FZAhI"; protocol="application/pgp-signature"
X-Trace news.uni-berlin.de 2OMRh0kmjkmwIet9iurxugwIroUlPVTnVh9sGY3OyKMg==
Return-Path <barry@python.org>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1472072939; bh=FJt383rsKiEgNz6ZglaNTMuY0kJmiWs0fc8atOD62M4=; h=Date:From:To:Subject:From; b=dhQE5pJVYmwH8IRQV77OUfkI6M91dWgA18wLLSd22RcZbbI27zJ7VfpQ4iz+s/fjP 2cu+CoFd2vqJNIrtnynrbWdJSA8KeyilKjoYTQvre95+KC+iEVP7lEozo3SsxQq/oc OCVFFeYXCS5MWw0tf8vuWy69WZr8j3bHkrDJtWaM=
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'url:pypi': 0.03; 'matches': 0.07; 'tool,': 0.07; 'api': 0.09; 'example:': 0.10; 'python': 0.10; 'package,': 0.13; '(common': 0.16; 'domains.': 0.16; 'enjoy,': 0.16; 'from:addr:barry': 0.16; 'from:name:barry warsaw': 0.16; 'received:192.168.11': 0.16; 'received:216.15': 0.16; 'received:216.15.33': 0.16; 'received:216.15.33.194': 0.16; 'received:io': 0.16; 'received:mail.wooz.org': 0.16; 'received:psf.io': 0.16; 'received:wooz.org': 0.16; 'url:issues': 0.16; 'library,': 0.18; 'from:addr:python.org': 0.18; 'library': 0.20; '4.0': 0.22; 'complete,': 0.22; 'minor': 0.22; 'script': 0.25; 'install': 0.25; 'installed': 0.26; 'compatible': 0.27; 'bugs': 0.27; 'code': 0.30; 'at:': 0.31; 'knows': 0.32; 'url:python': 0.33; 'maps': 0.35; 'but': 0.36; 'project': 0.36; 'url:org': 0.36; 'received:org': 0.37; 'america': 0.37; 'charset :us-ascii': 0.37; 'version': 0.38; 'names': 0.38; 'url:en': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'your': 0.60; 'programs': 0.62; 'back': 0.62; 'great': 0.63; 'world': 0.64; 'course.': 0.67; 'us:': 0.67; 'country': 0.74; 'arab': 0.84; 'emirates': 0.84; 'tanzania,': 0.84; 'uk:': 0.84; 'url:readthedocs': 0.84; 'ireland': 0.91; 'url:latest': 0.91
X-Virus-Scanned Debian amavisd-new at mail.wooz.org
X-Spam-Flag NO
X-Spam-Score -2.9
X-Spam-Level
X-Spam-Status No, score=-2.9 tagged_above=-9999 required=6 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no
X-Mailer Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
X-Mailman-Approved-At Fri, 26 Aug 2016 08:02:58 -0400
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <20160824170904.458bd721@anarchist.wooz.org>
Xref csiph.com comp.lang.python.announce:2240

Show key headers only | View raw


[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


Thread

world 4.0 Barry Warsaw <barry@python.org> - 2016-08-24 17:09 -0400

csiph-web