Skip to main content

Rust-backed AGS4 reader/writer/validator — a fast, drop-in replacement for python-ags4 with a narwhals-native API

Project description

laterite — a Rust-backed AGS4 reader, writer and validator

laterite

A Rust-backed AGS4 reader, writer and validator for Python.

A faster drop-in for python-ags4's AGS4 module (1.2.0 parity-pinned, 122/131 tests) — swap from python_ags4 import AGS4 for from laterite import compat as AGS4. Native API returns narwhals frames over Polars, so you can target polars / pandas / pyarrow without laterite picking for you.

ci rust cov python cov web cov PyPI Python versions License: MIT

pip install laterite                  # base AGS4 (polars + narwhals)
pip install "laterite[compat]"        # + pandas (python-ags4 drop-in)
pip install "laterite[ags5]"          # + experimental .ags5db surface
import laterite

result = laterite.validate("delivery.ags")
for rule, findings in result.by_rule().items():
    print(rule, len(findings))

# python-ags4 drop-in
from laterite import compat as AGS4
tables, _ = AGS4.AGS4_to_dataframe("delivery.ags")

# Or a typed view of the file
from laterite.ags4 import read_typed
proj = read_typed("delivery.ags")

The validator engine is clean-room from the AGS4 spec. python-ags4 is LGPL-3.0; the clean-room separation lets laterite ship under MIT.

Requires Python ≥ 3.12.

Full docs, parity catalogue and observations at https://github.com/niko86/laterite.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

laterite-0.4.0-cp312-abi3-win_amd64.whl (5.9 MB view details)

Uploaded CPython 3.12+Windows x86-64

laterite-0.4.0-cp312-abi3-manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.12+

laterite-0.4.0-cp312-abi3-macosx_11_0_arm64.whl (5.1 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file laterite-0.4.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: laterite-0.4.0-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 5.9 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for laterite-0.4.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 17de1adf7497c78ed1d8b2282dd3f82793c38cd2ed5c757a6ac8d6b2c464379f
MD5 6472f7bf15fd54ab0e66e726be0459fb
BLAKE2b-256 e76da2ac1c0a48ea0617e6c24e00a417c751c1cca8abcc737e50fc510bb9188c

See more details on using hashes here.

Provenance

The following attestation bundles were made for laterite-0.4.0-cp312-abi3-win_amd64.whl:

Publisher: release.yml on niko86/laterite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file laterite-0.4.0-cp312-abi3-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for laterite-0.4.0-cp312-abi3-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef7ac4ea67ea04484da90ff7b8cec291da6c41380a42c06c3360054940fe4f4f
MD5 1f73d91d7fbb3aa11fc4558316f7ec46
BLAKE2b-256 8dc96dd0bacadc05a3439dda0ef158b2b542fe9b0f1179110bfc668da6f4ab13

See more details on using hashes here.

Provenance

The following attestation bundles were made for laterite-0.4.0-cp312-abi3-manylinux2014_x86_64.whl:

Publisher: release.yml on niko86/laterite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file laterite-0.4.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for laterite-0.4.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 077a02c8f56daed1934df1bf9a1864e216540442a8eef6b9df4708d4544871a1
MD5 e53627a09bd9b7480bdf9037d3072eb0
BLAKE2b-256 ad5ef3b3e3fb2d3aaf1d898cee66eda1ac6a81386ed2b83b79b7531bbcd6fb9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for laterite-0.4.0-cp312-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on niko86/laterite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page