Metadata-Version: 2.4
Name: pybodn
Version: 0.0.1
Summary: A foundational memory engine for intelligent systems.
Keywords: memory,agent-memory,ai-memory,index,retrieval
Author: BALDEJ1
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.12
Project-URL: Homepage, https://github.com/BALDEJ1/pybodn
Project-URL: Repository, https://github.com/BALDEJ1/pybodn
Project-URL: Issues, https://github.com/BALDEJ1/pybodn/issues
Project-URL: Changelog, https://github.com/BALDEJ1/pybodn/blob/main/CHANGELOG.md
Description-Content-Type: text/markdown

# PyBodn

A foundational memory engine for intelligent systems.

> **Status: early alpha (0.0.x).** The API will change between releases. Not ready for production use.

PyBodn aims to be a small, dependable memory library for Python applications and AI agents:
structured records, fast in-process indexes, local persistence and pluggable retrieval, without
tying you to a specific LLM, embedding provider or database.

Today it ships one building block: `HashIndex`, an exact-match in-process index.

## Install

```bash
pip install pybodn
```

Requires Python 3.12+. No runtime dependencies.

## Example

```python
from pybodn.indexes import HashIndex

index: HashIndex[str, str] = HashIndex()
index.set("user:123:language", "record_001")

index.get("user:123:language")  # "record_001"
index.get("missing")  # None
"user:123:language" in index  # True
index.delete("user:123:language")  # True
index.delete("user:123:language")  # False, deleting twice is safe
```

Keys can be any hashable value, for example a `(namespace, key)` tuple.

## Development

```bash
uv sync
uv run ruff check
uv run ruff format --check
uv run mypy
uv run coverage run -m pytest
uv run coverage report
```

## License

[MIT](LICENSE)
