Skip to main content

sasvi

sasvi is a Python SDK for SAS Visual Investigator and related Viya services. It combines generated endpoint coverage with a handwritten layer for the workflows people actually write: bound objects, typed errors, async parity, and a CLI.

I want to...​

Learning path​

If you're not sure where to start, follow this sequence:

  1. Before you start. Collect the real VI values your examples will need.
  2. Quickstart. Prove the SDK works in your environment.
  3. How-to guides. Pick the guide that matches your task.
  4. Concepts. The mental model behind the client.
  5. API reference. Exact signatures.

What the SDK exposes​

The handwritten public surface:

SurfacePurpose
sasvi.SVIClientThe package entry point. It owns auth, config, and the services.
sasvi.SVIConfig, RetryPolicy, HTTPLogPolicyRuntime configuration dataclasses.
client.documents, client.alerts, client.search, client.workflows, client.admin, client.customThe stable handwritten services mounted on SVIClient. Reference lists live at client.admin.reference_lists, insights at document.insights.
client.auth, client.runtime_configThe resolved token provider and the SVIConfig the client is running with.
sasvi.errorsTyped exception hierarchy.
sasvi.typesLiteral aliases for closed-set strings, and each service's generated models and wire types (sasvi.types.datahub, sasvi.types.sand, ...).
sasvi.valuesUserRef, GroupRef and chooser-value helpers.
sasvi.handlesRawBackedHandle base for handle subclasses.
client.api.<service>Raw generated layer for endpoints not yet wrapped. Seven facades: alerts, datahub, files, folders, sand, transport, workflows.

For the conceptual breakdown see Client model.

Get help​

  • Search the docs (top right). Every page is indexed.
  • FAQ. Short answers to the top questions.
  • Troubleshooting. Map a symptom to its cause and its fix.
  • Glossary. Terms used across the docs.
  • Open an issue on GitHub with sasvi --json doctor output and the smallest snippet that reproduces it.