Metadata-Version: 2.4
Name: pi-py-storage-sqlite
Version: 0.83.0
Summary: Python port of @earendil-works/pi-storage-sqlite-node — SQLite session storage backend
Project-URL: Homepage, https://github.com/encyc/pi-py
Project-URL: Repository, https://github.com/encyc/pi-py
Project-URL: Issues, https://github.com/encyc/pi-py/issues
Author: Justin Gao
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Requires-Dist: pi-py-agent-core<0.84,>=0.83.0
Requires-Dist: pi-py-ai<0.84,>=0.83.0
Description-Content-Type: text/markdown

# pi-storage-sqlite

Python port of [@earendil-works/pi-storage-sqlite-node](https://github.com/earendil-works/pi) — SQLite session storage backend.

## Install

```bash
pip install pi-storage-sqlite
```

## Quick Start

```python
from pi_storage_sqlite import SqliteSessionRepo
from pi_agent_core import Session

repo = SqliteSessionRepo("sessions.db")
sid, storage = repo.create(cwd="/project")
session = Session(storage)
session.append_message(UserMessage(content="hello"))
# ... agent interaction ...
repo.close()
```

## Links

- [GitHub](https://github.com/encyc/pi-py) | [Issues](https://github.com/encyc/pi-py/issues)
- [PORTING.md](./PORTING.md) — deviations from upstream
