Skip to main content

API reference

This section is for the developer who needs exact class and method signatures.

Generated from docstrings​

Every page under Generated reference is rendered from the SDK's own docstrings by pydoc-markdown. CI regenerates the whole tree on each run and fails if the committed pages differ, so the reference cannot drift from the source without the build going red.

Start from the package index:

One page per public package, because that is the unit you import from. Everything on the sasvi.documents page is importable as from sasvi.documents import ..., whichever module inside the package happens to define it.

Single-file modules keep a page of their own:

  • sasvi.errors. The typed exception hierarchy.
  • sasvi.config. SVIConfig, RetryPolicy, HTTPLogPolicy.
  • sasvi.auth. The token providers.
  • sasvi.types. Literal aliases for closed-set strings, and each service's generated wire types and models under sasvi.types.<service>.
  • sasvi.handles. RawBackedHandle and the typed raw_* accessors.
  • sasvi.values. UserRef and GroupRef.

The generated sasvi.api.<service> layer stays public and deliberately broad: alerts, datahub, sand, workflows, files, folders and transport, about 520 operations in total. It has no hand-written reference page. Use code completion and the generated models when you need endpoint-level coverage the handwritten services do not wrap yet.

Looking for narrative?​

The reference gives you signatures, not task-shaped guidance. For that, read the How-to guides, which cover authentication, configuration, documents, search, workflows and every other domain with runnable snippets. The notebook examples go further, into end-to-end sequences.

How the generated pages stay in sync​

Every site build regenerates the reference. The site deploys with each release (.github/workflows/release.yml), and .github/workflows/deploy-doc.yml is the manual run for fixes between releases. To regenerate locally:

uv sync --frozen
./scripts/build_docs.sh

The script clears website/docs/api/generated/, renders it with pydoc-markdown, folds each package's per-module pages into one index.md via tools/merge_api_reference.py, and then builds the site. The fold is what keeps private module paths off the site: the public classes live in modules such as sasvi/documents/_managers.py, and publishing those page names would advertise an import path you must not use.