Skip to main content

crow-memory

The one memory contract for crow. SQLAlchemy over a caller-supplied db_uri — sqlite by default, postgres a seam away. Shared by crow-cli (writes) and crow-mcp (read-only queries).

import crow_memory

uri = crow_memory.normalize_db_uri("~/.agents/crow/crow.db")  # or postgresql://...
crow_memory.create_database(uri)          # tables + FTS5 index (sqlite)
engine = crow_memory.get_engine(uri)

crow_memory.create_agent(engine, agent_id="s-1", session_id="s", agent_idx=1)
crow_memory.add_message(engine, "s-1", {"role": "user", "content": "hi"})
crow_memory.search_messages(engine, "hi")  # FTS5 bm25 (sqlite)

Design rules:

  • No config in this package. Apps resolve their own db_uri and pass it in. normalize_db_uri accepts a full URI or a plain path.
  • Images never live in the DB: add_message(..., images_dir=) extracts inline base64 to content-addressed files; load_messages(..., hydrate=True) swaps refs back to data URLs.
  • Read-only consumers (crow-mcp) use get_engine("sqlite:///file:<path>?mode=ro&uri=true").
  • Keyword search is SQLite FTS5. A future postgres backend needs its own search implementation behind search_messages; everything else is portable SQLAlchemy already.

Tests: uv --project . run pytest

Metadata

Release files for crow-memory 0.1.34

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

Source distribution (sdist)

Source distribution for crow-memory 0.1.34
File Size Uploaded Provenance Actions
crow_memory-0.1.34.tar.gz 14.3 kB Without provenance Details for crow_memory-0.1.34.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crow-memory 0.1.34
File Interpreter ABI Platform Actions
crow_memory-0.1.34-py3-none-any.whl Python 3 none any Details for crow_memory-0.1.34-py3-none-any.whl

Total release size: 20.7 kB

Release files / crow_memory-0.1.34.tar.gz

Download URL crow_memory-0.1.34.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aaf59b073c985e5832ce2ac735aad16f522c31af8caa240c1a16318e44ccd4f0
BLAKE2b-256 checksum
How to use checksums
9e8a348914155f87998f13b625bc95b2dbc44ed055334138d80f9e05bd4f83c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / crow_memory-0.1.34-py3-none-any.whl

Download URL crow_memory-0.1.34-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8105f597a9198372ff4d0a3e3e4abccdf5787f0f43c14d8d06b00560633ab5fb
BLAKE2b-256 checksum
How to use checksums
9daa4fcaf6882dccb2dfd8d367c6d97604e38ec966ce0916d19c07e62a146149
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for crow-memory 0.1.34

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.1.34 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