`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
::
$ 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
Metadata
Release files for dioc 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dioc-0.1.1.tar.gz | 3.3 kB | Details |
Release files / dioc-0.1.1.tar.gz
| Download URL | dioc-0.1.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7a89fcd5b6adea192c68194879e8348fd5a5700ef80323929a2f5d2015c62f9
|
|
BLAKE2b-256 checksum How to use checksums |
bc458e798438230603769438a6676121a16ac2341088f570aff6400f240b3d0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |