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

🚧 Pre-release — repository scaffold while we port the converter from Java. The first published release will be 0.8.0 to align with lastra-java.

Install (planned)

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.0.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.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lastra_convert-0.8.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2ba27c087393d4a56b0d694b07f03a3e2bd196a15443dab02ccb12024a59d725
MD5 404acccc1ccc056d10de78058cc56251
BLAKE2b-256 513e69af31d0a0356ac0e2ac3d9cdec59c013c93da3e30fd1efcba9fc3ce8457

See more details on using hashes here.

Provenance

The following attestation bundles were made for lastra_convert-0.8.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: lastra_convert-0.8.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce293c57ccc7c7a1eef23c0f2dfda80e4ec6ec57deb9e6c8d3d0347d79f6379c
MD5 f12ebd3207aad09e1603fdccc304cd3c
BLAKE2b-256 710cf34471cbc94fd82f0d584603dcf679c5608ddda0c33fa21b11464159adc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for lastra_convert-0.8.0-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