The main client for interacting with the Artheadain API.
Artheadain(
client_id: str,
client_secret: str,
environment: Environment = Environment.PRODUCTION,
timeout: float = 60.0,
)entity- Entity clientobject- Object clientobjects- Objects clienttask- Task clienttasks- Tasks clientoauth- OAuth cliententities- Entities client
class Environment:
PRODUCTION = "https://api.arthedain.ai"
STAGING = "https://staging.api.arthedain.ai"
LOCAL = "http://localhost:8080"List all entities.
Get an entity by ID.
Create a new entity.
List all tasks.
Get a task by ID.
Create a new task.
List all objects.
Get an object by ID.
Get an OAuth token.
from artained.core.api_error import ApiError
try:
client.entity.get("invalid-id")
except ApiError as e:
print(f"API Error: {e.status_code} - {e.body}")All types are available under arthedain.types:
from artained.types import Entity, Task, Object