LakeSoul Python Support
Native Writer
The native writer accepts PyArrow batches, tables, and record batch readers. It writes data files and returns their metadata; publishing those files to the LakeSoul metadata service is a separate operation.
import pyarrow as pa
from lakesoul.io import IOConfig, Writer
table = pa.table({"id": [1, 2], "value": ["a", "b"]})
config = IOConfig(
path="./output",
schema=table.schema,
format="parquet",
)
with Writer(config) as writer:
writer.write(table)
print(writer.result.files)
Ray Writer
Importing lakesoul.ray registers a Pythonic write method on Ray datasets. The
target LakeSoul table must already exist. Data files are written by Ray tasks,
then committed to LakeSoul metadata by the driver after every task succeeds.
import ray
import lakesoul.ray
dataset = ray.data.from_items(
[
{"id": 1, "value": "a"},
{"id": 2, "value": "b"},
]
)
dataset.write_lakesoul(
"target_table",
namespace="default",
format="parquet",
)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lakesoul-2.0.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: lakesoul-2.0.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 55.9 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c578d95c3f452036b21eea0ca6c8e4b91b7464cc58b2d77879298f1c8872aebc
|
|
| MD5 |
8fe4470366f7f12ac2f1de90699a0cbd
|
|
| BLAKE2b-256 |
1046e06514934b4f08ded9bb91e49a80b949360514cf05c352b7da7c4c74d5a2
|
Provenance
The following attestation bundles were made for lakesoul-2.0.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
python-ci.yml on lakesoul-io/LakeSoul
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lakesoul-2.0.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
c578d95c3f452036b21eea0ca6c8e4b91b7464cc58b2d77879298f1c8872aebc - Sigstore transparency entry: 2755165451
- Sigstore integration time:
-
Permalink:
lakesoul-io/LakeSoul@5dce835a9102852da4643900d8b9d4455a4874ef -
Branch / Tag:
refs/tags/py-v2.0.0 - Owner: https://github.com/lakesoul-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-ci.yml@5dce835a9102852da4643900d8b9d4455a4874ef -
Trigger Event:
push
-
Statement type: