LLNL/python-lora

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Python LORA Interface

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/

Usage

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'

Getting Started
Developer

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
Contributing

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.

Future Ideas / Work

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.