Access the Labelbox Connector for Google BigQuery to easily perform the following functionalities:
lbbq.client.create_data_rows_from_table
: Creates Labelbox data rows (and metadata) given a BigQuery tablelbbq.client.create_table_from_dataset
: Creates a BigQuery table given a Labelbox datasetlbbq.client.upsert_table_metadata
: Updates BigQuery table metadata columns given a Labelbox datasetlbbq.client.upsert_labelbox_metadata
: Updates Labelbox metadata given a BigQuery table
The Demo code supplied in this Github is designed to run in a Google Colab, but the code can be adapted to any notebook environment.
Please report any issues/bugs via Github Issues.
Table of Contents
Requirements
- Google Cloud BigQuery Authenticated Client
- Google BigQuery SDK
- Labelbox account
- Generate a Labelbox API key
Configuration
Install Labelbox-BigQuery to your Python environment. The installation will also add the Labelbox SDK and BigQuery SDK.
pip install labelbox-bigquery
import labelboxbigquery
Use
The client
class requires the following arguments:
lb_api_key
= Labelbox API Keygoogle_key
= Google Service Account Permissions dict, how to create one heregoogle_project_name
= Google Project ID / Name