Python SDK for the memoricai /v1 HTTP API
Project description
memoricai — Python SDK
Stdlib-only client for the memoricai /v1 HTTP API (Python 3.9+).
from memoricai import Client
client = Client("http://localhost:6767", "mc_...")
doc = client.add_text("My name is Ada.", container_tag="mc_project_default")
client.wait_for_document(doc["id"])
res = client.search_memories("what is my name",
container_tag="mc_project_default", digest=True)
print(res["digest"]) # ready-to-inject, date-stamped context
print(client.profile("mc_project_default"))
Install from the repo: pip install ./sdks/python. Transient failures (429/5xx)
are retried with exponential backoff; API errors raise MemoricaiError(status, message).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
memoricai-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memoricai-0.1.0.tar.gz.
File metadata
- Download URL: memoricai-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfc288f2fd1e0a34062ce4516968ced60898939c6d960e2ac6a9853528818bf8
|
|
| MD5 |
aa9898c0787bcee30ea89e1938118e51
|
|
| BLAKE2b-256 |
728b709211de9162bade5f226b60dfaff7db96a7304f3e5dea9f1a0716e0b0ea
|
File details
Details for the file memoricai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: memoricai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
707a08a25a14a45d89ba9f30205456bfb83231f966bc4dd67d46e545872f22a8
|
|
| MD5 |
c7af228ce53108ebaee51053fef04f7c
|
|
| BLAKE2b-256 |
b06e2905141f57b1d06539755234030bd3ca01a482227e6e3bf02f992298da61
|