Skip to main content

Memind Python Client

Official Python client for the Memind memory engine API.

Installation

pip install memind

Synchronous Usage

from memind import MemindClient, Message, Strategy
from memind.types import ConversationContent

with MemindClient(base_url="http://localhost:8080") as client:
    health = client.health()

    client.memory.extract(
        user_id="user-1",
        agent_id="agent-1",
        raw_content=ConversationContent(messages=[Message.user("I like coffee")]),
    )

    client.memory.commit(user_id="user-1", agent_id="agent-1")

    result = client.memory.retrieve(
        user_id="user-1",
        agent_id="agent-1",
        query="What does the user like?",
        strategy=Strategy.SIMPLE,
        trace=True,
    )

Asynchronous Usage

from memind import AsyncMemindClient, Strategy

async with AsyncMemindClient(base_url="http://localhost:8080") as client:
    result = await client.memory.retrieve(
        user_id="user-1",
        agent_id="agent-1",
        query="What does the user like?",
        strategy=Strategy.DEEP,
    )

Configuration

Configuration precedence:

  1. Constructor arguments
  2. Environment variables: MEMIND_BASE_URL, MEMIND_API_TOKEN
  3. Defaults: connect timeout 5s, read timeout 30s, max retries 2

base_url is required. api_token is optional; when omitted no Authorization header is sent.

Development

pip install -e ".[dev]"
ruff format .
ruff check .
mypy src
pytest --cov=memind --cov-fail-under=90 -q
python -m build
twine check dist/*

Metadata

Release files for memind 0.2.0

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

Source distribution (sdist)

Source distribution for memind 0.2.0
File Size Uploaded Provenance Actions
memind-0.2.0.tar.gz 18.5 kB With provenance Details for memind-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for memind 0.2.0
File Interpreter ABI Platform Actions
memind-0.2.0-py3-none-any.whl Python 3 none any Details for memind-0.2.0-py3-none-any.whl

Total release size: 42.4 kB

Release files / memind-0.2.0.tar.gz

Download URL memind-0.2.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c3a8e603e3691cd090e09409f81c45d60c0a1a821d7b5d6f0cedf19a972f58f2
BLAKE2b-256 checksum
How to use checksums
0ddccdd61055659905c2d749633baadb626654b8cadf61e7c82ea26836ce74e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 10, 2026.

Transparency log

Release files / memind-0.2.0-py3-none-any.whl

Download URL memind-0.2.0-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b85a01ae8dde670bcf271cd0ccd1b7059e43e68ec29350dad1bc4400f1ee80f
BLAKE2b-256 checksum
How to use checksums
45cf9fe75cf4634e19874708acc7dde6c9a188003e646fcd460a23adfd338366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 10, 2026.

Transparency log

Security for memind 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for memind-0.2.0.tar.gz

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 May 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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