agssearch
Python client for the official German directory of cities by DeStatis, called “Gemeindeverzeichnis“. 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.
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!
Metadata
Release files for agssearch 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agssearch-0.4.zip | 5.2 kB | Without provenance | Details for agssearch-0.4.zip | |
| agssearch-0.4.tar.gz | 2.9 kB | Without provenance | Details for agssearch-0.4.tar.gz |
Release files / agssearch-0.4.zip
| Download URL | agssearch-0.4.zip |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ef04850fd4acdb504d62018e8d5d5f1415819ae163038abe9fb9c617c588b29
|
|
BLAKE2b-256 checksum How to use checksums |
22b2e57bc78af3f982fb7ba9212503f2694d68386a2639bebba7e4df6639e9e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / agssearch-0.4.tar.gz
| Download URL | agssearch-0.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd456d4c54b47b8006386f6204dbf5d45f5cdddb0adeda546f3cee8e8a1d2399
|
|
BLAKE2b-256 checksum How to use checksums |
89703b02e1827921f822bdfa76b37523236badeedb2bc5b2c59b446063dd11db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for agssearch 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.