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.

It is meant to be a library to deal with datasets easily, but also contains a commandline interface which allows you to inspect parquet files and datasets more easily.

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.3.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

polario-0.2.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for polario-0.2.3.tar.gz
Algorithm Hash digest
SHA256 5ea115df581a36874c406fb50b06062dcb2fb443fc588fb2f3e19aa22e003f18
MD5 0b8e253f84e0aa053439392b94b4eee5
BLAKE2b-256 9b3153935d61723baa8caca1b548b9ddd028ca695e2661a2f328af79078c59eb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for polario-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3e39986ff0efaf0cdc4201e1c155eba6ef675867205be2b5f81be2496cebdcb4
MD5 59e51aacbdca0d6cd7abbec2b8c8cc0b
BLAKE2b-256 4c44b205efe0e7fd895342073a333ad10ca43515db92c327c030e8a252014752

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