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.2.tar.gz (31.6 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.2-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cerememory-0.2.2.tar.gz
  • Upload date:
  • Size: 31.6 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.2.tar.gz
Algorithm Hash digest
SHA256 93cd3e83436b8548033291930c2c9b9160b5fc965ffdb21b7a0bc49a5ca5eb86
MD5 8cc750fd0b084c8f91cfe27a5407ace7
BLAKE2b-256 f6e6db54bc255d2a9733b0f03bc50bafdfca2053bd3fe66f6905aca3d18cdafc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cerememory-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 27.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3eadb124c2fd547b486c5e9c6699f7050a379ebe063387aad8758ca34ca40b89
MD5 4d6e4235049e5a13a9c35426e9a8884c
BLAKE2b-256 081b068c78431c23cccaa4fae3588cb7b942738bfa37e9db91034ed7cc5e9b12

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