Skip to main content

oxyz

test PyPI Documentation Python 3.12+ SPEC 0

Fast, schema-aware extxyz reading and writing for atomistic simulation and machine learning. A Rust parser behind a typed Python API, with NumPy arrays as the native numeric output.

  • Array-native frames and batches: stored file keys, atom-major concatenation, source frame indices and streaming batch budgets.
  • Observed and declared schemas: inspect field/type drift, validate a contract, or project selected fields with explicit fills.
  • Typed records and unions: named fields, dense batches, presence masks and concrete member types for heterogeneous datasets.
  • Optional scientific targets: ASE, metatomic and torch-sim converters; local compressed files and remote object-storage/Hub reads.
  • Measured performance: serial/parallel and reference-reader comparisons, with workloads and environment recorded in the benchmark results.

Install

pip install oxyz
pip install "oxyz[ase]"
pip install "oxyz[metatomic]"
pip install "oxyz[torch-sim]"
pip install "oxyz[s3]"

The base runtime requires Python ≥3.12, NumPy ≥2 and PyYAML ≥6. Extras add ase.Atoms, metatomic.torch.System, torch_sim.SimState, or remote reads (including HuggingFace) respectively; optional libraries are imported when used. Wheels cover Linux, macOS and Windows, including free-threaded CPython 3.14 (3.14t), on which oxyz leaves the GIL disabled. The support window follows SPEC 0.

Installing also provides oxyz scan, oxyz check and oxyz freeze. uvx oxyz scan PATH runs the released CLI without a persistent installation. For checkout setup and uv-driven Rust rebuilds, see development.

Read, inspect and write

This example creates its input in a temporary directory and verifies the values after writing. It needs no downloaded dataset or optional library.

from pathlib import Path
from tempfile import TemporaryDirectory

import oxyz

with TemporaryDirectory() as directory:
    source = Path(directory) / "sample.extxyz"
    source.write_text(
        "1\nProperties=species:S:1:pos:R:3 energy=-1.5\nH 0.25 0 0\n"
        "1\nProperties=species:S:1:pos:R:3 energy=-2.5\nHe 1.25 0 0\n"
    )
    frames = oxyz.read(source)
    assert [frame.n_atoms for frame in frames] == [1, 1]
    assert frames[0].columns["species"] == ["H"]
    assert frames[0].positions.tolist() == [[0.25, 0.0, 0.0]]

    batch = oxyz.read_batch(source)
    assert batch.ptr.tolist() == [0, 1, 2]
    assert batch.frame_indices.tolist() == [0, 1]
    assert batch.metadata["energy"].tolist() == [-1.5, -2.5]
    assert oxyz.infer_schema(source).is_consistent

    output = Path(directory) / "roundtrip.extxyz.gz"
    oxyz.write(output, frames)
    restored = oxyz.read(output)
    assert restored == frames
    assert restored[1].positions.tolist() == [[1.25, 0.0, 0.0]]
    assert restored[1].metadata["energy"] == -2.5

read(path, 0) returns one frame; the default returns a list. Use iread for frame iteration and iread_batch for bounded batches. Plain batches require compatible fields; projection or typed record batches handle optional data under explicit contracts. Writing has codec and value-representation limits: check the writing guide before replacing source data.

Documentation

The development documentation tracks main. The guides below link to repository Markdown. Local preview instructions are in the contributor guide.

Task Guide
First read/inspect/write workflow Getting started
Index grammar, partial reads and iteration Reading and selecting
Dense layout, budgets and provenance Batching and streaming
Encoding, incremental output and restrictions Writing
Infer, validate, project, omit and freeze Schemas and projection
Field declarations, binding and typing limits Typed records
Optional fields, unions, presence and tags Mixed datasets
Compression, archive members, S3 and HuggingFace Compressed and remote
ASE, metatomic and torch-sim conventions Converters
Inspect, check and freeze from the shell Command line

For lookup, see the API reference, data model, schema concepts and storage model. Format, ASE compatibility and errors describe grammar, deliberate divergences and failure context. Self-contained scripts and bundled inputs live in examples/.

Performance and development

The saved results contain timings, scaling figures, fixture definitions and environment details. Memory measurements are recorded separately. These are workload-specific results, not universal speed-up or memory guarantees; real-dataset rows require the dataset. The benchmark entry point and performance guide explain reproduction and comparison limits.

The architecture map routes changes across Rust core, PyO3 binding and Python policy. Testing covers parser properties, serial/parallel parity, converter golden tests and isolated wheel environments. Documentation authoring explains executable examples and local preview.

Public names and documented command-line options follow Semantic Versioning under the release policy. Underscore-prefixed modules are implementation details.

Licence

MIT or Apache-2.0, at your option.

Metadata

