To communicate with Spell using the Python API, the first thing you need to do is create a
Creating a client¶
SpellClientobject with configuration deduced from the environment.
First, attempts to find configuration from environment variables:
The authentication token for the user.
The namespace (e.g. user or organization) in which commands should take place.
An active workflow configuration for setting the workflow context on the returned client.
Second, attempts to find configuration from an active user session of the Spell CLI.
You can also directly instantiate a
SpellClient if desired.
A client for interacting with Spell.
the active workflow for the client. All runs created will be created in the associated workflow. If the value is
None, runs are not created in a workflow.
An object for managing model servers. See