Skip to main content

A utility to manage a development server on digital ocean

Project description

Dove

PyPI version

A command line utility to help manage your development server in Digital Ocean

Why?

Developing on a remote environment provides several advantages over local development such as resource scaling, OS selection, security, and portability. However, as an unemployed student, paying 20-30 dollars a month for a hosted server directly impacts my food budget. Dove helps ease this burden by making it easy to snapshot/rebuild your environment. Given that snapshot pricing is 0.05/GB/month, dove helps reduce the cost of maintaining a remote environment when it's frequently idle.

How

  1. Generate an API access token on Digital Ocean here

  2. Install dove:

    pip install droplet_dove
    
  3. Initialize dove with dove init

  4. Start your droplet with dove up

  5. Clean up your droplet and take a snapshot with dove down

Additional help: dove --help

How Does It Work?

Dove maintains all of its configuration in ~/.dove_config.json. You can edit these values manually; however you can use dove init for an initial population. Note that all properties under the droplet key are passed directly to digital ocean (with exception to the sshkeys array), so if addiitonal configuration is required it can be edited there.

Dove Up

  1. Check for a running droplet with the name specified in the dove config, abort if one exists
  2. Find the latest snapshot for the prefix provided in dove config or use the default snapshot if none exist
  3. Create the droplet with the configuration params
  4. Wait for the droplet to start

Dove Down

  1. Get droplet based on name provided in dove config, abort if droplet not found
  2. Shutdown droplet and take a snapshot
  3. Destroy old snapshots with same prefix
  4. Destroy droplet

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

droplet_dove-0.0.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

droplet_dove-0.0.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file droplet_dove-0.0.3.tar.gz.

File metadata

  • Download URL: droplet_dove-0.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for droplet_dove-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8e1f16dd71118e9bf498ee7ad9f68d38d9a001829a0d6f592b6f5f2f9e85a3ea
MD5 8e455d22ef555c1b4e348c5fac42afa6
BLAKE2b-256 2b55ce9ea080aa852bc4cdbb6f4832ce85f920cc0b2bc84c78c7d116e7b9b1dc

See more details on using hashes here.

File details

Details for the file droplet_dove-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: droplet_dove-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for droplet_dove-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1abf487d0bde200a1730bb62a27b106605119c5ba3ad89c76c3d62e9ddbe1175
MD5 352573c2373000dc8941910cc1b61e62
BLAKE2b-256 bb8a4cb0fd54f6c97881e18bd33fec2997545b475565f81dd8c9378e9e92e1f9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page