Skip to main content

Python CLI to convert between Lastra and Parquet/CSV/Arrow. Mirror of QTSurfer/lastra-convert (Java).

Project description

Lastra

CI PyPI License

Python CLI to convert between Lastra and Parquet / CSV / Arrow.
Mirror of the Java lastra-convert tool.


Status

0.8.0 — published, scaffold only. The CLI entry points listed below are reserved on PyPI; full implementation lands in 0.9.

Install

pip install lastra-convert

Usage (planned CLI)

# Lastra → Parquet
lastra2parquet ticks.lastra ticks.parquet

# Parquet → Lastra (auto-pick best codec per column)
parquet2lastra ticks.parquet ticks.lastra --best

# CSV → Lastra (with explicit schema)
csv2lastra ticks.csv ticks.lastra --schema "ts:long:delta_varint,close:double:alp"

# Lastra → Arrow IPC
lastra2arrow ticks.lastra ticks.arrow

Library API (planned)

from lastra_convert import lastra_to_parquet, parquet_to_lastra

lastra_to_parquet("ticks.lastra", "ticks.parquet")
parquet_to_lastra("ticks.parquet", "ticks.lastra", best=True)

Reference implementation

This package mirrors QTSurfer/lastra-convert (Java, JVM CLI). Output is byte-equivalent for the same input + codec choices.

License

Copyright 2026 Wualabs LTD. Apache License 2.0 — see LICENSE.

Project details


Download files

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

Source Distribution

lastra_convert-0.8.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

lastra_convert-0.8.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file lastra_convert-0.8.1.tar.gz.

File metadata

  • Download URL: lastra_convert-0.8.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lastra_convert-0.8.1.tar.gz
Algorithm Hash digest
SHA256 213bee36fcaa17973732c218380f8737dc702bc568f6ad2642a2f5133c4aa2b8
MD5 b8038f4172d324d582443873dff1eb93
BLAKE2b-256 ea9d596875f48057810a717d468e72fc25361e35ce5c43b372c3200ed84924cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for lastra_convert-0.8.1.tar.gz:

Publisher: release.yml on QTSurfer/lastra-convert-py

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

File details

Details for the file lastra_convert-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: lastra_convert-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lastra_convert-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f33c589470d68b2bd67bd0b0c1d3999fdc6084161dec3ff1227fa2c8e694d75c
MD5 9bda57943eab6d880136e6ea6e3bffe8
BLAKE2b-256 9cebf87c08c5dee64ae6fd7166c64b3a0bce7f6c2794025a12b5227a07053b1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lastra_convert-0.8.1-py3-none-any.whl:

Publisher: release.yml on QTSurfer/lastra-convert-py

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