pytest-ditto-pyarrow
A pytest-ditto plugin for PyArrow Table snapshots.
Installation
pip install "pytest-ditto[pyarrow]"
Marks
@ditto.pyarrow.parquet@ditto.pyarrow.feather@ditto.pyarrow.csv
Each mark is shorthand for @ditto.record("<name>").
Use @ditto.pyarrow.parquet or @ditto.pyarrow.feather: CSV loses types
and can drop rows. See the format notes in the documentation.
Usage
import pyarrow as pa
import pyarrow.compute as pc
import ditto
import pytest
@pytest.fixture
def table() -> pa.Table:
return pa.table(
[
[1, 2, 3, 4],
[4.5, 5.2, 6.8, 3.5],
[7, 8.5, None, None],
[True, False, True, True],
["a", "b", "c", "x"],
],
names=list("abcde"),
)
def fn(x: pa.Table):
even_filter = pc.bit_wise_and(pc.field("a"), pc.scalar(1)) == pc.scalar(0)
return x.filter(even_filter)
@ditto.pyarrow.parquet
def test_fn_with_pyarrow_parquet_snapshot(snapshot, table):
result = fn(table)
assert result.equals(snapshot(result, key="filtered"))
Metadata
Release files for pytest-ditto-pyarrow 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_ditto_pyarrow-2.0.0.tar.gz | 3.9 kB | With provenance | Details for pytest_ditto_pyarrow-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_ditto_pyarrow-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_ditto_pyarrow-2.0.0-py3-none-any.whl |
Total release size: 7.5 kB
Release files / pytest_ditto_pyarrow-2.0.0.tar.gz
| Download URL | pytest_ditto_pyarrow-2.0.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c0ba8904e4d59a65a97386d6b00c832f2f34fccfc13e0dde79fcb205be41fda
|
|
BLAKE2b-256 checksum How to use checksums |
cf00f6f277d1d6b16b2c57dd82c504ed3bee5c56fa75103c6ca0f8946a6d0326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / pytest_ditto_pyarrow-2.0.0-py3-none-any.whl
| Download URL | pytest_ditto_pyarrow-2.0.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bebddf783abc10cca1d8b3d1c47c62383d4a6665f1b483e870f10dc283fe6bbb
|
|
BLAKE2b-256 checksum How to use checksums |
bb2e28a07e246f7dec8961d4bb733743447948d514ddef8011e0953b4b467c77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logSecurity for pytest-ditto-pyarrow 2.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pytest_ditto_pyarrow-2.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logA 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.