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 Distributions

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

Built Distribution

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

lazyscribe_arrow-0.2.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for lazyscribe_arrow-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a7ca303ef1d84395d4887278390f2e655955cb5d8010c9331befdf6afc54e7a
MD5 fff1d1c338338c9dcffa0000cffc51a3
BLAKE2b-256 0094ba2184735c91f5a6cfad512206f8e84e63d6e300fac840b701e4ff845737

See more details on using hashes here.

Provenance

The following attestation bundles were made for lazyscribe_arrow-0.2.0-py3-none-any.whl:

Publisher: publish-package.yml on lazyscribe/lazyscribe-arrow

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