Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.72 KB

AGENTS.md

File metadata and controls

45 lines (38 loc) · 1.72 KB

AGENT.md — python-api (infinidream)

Overview

Python SDK client for the infinidream.ai backend API. Used by video, engines, and electric-sheep-engine services.

Stack

  • Language: Python
  • HTTP: requests
  • Serialization: dataclasses-json, dacite
  • Build: setuptools (setup.py + pyproject.toml)

Project Structure

src/
  infinidream/    # Main package
    client/       # API client (create_client)
    ...
  edream_sdk/     # Compatibility alias for the old package name; don't add code here
tests/
  gen.py          # Test script for dream generation

Commands

pip install -r requirements.txt
pip install -e .                    # Install in editable mode
python tests/gen.py --algo deforum  # Test dream generation

Installation

# From GitHub
pip install git+ssh://git@github.com/e-dream-ai/python-api.git

# Local development
git clone ... && cd python-api && pip install -e .

Key Patterns

  • create_client(backend_url, api_key) from infinidream.client is the main entry point
  • The package was renamed from edream_sdk; edream_sdk, create_edream_client and EDreamClient remain as aliases for consumers (video, engines, electric-sheep-engine, worker, gpu-container-uprez) until they all import infinidream
  • The pip distribution is infinidream (it was edream-sdk). Consumers' requirements must name it infinidream @ git+... or #egg=infinidream: pip rejects a requirement whose name doesn't match the metadata
  • Keep the EdreamSDK User-Agent: the backend uses it to allow SDK requests
  • Client provides methods for dream CRUD, playlist management, and status polling
  • Supports all algorithms: qwen-image, wan-t2v, wan-i2v, wan-i2v-lora, deforum, animatediff, enhance