Skip to main content

mymemo

Python SDK for MyMemo — HTTP client for the MyMemo memory ledger.

Install

pip install mymemo

Quick Start

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

# Configure — point to running MyMemo server
config = MyMemoConfig(
    server_url="http://localhost:3000",
)

# Connect
clients = create_clients(config)
store = MemoryStore(clients, 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

  • HTTP client — calls the TypeScript core API, no direct database access
  • Idempotent writes — server-side SHA256 deterministic IDs
  • Hybrid search — FTS5 full-text + vector similarity via server
  • Adaptive ranking — server-side time decay, category-specific tuning
  • GC — server-side automatic eviction of stale memories

License

MIT

Metadata

Release files for mymemo 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mymemo 0.2.0
File Size Uploaded
mymemo-0.2.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mymemo 0.2.0
File Interpreter ABI Platform
mymemo-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / mymemo-0.2.0.tar.gz

Download URL mymemo-0.2.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6d26c14e37fee6a462e6ed4df36e1ffeeb067d24a99c5113919bf1433fea342f
BLAKE2b-256 checksum
How to use checksums
5c9bc3bbc2f3c93e448a7e01b6788568f82c0359b5f8935f81c11cf30d889bc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / mymemo-0.2.0-py3-none-any.whl

Download URL mymemo-0.2.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
012f3b0095ffcc632609eaa7ad52f149c40cd0a9e88b3b4c143661031b419d18
BLAKE2b-256 checksum
How to use checksums
899bbdb25083b48acd7308861cd3c77883e8560c1aec4d801745e854be052a6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page