Skip to main content

Manage API keys

Get your LastMile API Key

LastMile API Key

Use your LastMile API Key

Managing External API

Configure Weights & Biases API token

PyPI

The LastMile Python library provides pythonic access to the LastMile REST API from any Python 3.7+ application.

Installation

# install from PyPI
pip install lastmile

Usage

import os
from lastmile import Lastmile

client = Lastmile(
# This is the default and can be omitted
bearer_token=os.environ.get("LASTMILE_API_TOKEN"),
)

dataset = client.datasets.create()
print(dataset.dataset)