Skip to main content

docker-py on hyper infra

Project description


docker-py adapted to Hyper

It uses underscore ‘_’ instead of ‘-‘ in its name like the original Hyper_ service, but you can actually install either spelling.

This is a thin adaptation layer of docker-py for it to work with Hyper’s credential scheme

Install from pip

pip install hyper_sh

How to use

hyper_sh is used with the same API as docker-py

from hyper_sh import Client
c = Client()  # without argument, config is guessed by reading ~/.hyper/config.json
print c.images()
from hyper_sh import Client
c = Client("path/to/config.json")  # you can pass a specific config.json
print c.images()
from hyper_sh import Client
c = Client({'clouds': {
    os.environ['hyper_endpoint']: {
        "accesskey": os.environ['hyper_accesskey'],
        "secretkey": os.environ['hyper_secretkey']
}})  # or you can give the content of a config.json directly
print c.images()


At the moment, hyper_sh maps 1:1 to the api of docker-py, which means that some api will not work, as they are not supported by Hyper_.

There are some other API supported by Hyper_ that are not yet supported by this module (i.e. fip managment). Patches are welcome.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hyper-sh, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size hyper_sh-1.0.7-py2.py3-none-any.whl (27.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size hyper_sh-1.0.7.tar.gz (24.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page