Skip to main content

MemoryFn Python SDK

Self-hostable AI memory system for agents and applications

Installation

pip install memoryfn

Usage

import asyncio
from memoryfn import MemoryFn, Config

async def main():
    memory = MemoryFn(Config(
        storage_url="postgresql://user:pass@localhost:5432/memoryfn",
        openai_api_key="sk-..."
    ))

    # Add memory
    await memory.add(
        content="User prefers dark mode",
        container_tags=["user:alice"],
        type="profile_static"
    )

    # Search
    results = await memory.search(
        q="preferences",
        container_tags=["user:alice"]
    )
    
    print(results)

if __name__ == "__main__":
    asyncio.run(main())

Metadata

Release files for memoryfn 0.0.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 memoryfn 0.0.1
File Size Uploaded Provenance Actions
memoryfn-0.0.1.tar.gz 5.2 kB Without provenance Details for memoryfn-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / memoryfn-0.0.1.tar.gz

Download URL memoryfn-0.0.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5a026500df87904eab3031ae2a2e0dd3b9d414bbb899d4d7c9adc12b0b655877
BLAKE2b-256 checksum
How to use checksums
c2b759fd68d967b5e247fe917aac390a4329b462df814f08edd83c785c372c95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / memoryfn-0.0.1-py3-none-any.whl

Download URL memoryfn-0.0.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2479b5fd3fd777c2b4c12b0489adbf8b75b744aa3b6847fc7937ad8876edc800
BLAKE2b-256 checksum
How to use checksums
bbd9e6c43568ffa79526853dde16dbe1499aab06806937ff13ed4bbd20ebf639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for memoryfn 0.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.0.1 This release

2 release files No 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