Skip to main content

Python SDK for OmniMem — Agent memory ledger on Turso/libSQL

Project description

mymemo

Python SDK for MyMemo — Agent memory ledger on Turso/libSQL.

Install

pip install mymemo

Quick Start

from mymemo import MyMemoConfig, create_clients, MemoryStore, rank
from mymemo.types import MemoryFactDraft, IncidentBase, SearchQuery
import time

# Configure
config = MyMemoConfig(
    routing={"primary": "wss://your-db.turso.io", "replica": "file:./local.db"}
)

# Connect
clients = create_clients(config)
store = MemoryStore(clients.writer, dimension=384)

# Write memory
meta = IncidentBase(scope="my-agent", incident_id="1", timestamp=int(time.time()))
store.write(MemoryFactDraft(content="User prefers dark mode", category="user_preference"), meta)

# Search
results = store.get_candidates(SearchQuery(scope="my-agent", keyword="dark"))
ranked = rank(results, SearchQuery(scope="my-agent"))

Features

  • Idempotent writes — SHA256 deterministic IDs, no duplicates
  • Hybrid search — FTS5 full-text + vector similarity
  • Adaptive ranking — time decay, category-specific tuning
  • GC — automatic eviction of stale memories
  • NaN defense — rejects invalid vectors at write time
  • Shared database — compatible with the TypeScript core SDK

License

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

mymemo-0.1.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

mymemo-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file mymemo-0.1.1.tar.gz.

File metadata

  • Download URL: mymemo-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mymemo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 502cffcb70b96d6c7cd388258553ea24e16c701534ec3a0e4c7d3306b99ffc03
MD5 92c1853d85799d012ec0a86962ba49aa
BLAKE2b-256 0ca125cebbe0d7a3d470197f1d4b1c9193731d99dc0b65d74d6e1a734ccc1487

See more details on using hashes here.

File details

Details for the file mymemo-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mymemo-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mymemo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62a72bf9d68b067b00d2cc444c5ca271972d7a1eca3bfeeddd4676925d785b1b
MD5 61a3f2668803c966fbacb6e129a20c09
BLAKE2b-256 626f81e2c7fc66538a013dfe1d69b31a00c71d99b3dbb6162c0c13c80272f7aa

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