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...
- Get started in 5 minutes
Install, authenticate, make your first call. - Authenticate
Pick the right auth provider for your environment. - Walk through a real workflow
Open one of 10 end-to-end Jupyter notebooks. - Fix a problem
A decision tree from symptom to cause to fix. - Have a question
Short answers to the top onboarding questions. - See a recipe
17 focused snippets for common tasks. - Use async or scale up
_asyncsiblings, fanout patterns, deadlines. - Tune for production
Retries, concurrency, connection pools. - Build a search query
QandFoperators, geo, composition. - Write tests
Pytest fixtures, mock transports, async testing. - Look up an API
Exact signatures for every public type.
Learning path
If you're not sure where to start, follow this sequence:
- Before you start. Collect the real VI values your examples will need.
- Quickstart. Prove the SDK works in your environment.
- How-to guides. Pick the guide that matches your task.
- Concepts. The mental model behind the client.
- API reference. Exact signatures.
What the SDK exposes
The handwritten public surface:
| Surface | Purpose |
|---|---|
sasvi.SVIClient | The package entry point. It owns auth, config, and the services. |
sasvi.SVIConfig, RetryPolicy, HTTPLogPolicy | Runtime configuration dataclasses. |
client.documents, client.alerts, client.search, client.workflows, client.admin, client.custom | The stable handwritten services mounted on SVIClient. Reference lists live at client.admin.reference_lists, insights at document.insights. |
client.auth, client.runtime_config | The resolved token provider and the SVIConfig the client is running with. |
sasvi.errors | Typed exception hierarchy. |
sasvi.types | Literal aliases for closed-set strings, and each service's generated models and wire types (sasvi.types.datahub, sasvi.types.sand, ...). |
sasvi.values | UserRef, GroupRef and chooser-value helpers. |
sasvi.handles | RawBackedHandle 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 doctoroutput and the smallest snippet that reproduces it.