Log In

Getting started with Python SDK

Kili Python SDK has been designed to perform complex project-related tasks by using the Python programming language. Using Kili Python SDK, you can write scripts for repetitive tasks and then integrate them in one machine learning or data science workflow. For people who are familiar with Python, it may be perfect middle ground between complex GraphQL queries and simple, but less flexible CLI one-liners.


You only need Python 3.7 or greater


Install the Kili client with pip:

pip install kili

Getting Started

  1. Create and copy a Kili API key
  2. Add the KILI_API_KEY variable in your bash environment (or in the settings of your favorite IDE) by pasting the API key value that you copied earlier:
export KILI_API_KEY='<you api key value here>'
  1. Instantiate the Kili client:
from kili.client import Kili
kili = Kili()

Great! You can now begin using the Kili Python SDK.


You can also pass the API key as an argument of the Kili initialization:

kili = Kili(api_key='<your api key value here>')

Did this page help you?