Skip to content

Client package to communicate with a coco setup.

License

Notifications You must be signed in to change notification settings

coco-project/client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coco-client

Client package to communicate with the coco core API.

Usage

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'
})

...

About

Client package to communicate with a coco setup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages