A utility to manage a development server on digital ocean
Project description
Dove
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
-
Generate an API access token on Digital Ocean here
-
Install dove:
pip install droplet_dove
-
Initialize dove with
dove init
-
Start your droplet with
dove up
-
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
- Check for a running droplet with the name specified in the dove config, abort if one exists
- Find the latest snapshot for the prefix provided in dove config or use the default snapshot if none exist
- Create the droplet with the configuration params
- Wait for the droplet to start
Dove Down
- Get droplet based on name provided in dove config, abort if droplet not found
- Shutdown droplet and take a snapshot
- Destroy old snapshots with same prefix
- Destroy droplet
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1f16dd71118e9bf498ee7ad9f68d38d9a001829a0d6f592b6f5f2f9e85a3ea |
|
MD5 | 8e455d22ef555c1b4e348c5fac42afa6 |
|
BLAKE2b-256 | 2b55ce9ea080aa852bc4cdbb6f4832ce85f920cc0b2bc84c78c7d116e7b9b1dc |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1abf487d0bde200a1730bb62a27b106605119c5ba3ad89c76c3d62e9ddbe1175 |
|
MD5 | 352573c2373000dc8941910cc1b61e62 |
|
BLAKE2b-256 | bb8a4cb0fd54f6c97881e18bd33fec2997545b475565f81dd8c9378e9e92e1f9 |