Skip to main content

Automate buying VPS instances with Bitcoin

Project description

Build Status Cloudomate logo

Overview

Cloudomate is an unpermissioned open compute API which provides an automated way to buy VPS instances from multiple providers. The easiest way to use Cloudomate is via the command-line interface.

Requirements

  • Python 2.7

  • python-lxml installed on the system

  • Works on Linux, Mac OSX, BSD

  • An active Electrum wallet with sufficient funds

Installation

The project can be installed through pip

apt-get install python-lxml
pip install cloudomate

Providers

Currently the following VPS providers are implemented:

linevast       https://linevast.de/
pulseservers   https://pulseservers.com/
rockhoster     https://rockhoster.com/
blueangelhost  https://www.blueangelhost.com/
ccihosting     http://www.ccihosting.com/
crowncloud     http://crowncloud.net/

This same list can be accessed through the list command.

cloudomate list

Configuration

For some commands, mainly purchase, user configuration is required. The main way to do this is through a configruation file. For Linux, the default location for the configuration file is $HOME/.config/cloudomate.cfg.

A configuration file looks like this

[User]
email =
firstName =
lastName =
companyName =
phoneNumber =
password =

[Address]
address =
city =
state =
countryCode =
zipcode =

[Server]
rootpw =
ns1 =
ns2 =
hostname =

Section can be overridden for specific providers by adding a section, for example a [rockhoster] section can contain a separate email address only to be used for RockHoster.

Basic usage

usage: cloudomate [-h] {list,options,purchase,status,setrootpw,getip} ...

Cloudomate

positional arguments:
  {list,options,purchase,status,setrootpw,getip}
    list                List providers
    options             List provider configurations
    purchase            Purchase VPS
    status              Get the status of the services.
    setrootpw           Set the root password of the last activated service.
    getip               Get the ip of the specified service.

optional arguments:
  -h, --help            show this help message and exit

options

List the options for RockHoster

$ cloudomate options rockhoster
Options for rockhoster:

  #    Name              CPU (cores)       RAM (GB)          Storage (GB)      Bandwidth (TB)    Connection (Mbps) Estimated Price (mBTC)
  0    Basic              1                1                 25                unmetered         500               3.47
  1    Premium            2                2                 50                unmetered         500               5.27
  2    Expert             3                4                 100               unmetered         500               9.3
  3    Maximum            4                8                 150               unmetered         500               16.25
  4    Basic              2                1                 40                unmetered         1000              5.27
  5    Premium            2                2                 80                unmetered         1000              8.41
  6    Expert             3                4                 150               unmetered         1000              14.23
  7    Maximum            4                8                 300               unmetered         1000              24.54

Purchase

Use the purchase command to purchase a VPS instance. An account is created and the instance is paid through an Electrum wallet.

$ cloudomate purchase rockhoster 0
Selected configuration:
Name           CPU            RAM            Storage        Bandwidth      Est.Price
Basic          1              1.0            25.0           unmetered      4.99
Purchase this option? (y/N)

Manage

The following functions can be used to manage a purchased VPS instances

status              Get the status of the services.
setrootpw           Set the root password of the last activated service.
getip               Get the ip of the specified service.

Tests

To run the project’s tests

python -m unittest discover

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

cloudomate-0.1.4-py27-none-any.whl (38.2 kB view details)

Uploaded Python 2.7

cloudomate-0.1.4-py2.py3-none-any.whl (38.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cloudomate-0.1.4-py27-none-any.whl.

File metadata

File hashes

Hashes for cloudomate-0.1.4-py27-none-any.whl
Algorithm Hash digest
SHA256 b3cfcec05fc743f1e177c0e334ee77833b5cf2c556c21bf876ad775a94436542
MD5 97880ee3d296bb8b63281dd48b286bee
BLAKE2b-256 d86bcae776278700372f9a6fa3dfa1aa6b844e41f0028766f0e4122f7f657fb9

See more details on using hashes here.

File details

Details for the file cloudomate-0.1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cloudomate-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b01b37d89f39719ac0f6f7dd478675cca39ef122a6d9de3ce53350c40396f427
MD5 fb5f476277a2a95a7e39bd34b30e6195
BLAKE2b-256 44058af8b4dcd3a5de1d14244ef527085b7de191487fa09460cb396ad0ec422e

See more details on using hashes here.

Supported by

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