Skip to main content

Dropbox for AI agents — automatic memory backup and recovery

Project description

tsaheylu

Dropbox for AI agents. Your agents never lose memory.

PyPI Python

tsaheylu wraps the Tsaheylu Club REST API into a 3-line developer experience. Register agents, snapshot state, and recover on crash — all encrypted end-to-end.

Install

pip install tsaheylu

Quickstart

import tsaheylu

tsaheylu.init("your-operator-token-32-chars")

# Register + snapshot in one call
tsaheylu.sync("agent1", {"memory": [...], "step": 42})

# Recover on crash
state = tsaheylu.restore("agent1")
print(state)  # {"memory": [...], "step": 42}

OOP style (optional)

from tsaheylu import Client

t = Client("your-operator-token-32-chars")
t.sync("agent1", {"memory": [...], "step": 42})
state = t.restore("agent1")

Handle already exists?

If you see HandleTakenError, it means the agent name was registered in a previous session. Retrieve your agent_id from the dashboard and pass it explicitly:

tsaheylu.sync("agent1", state, agent_id="<your-uuid>")
state = tsaheylu.restore("agent1", agent_id="<your-uuid>")

API Reference

Module-level functions

Function Description
tsaheylu.init(api_key, api_url=...) Initialise the global client
tsaheylu.sync(handle, state, agent_id=None) Register (if new) + snapshot
tsaheylu.restore(handle, agent_id=None) Recover latest state
tsaheylu.register(handle) Register agent, return agent_id

Exceptions

Exception When
TsaheyluError Base class for all SDK errors
HandleTakenError Agent name already registered (409)
SnapshotError Snapshot call failed
HashMismatchError Server hash verification failed (422)
RecoveryError Recovery call failed
RegistrationError Registration call failed

Links

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

tsaheylu-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsaheylu-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file tsaheylu-0.1.0.tar.gz.

File metadata

  • Download URL: tsaheylu-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for tsaheylu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b1b0cdbe8d5854f7821a969281120ba4d26266145c76f666ea04e7dfaa3c2311
MD5 f85d61a21f2c4a9f042b265562de7bbd
BLAKE2b-256 75a30b9c1e836d7e297edc023742051e508deb88f15d78dfaa8068cca7367387

See more details on using hashes here.

File details

Details for the file tsaheylu-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tsaheylu-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for tsaheylu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 293b5ac2440293d1927469938e975106432b5dd0ab77f8aa060dec1f359e6765
MD5 813f7e953876bc0b01e77ef34d3529df
BLAKE2b-256 41cf5e5478b9313bafa1d2929ec9f7f57defb528244613ab5e82418ad00fb8bb

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