Skip to main content

A simple command to drop you into the python interpreter with the openstack easy to setup.

Project description

A simple command to drop you into the python interpreter with the openstack clients setup.

Using the interpreter

First install the tool:

pip install openstack-interpreter

The simply run the command. Provided you have your environment variables setup correctly it will authenticate you, and drop into a python interpreter.

$ os-interpreter

>>> interpreter
<openstack_interpreter.OpenStackInterpreter object at 0x7fe39f22b090>
>>> keystone = interpreter.get_client('identity')
>>> projects = keystone.projects.list()
>>> keystone.projects.get(projects[0].id)
>>> nova = interpreter.get_client('compute')
>>> servers = nova.servers.list()
>>> server = nova.servers.get(servers[0].id)

Project details


Download files

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

Source Distribution

openstack-interpreter-0.1.1.tar.gz (1.8 kB view hashes)

Uploaded Source

Supported by

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