Name: python-lora
Owner: Lawrence Livermore National Laboratory
Description: Python library for interacting with LLNL's Lorenz REST API
Created: 2017-01-05 20:22:39.0
Updated: 2017-06-14 14:56:44.0
Pushed: 2017-12-20 18:39:11.0
Homepage: null
Size: 11
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Maintainer: Ian Lee ian@llnl.gov
This package is an attempt to create a Python interface to the LC Lorenz REST API: LORA
The LORA API is documented, with examples, at: https://lc.llnl.gov/lorenz/lora/
Very much a work in progress, but here is a rough idea of how you could use this in an interactive Python terminal:
import lora
cz_lora = lora.LoraSession()
cz_lora.login()
& Token: xxxxxxxx
cz_lora.getAllClusters()
'error': '',
'output': {
'accounts': [
'ansel',
'aztec',
'cab',
'catalyst',
'herd',
'oslic',
'quartz',
'surface',
'syrah',
'vulcan'
]
},
'status': 'OK'
To get started:
# Set up the environment
$ python -m virtualenv venv
$ source venv/bin/activate
# Install the dependencies
$ pip install -r requirements.txt
# Test that everything is working
$ python test.py
Contributions to this package are very welcome! Please feel free to fork the repository, add new functionality, and submit a pull request!
If you have any questions, please open a ticket.