Skip to content
Simple Online Labs API Python Wrapper
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
olpy
.gitignore
CHANGES
LICENSE
MANIFEST.in
README.rst
requirements.txt
setup.py

README.rst

Online Labs API Python Wrapper

Heavily Inspired by [dopy](https://github.com/devo-ps/dopy).

Installation

# pip install git+https://github.com/adebarbara/olpy

Getting Started

To interact with Online Labs, you first need .. a online labs account.

>>> from olpy.manager import OlManager
>>> ol = OlManager('api_token')

Or if you don't have a token

>>> from olpy.manager import OlManager
>>> ol = OlManager()
>>> token = ol.new_token('email','password')['id']
>>> ol.set_token(token)

Methods

The methods of the OlManager are self explanatory; ex.

>>> ol.servers()
>>> ol.server('server_id')
>>> ol.new_server('name', 'organization_id', 'image_id', ['volume_id'], ['tag'])
>>> ol.delete_server('server_id')
>>> ol.images()
>>> ol.new_image('name', 'organization_id', 'image_id', 'arch', 'volume_id')

TODO

See github issue list - post if any needed

https://github.com/adebarbara/olpy/issues

You can’t perform that action at this time.