Metadata-Version: 2.4
Name: memoryfn
Version: 0.0.1
Summary: Self-hostable AI memory system for agents and applications
Author: 21n
License-Expression: MIT
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: openai>=1.0.0
Requires-Dist: pgvector>=0.2.0
Requires-Dist: psycopg[binary]>=3.1
Requires-Dist: pydantic>=2.6
Requires-Dist: tenacity>=8.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.3.0; extra == 'dev'
Description-Content-Type: text/markdown

# MemoryFn Python SDK

> Self-hostable AI memory system for agents and applications

## Installation

```bash
pip install memoryfn
```

## Usage

```python
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())
```
