Skip to main content

Pyplatform-datawarehouse package provides functions for querying, writing and managing data in Google BiqQuery.

Installation

pip install pyplatform-datawarehouse

Authentication and environment variables

Refer to main page for documentation on authentication

Exploring the modules

from pyplatform.datawarehouse import *
show_me()

Usage

querying BigQuery table

import pyplatform.datawarehouse as dw
sql = """SELECT Order_ID, Order_Date, Ship_Date, Ship_Mode, Customer_ID, Customer_Name, Segment 
FROM `project_id.dataset.sample_superstore` """
df = dw.bq_to_df(sql)
df.head()

# select statemet is enclosed in the stored procedure
sql = """CALL `project_id.dataset.spoc_sample_superstore`();"""
df = dw.bq_to_df(sql)
df.head()

writing dataframe to BigQuery table

import pyplatform.datawarehouse as dw
# df #TODO create dataframe as source
table_id = 'project_id.dataset.sample_superstore'
job = dw.df_to_bq(df,table_id)

print(dw.bq_get_job_info(job))

Metadata

Release files for pyplatform-datawarehouse 2020.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyplatform-datawarehouse 2020.12.1
File Size Uploaded Provenance
pyplatform-datawarehouse-2020.12.1.tar.gz 14.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyplatform-datawarehouse 2020.12.1
File Interpreter ABI Platform
pyplatform_datawarehouse-2020.12.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.1 kB

Release files / pyplatform-datawarehouse-2020.12.1.tar.gz

Download URL pyplatform-datawarehouse-2020.12.1.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dc75cafe286416d36d5284d4d4fb070729621f02c8efb1f1de23b0d8dc322cda
BLAKE2b-256 checksum
How to use checksums
f7d8d470c65aa8135bc8b26f4fb485197053c786161ae6cd669f59aa5cd2ee4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / pyplatform_datawarehouse-2020.12.1-py3-none-any.whl

Download URL pyplatform_datawarehouse-2020.12.1-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de8bee1680132089c49b2ebc425ce30782731001cfb765795e7fb958d74fbf3b
BLAKE2b-256 checksum
How to use checksums
3603aae0ba272801d4de856c58d724200d77a8a66034b781179405f2889b57bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Security for pyplatform-datawarehouse 2020.12.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page