Initialization

Greenhub API key

To use the functionalities of the pip package, you must first authenticate yourself. For this, you need your Greenhub API token, which is accessible through the account card on Greenhub.ai.

Screenshot



Screenshot



Hint: If you don’t have a Greenhub account yet, you can register here.

Initialize package

To initialize the Greenhub SDK, import the greenhub package into your Jupyter-Notebook or Python script and call the initialize method with your API key.

import greenhub as gh

gh.initialize("[personal-greenhub-api-key]")

You can now utilize all the functions of the Greenhub SDK.