Automate buying VPS instances with Bitcoin
Project description
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
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 Distributions
Built Distribution
Hashes for cloudomate-0.1.10-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3316c4478176ecfd99320c86ce6e6854cb6cc48b479ed4640cec07561dd5e513 |
|
MD5 | da670a724f5aabdc31e18d32049fee3c |
|
BLAKE2b-256 | fb6ee5fab93bc28b1f42420858819209a2cdf65062f61eb7df25cf99e0951364 |