Skip to main content
Help us improve Python packaging – donate today!

Client library for OpenStack Compute API

Project Description

This is a client for the OpenStack Nova API. There’s a Python API (the novaclient module), and a command-line script (nova). Each implements 100% of the OpenStack Nova API.

See the OpenStack CLI guide for information on how to use the nova command-line tool. You may also want to look at the OpenStack API documentation.

The project is hosted on Launchpad, where bugs can be filed. The code is hosted on Github. Patches must be submitted using Gerrit, not Github pull requests.

python-novaclient is licensed under the Apache License like the rest of OpenStack.

Command-line API

Installing this package gets you a shell command, nova, that you can use to interact with any OpenStack cloud.

You’ll need to provide your OpenStack username and password. You can do this with the --os-username, --os-password and --os-tenant-name params, but it’s easier to just set them as environment variables:

export OS_USERNAME=openstack
export OS_PASSWORD=yadayada
export OS_TENANT_NAME=myproject

You will also need to define the authentication url with --os-auth-url and the version of the API with --os-compute-api-version. Or set them as an environment variables as well:

export OS_AUTH_URL=http://example.com:8774/v1.1/
export OS_COMPUTE_API_VERSION=1.1

If you are using Keystone, you need to set the OS_AUTH_URL to the keystone endpoint:

export OS_AUTH_URL=http://example.com:5000/v2.0/

Since Keystone can return multiple regions in the Service Catalog, you can specify the one you want with --os-region-name (or export OS_REGION_NAME). It defaults to the first in the list returned.

You’ll find complete documentation on the shell by running nova help

Python API

There’s also a complete Python API, but it has not yet been documented.

Quick-start using keystone:

# use v2.0 auth with http://example.com:5000/v2.0/")
>>> from novaclient.v1_1 import client
>>> nt = client.Client(USER, PASS, TENANT, AUTH_URL, service_type="compute")
>>> nt.flavors.list()
[...]
>>> nt.servers.list()
[...]
>>> nt.keypairs.list()
[...]

Release history Release notifications

History Node

10.1.0

History Node

10.0.0

History Node

9.1.1

History Node

9.1.0

History Node

9.0.1

History Node

9.0.0

History Node

8.0.0

History Node

7.1.2

History Node

7.1.1

History Node

7.1.0

History Node

7.0.0

History Node

6.0.2

History Node

6.0.1

History Node

6.0.0

History Node

5.1.0

History Node

5.0.0

History Node

4.1.0

History Node

4.0.0

History Node

3.4.0

History Node

3.3.3

History Node

3.3.2

History Node

3.3.1

History Node

3.3.0

History Node

3.2.0

History Node

3.1.0

History Node

3.0.0

History Node

2.35.0

History Node

2.34.0

History Node

2.33.0

History Node

2.32.0

History Node

2.31.0

History Node

2.30.3

History Node

2.30.2

History Node

2.30.1

History Node

2.30.0

History Node

2.29.0

History Node

2.28.1

History Node

2.28.0

History Node

2.27.0

History Node

2.26.0

History Node

2.25.0

History Node

2.24.1

History Node

2.24.0

History Node

2.23.3

History Node

2.23.2

History Node

2.23.1

History Node

2.23.0

History Node

2.22.0

History Node

2.21.0

History Node

2.20.0

History Node

2.19.0

History Node

2.18.1

This version
History Node

2.18.0

History Node

2.17.0

History Node

2.16.0

History Node

2.15.0

History Node

2.14.1

History Node

2.14.0

History Node

2.13.0

History Node

2.12.0

History Node

2.11.1

History Node

2.11.0

History Node

2.10.0

History Node

2.9.0

History Node

2.8.0

History Node

2.7.0

History Node

2.6.10

History Node

2.6.0.1

History Node

2.6.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
python_novaclient-2.18.0-py2.py3-none-any.whl (339.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jul 11, 2014
python-novaclient-2.18.0.tar.gz (253.1 kB) Copy SHA256 hash SHA256 Source None Jul 10, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page