Release files for oxyz 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oxyz 1.5.0
File Size Uploaded Provenance Actions
oxyz-1.5.0.tar.gz 210.7 kB With provenance Details for oxyz-1.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for oxyz 1.5.0
File Actions
oxyz-1.5.0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for oxyz-1.5.0-cp314-cp314t-win_amd64.whl
oxyz-1.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details for oxyz-1.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
oxyz-1.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details for oxyz-1.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
oxyz-1.5.0-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for oxyz-1.5.0-cp314-cp314t-macosx_11_0_arm64.whl
oxyz-1.5.0-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details for oxyz-1.5.0-cp314-cp314t-macosx_10_12_x86_64.whl
oxyz-1.5.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for oxyz-1.5.0-cp312-abi3-win_amd64.whl
oxyz-1.5.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for oxyz-1.5.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
oxyz-1.5.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for oxyz-1.5.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
oxyz-1.5.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for oxyz-1.5.0-cp312-abi3-macosx_11_0_arm64.whl
oxyz-1.5.0-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for oxyz-1.5.0-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 25.8 MB

Release files / oxyz-1.5.0.tar.gz

Download URL oxyz-1.5.0.tar.gz
Size 210.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4a3fa2222a85aabfdbd3075c8208624dc14973d15ca695b304e67b4aaf8f9920
BLAKE2b-256 checksum
How to use checksums
34ab8bd63f701edb567e68eb42c2c53fb72289d63d986b78871280d73dea4af6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp314-cp314t-win_amd64.whl

Download URL oxyz-1.5.0-cp314-cp314t-win_amd64.whl
Size 1.1 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
1d8c86386f8b913b628c581aac0fc10d448a69fdb880a7cf5d4f7bdf5c1b3584
BLAKE2b-256 checksum
How to use checksums
b09043552ffe08f1af41dfda3d2176d8a5b73781f05f6febdd375f6fff96afdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL oxyz-1.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5bb890da8aa7f79fc31b7337ee150b22cf3a9bce1533db98657eb5a1cc6ebe1a
BLAKE2b-256 checksum
How to use checksums
82eb39d96c8228d1a736640efb149b2b928206e87debffb1ba5698f1a10b2c6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL oxyz-1.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 4.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
22099aa58347b573ecda615fb49cb89f813b6ec8368abc5245a480d44aeb98dd
BLAKE2b-256 checksum
How to use checksums
f704b70d26998cebf766d19ab177faa7976d11a474b713a8c126a88d1bc54872
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL oxyz-1.5.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
174c2f1f0dd907a7e63d575229144c35d00db561cb9ec94d361fa2b0ef92e3aa
BLAKE2b-256 checksum
How to use checksums
492c25c05eb2681acac986f1a11d0cdea2e872bf7627e0bedd5dcc7259f91f37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL oxyz-1.5.0-cp314-cp314t-macosx_10_12_x86_64.whl
Size 1.3 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4601bf0d7b0966f947dd7174a6a5802b88f48ab68e36af6ce2972a10ed0a2e4f
BLAKE2b-256 checksum
How to use checksums
e19c59e6dd833eaad77c26bf91405e63d13c155071ff4ff171586e1d53c87809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp312-abi3-win_amd64.whl

Download URL oxyz-1.5.0-cp312-abi3-win_amd64.whl
Size 1.1 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e4e9914223bd974e5223d966a7ceda0840a627ae24705a23261b79626344a897
BLAKE2b-256 checksum
How to use checksums
3b682b9196f8a254eb4688ca9ec5607b295f6b44d9512f0eab6ad00c48494981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL oxyz-1.5.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.8 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
dce7bf59c803d5eae723ae27d1f6ae16f3aeabee11c41ad35b197ec945b4a85a
BLAKE2b-256 checksum
How to use checksums
b6afabe7408200e85ec56f9f006efe6db8c7bb8eb3da7b626c16d71f91613969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL oxyz-1.5.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 4.4 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
8e62832b9357de64fa8fd6dd48410b82beb92e7db76893ec673d8270ef564744
BLAKE2b-256 checksum
How to use checksums
1afedc8c1877606f705660ae94c9b2d7e540c6404aa830bc4e105d050ad5ab4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL oxyz-1.5.0-cp312-abi3-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c3a9de47535590495ba781e1a388596438d174f767cbf360cc5d0ce15db0ae9e
BLAKE2b-256 checksum
How to use checksums
b7adf179bd9ac12d2373f801956b4d481359d597c71feb64148728f5a54cdab2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / oxyz-1.5.0-cp312-abi3-macosx_10_12_x86_64.whl

Download URL oxyz-1.5.0-cp312-abi3-macosx_10_12_x86_64.whl
Size 1.3 MB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
cc6090d2bc6400dc101c2c3cac6d35e7837bb81812379ee576ade0a0c6e48d0f
BLAKE2b-256 checksum
How to use checksums
60fe20200b2e99a5738085ac0828a0d6f0646c3eddabd92b00e69234d41a5452
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for oxyz 1.5.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

All 11 files in this release have been uploaded with provenance metadata.

Select from 11 files

Attestations for oxyz-1.5.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 Nov 28, 2026.

Transparency log

SLSA Build Provenance Attestation

PyPI verified that this artifact, at this checksum, originated from the builder listed below.

Built by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page