Giter VIP home page Giter VIP logo

dodo's Introduction

dodo - DigitalOcean Library and Command Line tools

dodo

Installation

pip install dodo

or

easy_install dodo

Configuration File

Located at ~/.dodo

[credentials]
client={client_key}
api={api_key}

Command line tool

List your droplets

$ dodo droplets
id        name                                     image region size status     backups
----------------------------------------------------------------------------------------
97664     adamtest                                 2530  1      66   active     True   
98447     testingnew                               2548  1      66   active     None  

Boot new droplet

dodo droplets --new --name=testingnew --size_id=66 --image_id=25485 --region_id=1
event_id        :  698622
image_id        :  25485
size_id         :  66
id              :  98444
name            :  testingnew

Get droplet IP address

$ dodo droplets --show --droplet_id=98444
status          :  active
region_id       :  1
size_id         :  66
image_id        :  25485
backups_active  :  None
ip_address      :  192.34.61.80
id              :  98444
name            :  testingnew

Take a snapshot of a droplet

$ dodo droplets --snapshot --droplet_id=98447 --name='Testing Snapshots'
status          :  OK
event_id        :  698651

Get more help

$ dodo --help
NAME
    dodo - A DigitalOcean command line interface

SYNOPSIS
    dodo resource [--destroy] [--disable_backups] [--droplet_id] [--enable_backups]
                  [--filter] [--help] [--image_id] [--name]
                  [--new] [--power_cycle] [--power_off] [--power_on]
                  [--reboot] [--rebuild] [--region_id] [--reset_root_password]
                  [--resize] [--restore] [--show] [--shutdown]
                  [--size_id] [--snapshot] [--ssh_key_id] [--ssh_key_ids]
                  [--ssh_key_pub]
OPTIONS
    resource
        droplets, images, regions, sizes, ssh_keys

    --filter
        my_images, global

FILES
    ~/.dodo
        Credentials configuration file:

        Example:

        [credentials]
        client=<client_key>
        api=<api_key>

Example creation of new Droplet

Creating a new Droplet

Development

Setting Up Envirnment

$ git clone [email protected]:adamw523/dodo.git
$ cd dodo
$ virtualenv ~/dodove
$ . ~/dodove/bin/activate

Set up local symlinks for development

python setup.py develop

Building And Uploading to PyPi

$ python setup.py sdist upload

If not registered on local machine yet:

$ python setup.py sdist register upload

Running tests with file watch

$ nosetests --with-watch

License

MIT

dodo's People

Contributors

adamw523 avatar multikatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

multikatt

dodo's Issues

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.