dinomem-py
Python SDK for DinoMem — the memory API for AI agents.
Install
pip install dinomem-py
Usage
import os
from dinomem_py import MemoryStore
mem = MemoryStore(api_key=os.environ["DINOMEM_API_KEY"])
mem.write(content="user prefers dark mode", agent_id="agent-1", scope="user")
hits = mem.search(query="theme preference", agent_id="agent-1", top_k=5)
for h in hits:
print(h.score, h.content)
Async
import asyncio
from dinomem_py import AsyncMemoryStore
async def main():
async with AsyncMemoryStore(api_key="...") as mem:
await mem.write(content="hello", agent_id="agent-1")
asyncio.run(main())
Self-hosting
Pass base_url= to point at your own deployment:
mem = MemoryStore(api_key="...", base_url="https://your-host.example.com/functions/v1/api")
License
Release files for dinomem-py 1.0.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 | |
|---|---|---|---|
| dinomem_py-1.0.0.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dinomem_py-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / dinomem_py-1.0.0.tar.gz
| Download URL | dinomem_py-1.0.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9e57aaab1cf16e51d0c266e5475706c8117ec2c31470a07c76625b444c64419
|
|
BLAKE2b-256 checksum How to use checksums |
80aa1f5202a29af98c981ed7bb15b42ddc36f24aef24c653af3e19f9681542b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dinomem_py-1.0.0-py3-none-any.whl
| Download URL | dinomem_py-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
982e7a99e16e26c6480f24356e3ab5de76267dd4d92ce70902fbe8da96068fc9
|
|
BLAKE2b-256 checksum How to use checksums |
e5de8379517674f449548cabd494e729543e3b7da8955754e83d543400585e5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|