Metadata-Version: 2.1
Name: bigQueryExporterEnhanced
Version: 1.0.2
Summary: Package codes to execute queries on BigQuery and save to local machine
Home-page: https://github.com/tsangkinhoi/bigQueryExporter-enhanced
Author: Icarus So (enhanced by Jason Tsang)
Author-email: tsangkinhoi@gmail.com
License: UNKNOWN
Keywords: bigquery,local,export
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# Credit
This repository is forked from
https://github.com/IcarusSO/bigQueryExporter

# Change Log (Compare with original version)
### query_to_local()
- Create a temp table with a random hash on BQ as output table, so that simultaneous execution of the function will not overwrite each other.
- Remove the temp table after the execution. (May also set keep_temp_table=True if you wish to keep them).

# bigQueryExporter
Export query data from google bigquery to local machine

#### Installation
    pip install bigQueryExporter

    For Mac python 2.7
    pip install bigQueryExporter --ignore-installed six

#### Example
    from bigQueryExport import BigQueryExporter
    bigQueryExporter = BigQueryExporter(project_name, dataset_name, bucket_name)
    export_path = query_to_local(query, job_name, '../data')

#### Requirement
- Your server/ local machine should have the right to access the project
- Right should be granted following the insturction on [Google SDK](https://cloud.google.com/sdk/docs/)
- Execute the following command

    gcloud auth application-default login


