Catalog PyPI
PACKAGE EXPLORERView in registry

agssearch

PyPI

Python client for the German Destatis Gemeindeverzeichnis

Versions collected1
Direct dependencies0From release 0.4
Last observed21 Oct, 09:30 UTC

README

Version 0.4 documentation
agssearch
=========

Python client for the official German directory of cities by DeStatis,
called "`Gemeindeverzeichnis <https://www.destatis.de/gv/>`_\ ". Allows
you to look up the official city key ("Amtlicher Gemeindeschluessel", in
brief: AGS) for a city name and vice versa.

Note that the AGS is still in common use, but to be replaced by the
"Regionalschluessel" (RS). Read more in the German Wikipedia page
`Amtlicher
Gemeindeschluessel <http://de.wikipedia.org/wiki/Amtlicher_Gemeindeschl%C3%BCssel>`_.

Install
-------

::

    pip install agssearch

Use in your code
----------------

Finding the AGS for a city:
~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    >>> import agssearch.agssearch as ags
    >>> result = ags.search("Bonn")
    >>> for r in result:
    >>>     print r['ags'], r['name']

    05314000 Stadt Bonn
    08337022 VVG der Stadt Bonndorf im Schwarzwald
    08337022 Stadt Bonndorf im Schwarzwald

Look up an AGS:
~~~~~~~~~~~~~~~

::

    >>> import agssearch.agssearch as ags
    >>> result = ags.lookup("05314000")
    >>> if result is not None:
    >>>     print result['ags'], result['name']

    05314000 Stadt Bonn

Use as command line client
--------------------------

::

    $ agssearch Bonn
    [05314000] Stadt Bonn, Bonn, Stadt, Nordrhein-Westfalen
    [08337022] VVG der Stadt Bonndorf im Schwarzwald, Waldshut, Baden-Wuerttemberg
    [08337022] Stadt Bonndorf im Schwarzwald, Waldshut, Baden-Wuerttemberg

    $ agssearch 05314000
    [05314000] Stadt Bonn, Bonn, Stadt, Nordrhein-Westfalen

Like agssearch?
---------------

Feel free to `tip me <https://www.gittip.com/marians/>`_!

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.423 Nov 20130

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
marians/agssearch

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:30 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ef2a1db78005cb723fa0783ae079ef5f18c8d8380e7a8781c947231d4ccb1281