This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python wrapper around docker-machine

Project Description

Pythonic wrapper around docker-machine

installation

$ python setup.py install

or:

$ pip install python-docker-machine

usage

import machine
import docker
m = machine.Machine(path="/usr/local/bin/docker-machine")
client = docker.Client(**m.config(machine='default'))
client.ping()

requirements

docker-machine on your system path

https://docs.docker.com/machine/install-machine/

running the test suite

Make sure docker-machine is available on your system path. Next you need to create a docker machine with the name python-docker-machine with the driver of your choice, for example the virtualbox driver:

$ docker-machine create -d virtualbox python-docker-machine

Now you can run the tests with nose:

$  nosetests
......................
----------------------------------------------------------------------
Ran 22 tests in 0.262s

or with tox:

$ tox
Release History

Release History

This version
History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python-docker-machine-0.2.3.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source May 9, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting