Registry / ai-ml / scaleapi

scaleapi

JSON →
library2.18.4pypypi✓ verified 34d ago

The official Python client library for Scale AI, the Data Platform for AI. Provides programmatic access to Scale's APIs for creating tasks, managing batches, datasets, and more. Current version is 2.18.4, with active development and a new v2 API client. Release cadence is roughly monthly.

ai-mlllm-agents
Install & Compatibility
Where this runs
tested against v2.18.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 2.588s · 34MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.1s · import 2.424s · 34MB
32MB installed
● package 32MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The SDK does not provide a direct 'client' import. Use 'scaleapi.ScaleClient'.

import scaleapi client = scaleapi.ScaleClient('api_key')

Common alias is fine, but be careful not to shadow built-in.

from scaleapi import ScaleClient client = ScaleClient('api_key')

Initialize client with API key from environment variable and list projects.

import os import scaleapi api_key = os.environ.get('SCALE_API_KEY', '') client = scaleapi.ScaleClient(api_key) # List your projects for project in client.get_projects(): print(project.name, project.type)
Debug
Known footguns
breakingStarting v2.16.0, Python 3.7 support is dropped. Requires Python >= 3.8.
gotchaThe v2 client (client.v2) uses different methods than the v1 client. For example, create_task is not available under v2; use v2_create_task or the respective v2 endpoint.
deprecatedThe method 'get_tasks' without pagination helper is deprecated. Use 'get_tasks' with parameters or 'v2.get_tasks' for paginated results.
gotchaAPI key must be passed as a string. Passing None or empty string gives a 401 Unauthorized error on first request.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
25 hits · last 30 days
petalbot
5
gptbot
4
amazonbot
4
ahrefsbot
3
claudebot
2
script
1
bingbot
1
Resources