Skip to main content

Polars IO

Project description

Polars IO utility library

Helpers to make it easier to read and write Hive partitioned parquet dataset with Polars.

Dataset

Example of use of polario.dataset.HiveDataset

from polario.dataset import HiveDataset
import polars as pl
df = pl.from_dicts(
        [
            {"p1": 1, "v": 1},
            {"p1": 2, "v": 1},
        ]
    )

ds = HiveDataset("file:///tmp/", partition_columns=["p1"])

ds.write(df)

for partition_df in ds.read_partitions():
    print(partition_df)

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

polario-0.2.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

polario-0.2.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file polario-0.2.0.tar.gz.

File metadata

  • Download URL: polario-0.2.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for polario-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e488d12bdfa7feb638d8a687843ce524b77e8e117203b3e9172a756d3e13eb5c
MD5 582ceffc4d270e566a7e952c0b54307c
BLAKE2b-256 20ec4f273fe1026faaded6ca1ee7f89b70106d55dcbefabc30854449d25dafcb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polario-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for polario-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e78574f295acce4964f1176c0548374ee048f227304e326f851f0ee4b816e199
MD5 485db7cf42860d1cf2e8ef6c776d3c93
BLAKE2b-256 c6b6daf95a86dc03e2eea4863a2136fdb530b755e928d18786b7917ddd9fd8ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page