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_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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hyper_sh-1.0.7.tar.gz
.
File metadata
- Download URL: hyper_sh-1.0.7.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d41f2625578def599594cafc6747b1b603f0d5d9c1194bc814413093843592 |
|
MD5 | 93ea048ed7984dca2011968f79675764 |
|
BLAKE2b-256 | 0de002be2576b01b01652cdf647c1d15b5329f5b301282d0e376f8672c47e758 |
File details
Details for the file hyper_sh-1.0.7-py2.py3-none-any.whl
.
File metadata
- Download URL: hyper_sh-1.0.7-py2.py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5d090a2a760553e010fa989a5cf3b526f66c91cc13553b1c1f6b0753b19c5cd |
|
MD5 | b2fe3efd582ca22869097097fc1852db |
|
BLAKE2b-256 | 1d750c565da4fa96d5307b3f05a77bd3bc1849a065e03c3705ad6f420519e2a4 |