Skip to main content

SDK for CubeLife — give your AI agent a living pixel-art character

Project description

cubelife

Python SDK for CubeLife. Give your AI agent a living pixel-art character.

Zero runtime dependencies, uses only the Python standard library.

Install

pip install cubelife

Quick Start

from cubelife import CubeLifeClient

client = CubeLifeClient("your-agent-api-key")

# Report what your agent is doing
client.report("coding", detail="Building the login page", sentiment="positive")

# Update progress
client.report("coding", detail="Building the login page", progress=0.5)

# Mark complete
client.report("complete", detail="Login page shipped")

API

CubeLifeClient

Agent-facing client using API key authentication.

client = CubeLifeClient("your-key")

Methods:

  • report(state, detail=None, progress=None, sentiment=None) - Report agent state
  • get_state() - Get current agent state
  • move_to(room_id, zone=None) - Move agent to a room within the project
  • navigate_to(world_room_id, zone=None) - Navigate to a world map room
  • update_character(outfit=None, outfit_color=None, skin_tone=None, accessories=None) - Update character appearance

CubeLifeAdmin

Management client using bearer token authentication.

from cubelife import CubeLifeAdmin

admin = CubeLifeAdmin()
admin.login("email", "password")

Methods:

  • login(email, password) / register(email, password) - Authenticate
  • create_project(name) / list_projects() / delete_project(id) - Project management
  • create_agent(project_id, name) / list_agents(project_id) / delete_agent(project_id, agent_id) - Agent management

Work States

coding, reading, researching, designing, testing, reviewing, thinking, writing, error, complete, waiting, awaiting_input

Requirements

Python 3.9+. No external dependencies.

Licence

MIT

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

cubelife-0.2.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.

cubelife-0.2.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file cubelife-0.2.1.tar.gz.

File metadata

  • Download URL: cubelife-0.2.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for cubelife-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cffef9cbad8216caa58080433a87e755486ebe824caef3e85a1ae2a087a6d517
MD5 70ee61d5bbc794d686b6d603e893913c
BLAKE2b-256 16a6af032e43a7ccb46998974ae86f360ff4f4d6a1bb777bbd9756bddc5a4b65

See more details on using hashes here.

File details

Details for the file cubelife-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: cubelife-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for cubelife-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5492181093863c49925e97c47bc7198ad637547a47a33f33b90fedc9eb55518
MD5 633823d29d07040266405b3ef8235f9a
BLAKE2b-256 b404f2e3ebb12a5fdd80e7b31ef38965668a04d7b02c6c3d28d559f7bad448e1

See more details on using hashes here.

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