An API to the instantlab middleware
Instantlab is a project that provides operating system experiments in the cloud.
Instantlab_apiclient maps calls to the HTTP interface of the InstantLab Middleware to python functions. Results from the API are mapped to python objects and Errors in the API are raised as python exceptions.
Installation and Dependencies
Install instantlab_apiclient with pip install instantlab_apiclient. This will also install all dependencies.
Instantlab_apiclient works with Python2.7+ and Python3.x.
from instantlab_apiclient import InstantlabApi # instanciate API api = InstantlabApi(middleware_url, your_api_id, your_api_key) # fetch list of InfrastructureLayout infrastructure_layouts = api.list_infrastructure_layouts() # instanciate an Infrastructure from an InfrastructureLayout infrastructure = api.create_infrastructure(infrastructure_layouts.id)