Client for the Offenes Köln API
Project description
Offenes Köln is a platform that allows for flexible access
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/.
The **current status** of the client:
For now, only access to the REST method /api/documents is implemented.
**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
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
**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
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/.
The **current status** of the client:
For now, only access to the REST method /api/documents is implemented.
**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
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
**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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
okclient-0.1.tar.gz
(3.7 kB
view hashes)