Skip to content

run attribute missing #9

@akaihola

Description

@akaihola

I have a script almost directly taken from README:

import os

from sprites import SpritesClient

# Create a client
client = SpritesClient(token=os.environ["SPRITES_TOKEN"])

# Get a sprite handle
sprite = client.sprite("my-sprite")

# Run a command
result = sprite.run("echo", "hello", capture_output=True)

It fails:

uv pip install sprites-py
Resolved 8 packages in 8ms
Installed 8 packages in 10ms
 + anyio==4.12.1
 + certifi==2026.1.4
 + h11==0.16.0
 + httpcore==1.0.9
 + httpx==0.28.1
 + idna==3.11
 + sprites-py==0.0.1a1
 + websockets==16.0python sprites_run.py
Traceback (most recent call last):
  File "/home/akaihola/sprites_run.py", line 12, in <module>
    result = sprite.run("echo", "hello", capture_output=True)
             ^^^^^^^^^^
AttributeError: 'Sprite' object has no attribute 'run'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions