Skip to main content

sagea-cursus — Cursus Python SDK

Distribution name is sagea-cursus because cursus is taken on PyPI by an unrelated SageMaker tool. The product is still branded "Cursus".

pip install sagea-cursus
export CURSUS_API_KEY="cursus_..."          # from <server>/<org>/settings/keys
export CURSUS_BASE_URL="https://cursus.example.com"  # omit for localhost:3000

Full reference: docs/sdk.md. Runnable scripts: examples/ (need a live server + key).

Basic training loop

Credentials come from the environment above, or explicitly per call (handy for multi-server scripts — never commit real keys to git):

import sagea_cursus as cursus

run = cursus.init(
    project="demo",
    config={"lr": 1e-4, "arch": "mlp"},
    api_key="cursus_...",  # or CURSUS_API_KEY
    base_url="https://cursus.example.com",  # or CURSUS_BASE_URL
)
try:
    for step in range(100):
        loss = 1.0 / (step + 1)
        cursus.log({"train/loss": loss}, step=step)
        if step % 10 == 0:
            cursus.log({"train/loss": loss, "eval/acc": step / 100}, step=step)
    cursus.finish()
except Exception:
    cursus.finish("crashed")
    raise

Images, artifacts, and mid-run config

import sagea_cursus as cursus

run = cursus.init(project="vision", config={"backbone": "resnet50"})
for epoch in range(10):
    train_one_epoch(...)
    cursus.log({"train/loss": 0.4 / (epoch + 1)}, step=epoch)
    cursus.log_image("val/samples", f"preds_epoch{epoch}.png", step=epoch)
    if epoch == 5:
        cursus.config.update({"lr": 1e-5})  # synced back, debounced
cursus.log_artifact("resnet50", "runs/best.pt", type="model", description="best val acc")
cursus.finish()

Group projects and named runs

import sagea_cursus as cursus

# Log inside a group project (you must belong to the group).
run = cursus.init(project="detection", group="vision-team", name="baseline-a", tags=["v2-data"])
print("view at:", run.url)
cursus.log({"map50": 0.61}, step=1)
cursus.finish()

Sweep worker (grid/random)

import sagea_cursus as cursus

sweep = cursus.create_sweep(
    "demo",
    {"lr": {"min": 1e-5, "max": 1e-1, "scale": "log"}, "batch": {"values": [16, 32]}},
    name="lr-search",
)
while (trial := cursus.next_trial(sweep["id"])) is not None:
    run = cursus.init(
        project="demo",
        config=trial["config"],
        name=f"sweep-{trial['trial']}",
        sweep_id=trial["sweep_id"],
    )
    try:
        train(trial["config"])
        cursus.finish()
    except Exception:
        cursus.finish("crashed")
        raise

Reliability contract

init() may raise (missing key, version skew). Everything else degrades to warnings: dead servers cost you points, never a crashed training job. Always finish() in a finally — unflushed points and heartbeats die with the process, and the run stays RUNNING until staleness flips it.

Metadata

Release files for sagea-cursus 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sagea-cursus 0.4.0
File Size Uploaded Provenance Actions
sagea_cursus-0.4.0.tar.gz 15.8 kB Without provenance Details for sagea_cursus-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sagea-cursus 0.4.0
File Interpreter ABI Platform Actions
sagea_cursus-0.4.0-py3-none-any.whl Python 3 none any Details for sagea_cursus-0.4.0-py3-none-any.whl

Total release size: 28.1 kB

Release files / sagea_cursus-0.4.0.tar.gz

Download URL sagea_cursus-0.4.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4c7d2e6c96628ce38a5ef7b937638a7f66d0c8c1e19e5d1c58f0b84d8fffc417
BLAKE2b-256 checksum
How to use checksums
597247961cdecaab0f276c6313b9ea75a2cfba4c237e1f7247f966821243356a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / sagea_cursus-0.4.0-py3-none-any.whl

Download URL sagea_cursus-0.4.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f9b323b91d9fa2af81dbb1f4273cfa79482a5781adced71d5f65061f270537b
BLAKE2b-256 checksum
How to use checksums
8f5b5f4af9fbe7e49941ddd9c3e085d35d0bc55fcb097ba8e696322fddb20405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for sagea-cursus 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page