Skip to main content

polign-recall

A Python client for Recall's typed, correctable agent memory. Requires Python 3.10+.

pip install polign-recall

That is the whole install. pip also brings the polign_db package, which holds the polign CLI and polign-server binaries for Linux, macOS and Windows, so there is nothing else to download.

from polign_recall import Client

with Client(local_dir="./recall-data") as memory:
    memory.remember("user", "prefers_editor", "vim")
    changed = memory.remember("user", "prefers_editor", "neovim")
    print(memory.recall("user", "prefers_editor")[0].value)  # neovim
    print(memory.history("user", "prefers_editor"))  # both statements
    memory.forget("user", "prefers_editor", "neovim")

local_dir keeps the database on this machine. The first client to open the directory starts a polign-server for it in the background, listening on localhost only and protected by a key stored in the directory. Later clients, including ones in other processes, share that server. It keeps running after your program exits; its process id is in runtime.json and its log in server.log, both inside the directory. Managed local databases work on Linux and macOS.

To use a server you run yourself, leave local_dir out and set POLIGN_URL, POLIGN_API_KEY, and POLIGN_COLLECTION in the environment, or pass env={...} to Client. With neither, the client connects to http://localhost:23000, where polign-server -store fs:./recall-data listens by default.

The client owns a long-lived polign mcp -memory-only -write subprocess and shares the Go implementation's validation and fold. Use write=False for a read-only connection. It runs the polign binary pip installed; on a platform without a polign_db wheel it runs polign from PATH (CLI v0.7.0+), and command=[...] overrides both.

remember(text=..., statements=[...]) accepts proposals from your agent's model; the client does not run a second model. Every statement must have subject, predicate, typed value, and evidence quoting the text exactly. Read predicates() to build your extractor prompt. No separate extraction tool is required.

recall(..., as_of=...) accepts an RFC3339 string or timezone-aware datetime. forget requires a typed value or explicit all=True; false and zero remain values. Forgetting retracts a belief and retains its historical events.

Errors raise RecallError with a code and, for a failed extraction batch, any reported partial results. Calls are serialized, timeout after 120 seconds by default, and never automatically retry writes. A timeout closes the transport; inspect history using a new client before retrying an uncertain write.

Release files for polign-recall 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polign-recall 0.3.1
File Size Uploaded
polign_recall-0.3.1.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polign-recall 0.3.1
File Interpreter ABI Platform
polign_recall-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.4 kB

Release files / polign_recall-0.3.1.tar.gz

Download URL polign_recall-0.3.1.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4d19720fa7a32d6965b7ae6021c5e306a01c944d31a8824c3a83b24f5eba3680
BLAKE2b-256 checksum
How to use checksums
085a8fa25cf7ce685307ef0d8b03cb725f1d143b511eed3ae57c6d9806e770a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / polign_recall-0.3.1-py3-none-any.whl

Download URL polign_recall-0.3.1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e37361a759bd201a8c80d99d95998a6ecb0c9247fdbd6cea7144e5e4261b403
BLAKE2b-256 checksum
How to use checksums
a18bfb356a120dfc1d1616fc1ef1e0d2ffc62309860f8a5d0237b94ca57fc2a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page