Skip to content

lemonli/hyperd-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyper SDK for Python

Based on Hyper 1.0 RESTful API

Installation

cd hyperd-py
python setup.py install

Usage

>>> import hyper
>>> c=hyper.HyperClient(base_url='tcp://<hyperd-ip>:<hyperd-port>')
>>> c.pods.list()


>>> spec={u'tty': True, u'resource': {u'vcpu': 1, u'memory': 128}, u'hostname': u'busybox01', u'command': u'/bin/sh', u'id': u'box03', u'containers': [{u'image': u'busybox:latest', u'name': u'b1'}]}
>>> c.pods.create(**spec)

About

Hyper container python sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages