Skip to main content

docker-py on hyper infra

Project description

Hyper_sh

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_py

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()

API

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_.

https://docker-py.readthedocs.io/en/latest/api/

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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyper_sh-1.0.2-py2-none-any.whl (65.2 kB view details)

Uploaded Python 2

File details

Details for the file hyper_sh-1.0.2-py2-none-any.whl.

File metadata

File hashes

Hashes for hyper_sh-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 1e13ae715b301778418adc5c5f5f27a278c44f1bcf3993fe0a39521143d3b951
MD5 56e2ef4f00e8145e6dd8b1d5d9487936
BLAKE2b-256 cc46a68b8cb316e2293462f44fded8d2ca02f8970f54f03bfbf37b742fd54192

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page