Skip to main content

No project description provided

Project description

Klondike

Klondike offers a lightweight API to read and write data to Google BigQuery using Polars DataFrames.

Installation

Installing Klondike

Install at the command line

pip install klondike==0.1.0

Installing Rust

Since Polars leverages Rust speedups, you need to have Rust installed in your environment as well. See the Rust installation guide here.

Usage

In this demo we'll connect to BigQuery, read data, transform it, and write it back to the data warehouse.

First, connect to the BigQuery warehouse by supplying the BigQueryConnector() object with the relative path to your service account credentials.

Next, supply the object with a SQL query in the read_dataframe_from_bigquery() function to redner a DataFrame object:

Now that your data is pulled into a local instance, you can clean and transform it using standard Polars functionality - see the docs for more information.

Finally, push your transformed data back to the BigQuery warehouse using the write_dataframe_to_bigquery() function:

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

klondike-0.0.1.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

klondike-0.0.1-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

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