Skip to content

Basic usage

The hierarchy is org / team → project → dataset → traces (plus notebooks). Everything is lazy: nothing hits the network until you read data.

import cloudsprite as cs

cs.connect()

for team in cs.teams:                       # discover what you can reach
    print(team.name, team.slug)
    for project in team.projects:
        print(" ", project.name)

ds = cs.projects["cable-qual"].datasets["sweep-25c"]
s21 = ds.traces["S21"]
x, y = s21.x, s21.y                         # network I/O happens here

Queries support globs and parameter filters:

cs.projects["cable-qual"].datasets["sweep-*"]
cs.projects["cable-qual"].datasets.filter(cs.params.temp > 25)

Publish results back with publish; each method page in this reference documents the signature, request/response fields, and the permission it needs. Start from Client or browse the classes in the sidebar. Longer walkthroughs: Python SDK how-to.