to the content of the City of Cologne/Germany's city council information system.
Find more information about the platform at http://offeneskoeln.de/.
More detailed information on the REST API is available at http://offeneskoeln.de/api/.
**Install**
pip install okclient
**Quick start**
import okclient
oc = okclient.Client()
# Search for documents containing "Haushalt"
result = oc.documents(query="haushalt")
for doc in result:
print doc.date, doc.title
# Retrieve the document with identifier "3323/2008"
# including attachments and thumbnails
result = oc.documents("3323/2008", attachments=True,
thumbnails=True)
print result[0].date, result[0].title
print result[0].attachments[0].url
print result[0].attachments[0].content
# Find streets surrounding a geo position
# (reverse geocoding)
streets = oc.streets(lat=50.959, lon=6.946)
for street in streets:
(name, distance) = street
print "%s is %d meters away" % (name, distance)
# Find position of street "Mittelstraße"
# (also called geocoding)
mittelstr = oc.locations("Mittelstraße")
# return quasi-centroid of that street
print mittelstr.averages[0]
# print out all nodes of that streets
for node in mittelstr.nodes:
print node
**Feedback**
Feel free to give feedback via the Issue tracking at https://github.com/marians/ok-python-client.
**Stay tuned**
Stay informed about changes in this client and the API by following our
commits on Github (see URL above), reading our Blog and/or following
the twitter account.
http://blog.offeneskoeln.de/
https://twitter.com/OffenesKoeln
Metadata
Release files for okclient 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| okclient-0.3.tar.gz | 4.9 kB | Without provenance | Details for okclient-0.3.tar.gz |
Release files / okclient-0.3.tar.gz
| Download URL | okclient-0.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8615fe838cf7b7190fc23a4f8eefb33a4284955662195b6e1095f989a3dae547
|
|
BLAKE2b-256 checksum How to use checksums |
bb9f474abae580cdf8b20dea2597bbe804db93679f8f671f2603add4eb978028
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for okclient 0.3
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.