Python SDK

Python client library

Installation

bash
pip install echostash

Initialization

python
from echostash import EchostashClient

client = EchostashClient(api_key=os.environ["ECHOSTASH_API_KEY"])

Basic Usage

python
# Get a prompt
prompt = client.get_prompt("my-prompt")

# Render with variables
rendered = client.render_prompt("my-prompt",
  variables={"name": "Alice"}
)