Client package to communicate with the coco core API.
from coco.client.clients import HttpClient
# initialize the client
client = HttpClient("http://coco.api", auth=("user", "password"))
# work on existing resources
containers = client.containers.get()
for container in containers:
client.containers(container.id).restart().post()
# create new records
share = client.shares.post({
'name': 'my-share',
'description': 'sharing is caring'
})
...