Skip to main content

A lightweight wrapper for the SolusVM client API.

Project description

A lightweight wrapper for the SolusVM client API.


  • Query a host’s memory, bandwidth, IP addresses and storage usage.
  • Boot, reboot and shutdown machines.
  • Configurable to work with any SolusVM provider.
  • Command line client and intuitive Python module for your own scripts.


  1. Run pip install beam to download the module.
  2. Create your .beam.ini inventory file as below.


The inventory file holds information about your hosting provider(s) and host(s), so beam knows how to contact the relevant API endpoints and what credentials to use. Here’s a sample file:

ramnode =
vendor2 =
default = ramnode

key = nyc-1_host_key
hash = nyc-1_host_hash

key = ams-1_host_key
hash = ams-1_host_hash
vendor = vendor2

This file defines two hosts, nyc-1, hosted with RamNode, and ams-1, hosted with FlipHost. At the top are the vendor names in a special vendors section (all other sections are assumed to represent hosts). The format maps a vendor name to their base endpoint for the SolusVM API. The default directive indicates the implicit vendor of every host, and must be specified if more than one vendor is defined.

Each host has its own section. The correct key and hash values can be optained from the SolusVM control panel used by your vendor. If a host is not provided by the default vendor, a vendor directive specifies the correct one.


Beam provides both a Python library for programmatic access to your hosts, and a simple CLI that wraps it in a couple of lines of code.


The CLI client can be used to find information about a single host.

$ beam --help
usage: beam [-h] [-V]
            (-A {boot,reboot,shutdown} | -a ATTRIBUTES [ATTRIBUTES ...])

A lightweight wrapper for the SolusVM client API.

positional arguments:
  host                  the identifier of the host whose information to

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -A {boot,reboot,shutdown}, --action {boot,reboot,shutdown}
                        an action to execute against the host
                        one or more attributes of the host to retrieve
$ beam -a bandwidth.free_percentage
$ beam nyc-1 -a primary_ip
$ beam ams-1 -a is_online memory.used_bytes
$ beam nyc-1 -A shutdown


import beam

# shutdown a specific host
host ='nyc-1')  # name, key or hash
if host.is_online:

# boot all offline hosts
[host.boot() for host in beam.hosts() if not host.is_online]

# get a list of hosts using above 90% of their memory
hosts = [host for host in beam.hosts()
         if host.memory.used_percentage > .9]

# get a list of hosts with less than 10 GiB of storage left
hosts = [host for host in beam.hosts()
         if < 1024 ** 3 * 10]


  • Generate documentation.
  • Increase unit test coverage to 100%, and implement some integration tests.


Although “solus” means alone, that’s a tad depressing. Solus also conjures up images of the sun for me. The sun beams down - and the name was available on PyPI - so beam it was.

Project details

Download files

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

Files for beam, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size beam-0.5.0-py2.py3-none-any.whl (20.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size beam-0.5.0.tar.gz (11.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page