Metadata-Version: 2.4
Name: funlib.persistence
Version: 0.9.0
Summary: Interfaces for data (arrays and graphs) and storage formats (databases and file formats)
Author-email: William Patton <pattonw@hhmi.org>, Jan Funke <funkej@hhmi.org>
License: MIT
Project-URL: Documentation, https://funkelab.github.io/funlib.persistence
Project-URL: Source, https://github.com/funkelab/funlib.persistence
Project-URL: Issues, https://github.com/funkelab/funlib.persistence/issues
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: zarr<4,>=3
Requires-Dist: iohub>=0.3.0a5
Requires-Dist: funlib.geometry>=0.3.0
Requires-Dist: networkx>=3.0.0
Requires-Dist: pymongo>=4.0.0
Requires-Dist: numpy>=2.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: dask>=2024.0.0
Requires-Dist: toml>=0.10.0
Requires-Dist: psycopg2-binary>=2.9.11
Dynamic: license-file

[![tests](https://github.com/funkelab/funlib.persistence/actions/workflows/tests.yaml/badge.svg)](https://github.com/funkelab/funlib.persistence/actions/workflows/tests.yaml)
[![lint](https://github.com/funkelab/funlib.persistence/actions/workflows/lint.yaml/badge.svg)](https://github.com/funkelab/funlib.persistence/actions/workflows/lint.yaml)
[![docs](https://github.com/funkelab/funlib.persistence/actions/workflows/docs.yaml/badge.svg)](https://funkelab.github.io/funlib.persistence)
[![publish](https://github.com/funkelab/funlib.persistence/actions/workflows/publish.yaml/badge.svg)](https://pypi.org/project/funlib.persistence/)

# funlib.persistence
Interfaces for data (arrays and graphs) and storage formats (databases and file formats)

**Documentation:** https://funkelab.github.io/funlib.persistence

## Install

```bash
pip install funlib.persistence    # or: uv add funlib.persistence
```

## Contributing

The commands below are the ones CI runs, so a green local run means a green PR.

```bash
git clone https://github.com/funkelab/funlib.persistence
cd funlib.persistence
uv sync                                             # Python, dependencies, dev tools (from uv.lock)
uv run pytest                                       # tests with coverage
uv run pytest --no-cov tests/<file>.py              # one file, without the coverage floor
uv run ruff check . && uv run ruff format --check . # lint and formatting
uv run ty check src tests                           # types
uv run --group docs sphinx-build -W docs/source docs/build/html   # docs
```

The graph-database tests need a PostgreSQL server (CI starts one as a service, `PGUSER=postgres`); they are skipped when none is reachable.

`uv.lock` pins the development environment; the `lock-upgrade` workflow refreshes it monthly and opens a pull request.
