Skip to main content

commonmeta-rs (Python bindings)

PyO3 bindings exposing commonmeta-rs's list-command batch functions to Python: VRAIX daily-dump fetch with local caching, lossless Parquet read/write, and batched archive rendering. Records cross the FFI boundary as plain JSON-shaped dicts — the same shape commonmeta-py's own readers and writers already produce and consume.

Install

uv pip install commonmeta-rs

Requires CPython 3.14 or newer. The wheels are built against the stable ABI (abi3-py314), so one wheel per platform also covers later 3.x releases. commonmeta-py itself keeps a 3.9 floor; only this backend needs 3.14.

Development

The interpreter must be 3.14+, matching requires-python; an older venv fails to build rather than falling back.

uv venv --python 3.14 .venv
uv pip install --python .venv/bin/python maturin pytest
source .venv/bin/activate
maturin develop
pytest tests/

Release

Releases are published by hand. PyPI trusted publishing only issues OIDC identities to GitHub, GitLab, Google Cloud and ActiveState, and this repo lives on Codeberg, so CI cannot authenticate to PyPI — the workflow builds and tests wheels only.

The version comes from [workspace.package] in the root Cargo.toml and is shared with the commonmeta crate, so a wheel names the release it wraps. Bump it there, not here.

Build one wheel per platform plus the sdist, then publish. Both wheels build on the host — no Docker. The macOS wheel is a native build; the Linux manylinux wheel cross-compiles with zig as the C cross-linker (maturin --zig). All commands are run from python/.

rm -rf dist

# One-time: the Linux cross target and zig (a pip package, no system install).
rustup target add x86_64-unknown-linux-gnu
uv pip install --python .venv/bin/python ziglang

# macOS (native — arm64 on Apple silicon)
maturin build --release --out dist

# Linux (manylinux2014 x86_64), cross-compiled with zig — no Docker, no emulation.
maturin build --release --out dist --target x86_64-unknown-linux-gnu --zig

# Source distribution (lets other platforms build from source as a fallback)
maturin sdist --out dist

uv publish --token "$PYPI_TOKEN" dist/*

Publishing from one machine uploads only the wheels present in dist/; any platform without a wheel falls back to building from the sdist. To ship binaries for more platforms (Windows, Intel macOS, Linux aarch64), add the matching maturin build --target … invocations or collect the wheels-* artifacts from the CI workflow into dist/ first.

API

  • fetch_vraix(source, date, input_path=None, limit=None, offset=0, cache_ttl_days=30) -> list[dict] Fetch records from a VRAIX daily dump (source is "crossref" or "datacite"). With input_path, reads a local SQLite file directly (no network); otherwise downloads {source}-{date}.sqlite3.zst from metadata.vraix.org, caching it locally for cache_ttl_days.
  • write_parquet(records: list[dict]) -> bytes Write records as a single lossless Parquet file.
  • read_parquet(data: bytes) -> list[dict] Read records back from Parquet bytes written by write_parquet.
  • write_archive(records: list[dict], to: str, base_name: str, batch_size=100_000) -> list[tuple[str, bytes]] Render records to to format, split into batches of at most batch_size records, returned as (entry_name, bytes) pairs ready to pack into a zip/tar archive.
  • convert(from_: str, to: str, input: str) -> bytes Convert a single record between formats.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

commonmeta_rs-0.9.66.tar.gz (794.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

commonmeta_rs-0.9.66-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.7 MB view details)

Uploaded CPython 3.14+manylinux: glibc 2.17+ x86-64

commonmeta_rs-0.9.66-cp314-abi3-macosx_11_0_arm64.whl (13.7 MB view details)

Uploaded CPython 3.14+macOS 11.0+ ARM64

File details

Details for the file commonmeta_rs-0.9.66.tar.gz.

File metadata

  • Download URL: commonmeta_rs-0.9.66.tar.gz
  • Upload date:
  • Size: 794.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for commonmeta_rs-0.9.66.tar.gz
Algorithm Hash digest
SHA256 1f09d38310d3978fc0c44f9d755a7bf65f5ce39f6ea33620693bd1b5126a2bf1
MD5 b8756667b353fcb55efe1b715d535c3d
BLAKE2b-256 36384b9b3e566a6c21bee98dff08d8611d5247e89d8c90f9e9c94406f0908783

See more details on using hashes here.

File details

Details for the file commonmeta_rs-0.9.66-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: commonmeta_rs-0.9.66-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 13.7 MB
  • Tags: CPython 3.14+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for commonmeta_rs-0.9.66-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1a3fc1f23dfe42f070f9c934d9c0235a65e1ac35d2cf4ddea2601339d222c40a
MD5 c6b13635d364194b43ab1a24b443bf9c
BLAKE2b-256 8e631a6ee14fc67d0c917d9498eb8b1e1e1c82fc479c0536d5502f0a9bc8d333

See more details on using hashes here.

File details

Details for the file commonmeta_rs-0.9.66-cp314-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: commonmeta_rs-0.9.66-cp314-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 13.7 MB
  • Tags: CPython 3.14+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for commonmeta_rs-0.9.66-cp314-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e12a23f992a63231734b115b008f863f9bd723c59ba1ee7fa1f58f60680b3e4
MD5 885d642b0c3fdfefd5f0f32480c2026c
BLAKE2b-256 deba2453e9b6d6e17094e324f3759c82a5d28109b355a5090bf7e98e348fa140

See more details on using hashes here.

Release history Release notifications | RSS feed

0.9.84

2 files

0.9.83

2 files

0.9.82

3 files

0.9.81

3 files

0.9.80

3 files

0.9.79

3 files

0.9.78

3 files

0.9.77

3 files

0.9.76

3 files

0.9.75

3 files

0.9.74

3 files

0.9.73

3 files

0.9.72

3 files

0.9.71

3 files

0.9.70

3 files

0.9.69

3 files

0.9.68

3 files

0.9.67

3 files

This release

0.9.66 This release

3 files

0.9.65

3 files

0.9.63

3 files

0.9.62

3 files

0.9.61

3 files

0.9.60

3 files

0.9.59

3 files

0.9.58

3 files

0.9.57

3 files

0.9.56

3 files

0.9.55

3 files

0.9.52

3 files

0.9.51

3 files

0.9.50

3 files

0.9.48

3 files

0.9.46

3 files

0.9.45

3 files

0.9.44

3 files

0.9.43

3 files

0.9.42

3 files

0.9.41

3 files

0.9.40

3 files

0.9.38

3 files

0.9.37

2 files

0.9.36

3 files

0.9.35

3 files

0.9.34

3 files

0.9.33

3 files

0.9.32

3 files

0.9.31

3 files

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