Skip to main content

Python HTTP client SDK for the Cerememory Protocol (CMP)

Project description

Cerememory Python SDK

Python bindings for Cerememory.

Features

  • Synchronous Client and asynchronous AsyncClient
  • High-level store(), recall(), forget(), and stats() helpers
  • Full CMP protocol access via the underlying transport clients
  • store() supports metadata
  • recall() supports reconsolidate and activation_depth
  • Retries are opt-in; the default is max_retries=0
  • Native package support via cerememory_native

Example

from cerememory import Client

client = Client("http://localhost:8420")

record_id = client.store(
    "Coffee chat with Alice",
    store="episodic",
    metadata={"source": "chat"},
)

memories = client.recall("coffee", reconsolidate=False, activation_depth=4)

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

cerememory-0.2.1.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

cerememory-0.2.1-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file cerememory-0.2.1.tar.gz.

File metadata

  • Download URL: cerememory-0.2.1.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for cerememory-0.2.1.tar.gz
Algorithm Hash digest
SHA256 712f0c036e4e2c628841fcb263c2fef3d75db78a6c100f8ca263f735d02689ae
MD5 77d3496afc4be0d6edce6ac20e825404
BLAKE2b-256 13bff868203319959cb4acbf0c3d4b2206a021026f5005277eb5bd0b1a9fd295

See more details on using hashes here.

File details

Details for the file cerememory-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: cerememory-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for cerememory-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 619b39b598fe3b3e6f95b6e3e75a5b8e3b2630294e36a5f80776558b2d5cb15f
MD5 5644a50a9c9ffd4d13c1d82df864ca4b
BLAKE2b-256 77e6699e10fb0ec33d9a0a37963e199c3e2d1ff5948a11a8bd87eb503736fc7f

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