Skip to main content

Nova Action Library for Openstack Compute

Project description

Date: 2012-03-08 16:22
tags:Openstack, Nova Compute

Access Nova Compute via Python

General Overview

This is a VERY Simple libary that I have found useful in projects where the I needed access to the NOVA API.

Functions of the Library :
  • Do Openstack Nova Things
  • Presently only supports Nova Compute, but does so for both Vanilla Openstack and the Rackspace Open Cloud
Prerequisites :
  • Python => 2.6 but < 3.0

Installation :

Installation is simple:

git clone git://
cd bookofnova
python install

Now in your application Import bookofnova and go forth and Access Openstack Nova.

Application Usage

Here is some Basic Usage –

# Everything in this dictionary is a string, fill in the needed values.
m_args = {"os_user": 'YOU',
          "os_apikey": 'RANDOMNUMBERSANDTHINGS',
          "os_auth_url": None,
          "os_rax_auth": 'ALOCATION',
          "os_verbose": None,
          "os_password": None,
          "os_tenant": None,
          "os_region": None,
          "os_version": 'v2.0'}
from __future__ import print_function
from bookofnova import authentication, computelib, connections

# Set output / Logging
output = print

# Authentication with Nova
auth = authentication.Authentication(m_args=m_args,
service_cat = auth.os_auth()

# Tell the book of Nova that you are ready
nova = computelib.NovaCommands(m_args=m_args,

# Using Nova to show a list of all Instances
servers = nova.server_list()

# now everything that you ever wanted to know from a Openstack Nova
# query can be found in your dictionary under the key 'nova_resp'


Copyright [2013] [Kevin Carter]

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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 bookofnova, version 0.002
Filename, size File type Python version Upload date Hashes
Filename, size bookofnova-0.002.tar.gz (9.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page