Skip to main content

woolly-ai

Python client for Woolly, the local memory for your AI tools.

Woolly keeps memories about the user on their own computer, keeps facts current, and shares them with every AI tool. This package lets your Python app use that memory.

Install

pip install woolly-ai

You also need Woolly running on the same computer:

curl -fsSL https://usewoolly.com/install.sh | sh
woolly serve

Use it

import woolly

woolly.remember("Moved to Denver in October", key="user.location")
woolly.remember("I prefer short answers")

for m in woolly.recall("where do I live?"):
    print(m.content)

Add memory to any AI app

woolly.context() returns a short note of relevant memories, ready to add to a prompt:

import woolly
from openai import OpenAI

client = OpenAI()
question = "Any good hikes near me this weekend?"

response = client.chat.completions.create(
    model="gpt-4.1-mini",
    messages=[
        {"role": "system", "content": "You are a helpful assistant.\n\n" + woolly.context(question)},
        {"role": "user", "content": question},
    ],
)

It works the same with Anthropic, Ollama or any other model.

More

from woolly import Woolly

w = Woolly()                      # finds the server and token automatically
r = w.remember("Prefers spaces", key="code.indent", source="agent")
if r.saved_as_conflict:           # it disagrees with something the user said
    print("Needs review:", r.conflicts_with.content)

w.profile().markdown              # a summary of everything known
w.forget(memory_id)               # moves it to the trash
w.restore(memory_id)              # brings it back

Woolly refuses passwords, API keys and instruction-like text that doesn't come from the user. Those calls raise woolly.WoollyError.

Docs: usewoolly.com/docs/python

Metadata

Release files for woolly-ai 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 woolly-ai 0.2.0
File Size Uploaded Provenance Actions
woolly_ai-0.2.0.tar.gz 6.8 kB Without provenance Details for woolly_ai-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.9 kB

Release files / woolly_ai-0.2.0.tar.gz

Download URL woolly_ai-0.2.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
47cac454e2d59e1074fdfc3287a443e222c3a1da08a92b98065d21aa89ce59ea
BLAKE2b-256 checksum
How to use checksums
6aca85d972523de763ffba51b7c9c13bb1a09b896dfc7a7856256ab8febd263a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

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

Download URL woolly_ai-0.2.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b292524dc75985f736da4d6071dd404fb231ed5117c1d12ce74e3f127e1f2b72
BLAKE2b-256 checksum
How to use checksums
1d188950a80972212f9e58c98616ea921002eb7aa486ccf97092643745a0e666
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for woolly-ai 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.

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.

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