Code Monkey home page Code Monkey logo

hyper_sh's Introduction

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

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

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

hyper_sh's People

Contributors

tardyp avatar carmark avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.