Install & Compatibility
Where this runs
tested against v0.11.0 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 102.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.7s · import 0.000s · 99MB
102MB installed
● package 102MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Client
✓ from topk_sdk import Client
✗ from topk import TopKClient
AsyncClient
✓ from topk_sdk import AsyncClient
Answer
✓ from topk_sdk import Answer
Initialize client with env vars, upsert a score, and retrieve the top 10 leaderboard.
import os
from topk import TopKClient
client = TopKClient(
api_key=os.environ.get('TOPK_API_KEY', ''),
project_id=os.environ.get('TOPK_PROJECT_ID', '')
)
# Upsert a score
response = client.upsert_score(
leaderboard='global',
user_id='user123',
score=1000
)
print(response)
# Get leaderboard
leaderboard = client.get_leaderboard(leaderboard='global', limit=10)
print(leaderboard)
Upgrade
Version history
0.11.0latest on PyPI · released Jun 3, 2026
Audit
Dependencies
No dependency data recorded yet.