Skip to main content

Arrow-based artifact handlers for Lazyscribe

Project description

License PyPI PyPI - Python Version codecov

Arrow-based artifact handling for lazyscribe

lazyscribe-arrow is a lightweight package that adds the following artifact handlers for lazyscribe:

  • csv

Any data structure that implements the Arrow PyCapsule Interface will be compatible with the handlers in this library. Popular compatible open source data structures include

  • pandas.DataFrame
  • polars.DataFrame
  • polars.LazyFrame

Installation

Python 3.10 and above is required. use pip to install:

$ python -m pip install lazyscribe-arrow

Usage

To use this library, simply log an artifact to a lazyscribe experiment or repository with

  • handler="csv" for a CSV output
import pyarrow as pa
from lazyscribe import Project

project = Project("project.json", mode="w")
with project.log("My experiment") as exp:
    data = pa.Table.from_arrays([[0, 1, 2]], names=["a"])
    exp.log_artifact(name="data", value=data, handler="csv")

project.save()

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

lazyscribe_arrow-0.2.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

lazyscribe_arrow-0.2.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file lazyscribe_arrow-0.2.1.tar.gz.

File metadata

  • Download URL: lazyscribe_arrow-0.2.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for lazyscribe_arrow-0.2.1.tar.gz
Algorithm Hash digest
SHA256 90c954f05d04ddcd5488c3cb30205be3e140940d948718fdfb5a5ee5fb94e458
MD5 bad40446332667d9886897c575e3fd89
BLAKE2b-256 a5a52b414946adb61623ac3d2839eb78176fb4cfce3c32f9bad43605674b7770

See more details on using hashes here.

File details

Details for the file lazyscribe_arrow-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lazyscribe_arrow-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60f413a023fadeaf7d005a19b0c75263b4e4cfbf5edf9c72b438f0a7824b1049
MD5 74cd8a812f585ae6a75d2f4cd0543d39
BLAKE2b-256 28db351edc0c95ea9fbcb786373cb4063af83b0e602fc28f148b612fb6d3ace2

See more details on using hashes here.

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