Metadata-Version: 2.4
Name: quilt
Version: 9.0.0a2
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: 3
Summary: The quilt-rs engine for Python.
Home-Page: https://www.quiltdata.com
Author-email: quiltdata <support@quilt.bio>
License-Expression: Apache-2.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://quilt.bio/
Project-URL: Repository, https://github.com/quiltdata/deployment

# quilt (quilt-py)

The Python binding of quilt-rs, published to PyPI as `quilt`. It is built
with [maturin](https://www.maturin.rs/) as one abi3 wheel per platform, for
CPython 3.10 and later, by `.github/workflows/quilt-engine-release.yml`, which
the SDK release (`quilt-releases.yml`) calls before quilt3's release. Its
version is quilt-rs's.

It exposes one call for now, so the SDK release builds, tests and publishes
a real engine end to end:

```python
import quilt

quilt.__version__                    # quilt-rs's version, as PEP 440 spells it
quilt.hash_file("data.csv")          # {"type": "sha2-256-chunked", "value": "...", "size": 1234}
quilt.hash_file("data.csv", "CRC64NVME")
```

`hash_file` hashes a local file as a Quilt manifest records it (`type` and
`value`), with quilt-rs's own code, and gives its size. `type` is one of
`sha2-256-chunked` (the default), `SHA256` or `CRC64NVME`. A failure raises
`quilt.QuiltError`.

The dataspace calls of `quilt` 3.0.0rc1 are not here: quilt-rs on `main` has
no dataspaces (#3540), and they come back with them.

## Development

```sh
cd quilt-rs/quilt-py
cargo test -p quilt-py                 # the engine layer, without Python
uv venv && uv pip install maturin pytest
uv run maturin develop && uv run pytest tests
```

