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
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 Distribution
Close
Hashes for openstack-interpreter-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d18b69b083e9e9b1a9be9eecd99e1a172238d1d7b2e27d2cf1362c54602525a6 |
|
MD5 | 4aa9555ee802da9c043841363f9d44e9 |
|
BLAKE2b-256 | 6ee862226ca81f728c66f81cd3fda1f2b8f29129a0528f82cf64a8a6b3aa70ea |