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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mymemo-0.2.0.tar.gz | 5.1 kB | Without provenance | Details for mymemo-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mymemo-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mymemo-0.2.0-py3-none-any.whl |
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
|
Security for mymemo 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.