Skip to main content

Official StewAI Python SDK

Project description

stewai (Python SDK)

Base URL (only): https://api.stewai.com/v1

Install

pip install stewai

Get an API key

  1. Log in to stewai.com
  2. Go to Settings → API keys
  3. Create a key and copy it once (sk-live-...)

Usage

from stewai import Client

client = Client(api_key="sk-live-...")

# Use the Input step “API input id” shown in the editor as the inputs key
run = client.runs.create(
    recipe_id="01K....",
    inputs={"USERQUESTION": "What should I focus on this week?"},
)

print(run["status"])  # done|failed|cancelled|blocked

# Debug only: full execution trace (steps + outputs)
trace = client.runs.steps(run["id"])

Environment variable

export STEWAI_API_KEY="sk-live-..."
from stewai import Client

client = Client()  # reads STEWAI_API_KEY
run = client.runs.create(recipe_id="01K....", wait=False)
run = client.runs.wait(run["id"], timeout=300)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stewai-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stewai-0.1.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file stewai-0.1.1.tar.gz.

File metadata

  • Download URL: stewai-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stewai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42898081e17ffcfa5111dd7cb1b84cea20c7285c81d94c665e8a30b499909d8f
MD5 c9ae94591925f3e8c7ee16985c9fb4b7
BLAKE2b-256 a11dc4bd7f2c0cdc944a02cf149cc37160bb2cf563e67518f706ab402654098d

See more details on using hashes here.

Provenance

The following attestation bundles were made for stewai-0.1.1.tar.gz:

Publisher: pypi-stewai.yml on cmumulle/stewai-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stewai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: stewai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stewai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1033753ae61c638a3886980397f7a72b5d27947c40f5ea195602780201f6217e
MD5 c6620b52f3dfe44dcb79732d633f4d5b
BLAKE2b-256 0e0d1b9bb1b4f9e457755e1850da56ca1214c5f500929842158c6f981083cf35

See more details on using hashes here.

Provenance

The following attestation bundles were made for stewai-0.1.1-py3-none-any.whl:

Publisher: pypi-stewai.yml on cmumulle/stewai-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page