Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

`dioc` is a package for DigitalOcean.

Project description

`dioc` is a package for DigitalOcean.
::
$ cat << eof >> .bashrc
export DIOC_TOKEN=...
export DIOC_DEFAULT_SSHKEY=sshk
export DIOC_DEFAULT_SIZE=512mb
export DIOC_DEFAULT_REGION=sgp1
eval "$(_DIO_COMPLETE=source dio)"
eof

$ dio create test '' user_data='"#!/bin/bash\ndocker run -p 80:8080 tsutomu7/gotour"'
$ dio scp sample test:/tmp
$ dio ssh test 'ls -l /tmp'
$ dio destroy test

$ python3
import dioc
d = dioc.Droplet('test')
c = dioc.ssh_client()
c.exec_command('ls')
d.destroy()

Requirements
------------
* Python 3
* paramiko
* python-digitalocean
* Click

Features
--------
* nothing

Setup
-----
::

$ pip install dioc
or
$ easy_install dioc

History
-------
0.0.1 (2015-12-27)
~~~~~~~~~~~~~~~~~~
* first release

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 dioc, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size dioc-0.1.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page