Skip to content

Client libraries

UbiOps offers client libraries that allow for easy integration of UbiOps functionality into your project. The libraries offer the same functionality as the API. More advanced information about these client libraries can be found on our Github page.

Installation

The ubiops client library (Python) is available on PyPi and can be installed using PIP:

pip install ubiops

Compatibility matrix

Client library API v1.1 API v2.1
ubiops 2.1.* -

Usage

To test if everything works properly, you can run the snippet below. Please, fill in your own API key (<YOUR_API_KEY>).

import ubiops

configuration = ubiops.Configuration()
configuration.api_key['Authorization'] = 'Token <YOUR_API_KEY>'

client = ubiops.ApiClient(configuration)
api = ubiops.api.CoreApi(client)

print(api.service_status())

Documentation

More comprehensive information can be found on Github.

Example deployment

The examples folder in the Github repository contains Jupyter notebooks which show how to deploy a model on UbiOps using the Python client library.