{"id":13534307,"url":"https://github.com/googleapis/python-bigquery","last_synced_at":"2025-05-12T15:29:56.625Z","repository":{"id":37071208,"uuid":"226992475","full_name":"googleapis/python-bigquery","owner":"googleapis","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-01T01:31:37.000Z","size":10619,"stargazers_count":765,"open_issues_count":70,"forks_count":313,"subscribers_count":55,"default_branch":"main","last_synced_at":"2025-05-01T02:36:23.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googleapis.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-12-10T00:09:04.000Z","updated_at":"2025-04-29T13:16:52.000Z","dependencies_parsed_at":"2023-10-03T07:56:36.932Z","dependency_job_id":"f55eed01-7bb3-4f6d-a9cc-e9662bda9f7c","html_url":"https://github.com/googleapis/python-bigquery","commit_stats":{"total_commits":1877,"total_committers":151,"mean_commits":12.43046357615894,"dds":0.8199254128929142,"last_synced_commit":"cc49760de1bab7a2e45fe9e485daacc4eebae1ef"},"previous_names":[],"tags_count":160,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fpython-bigquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fpython-bigquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fpython-bigquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fpython-bigquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleapis","download_url":"https://codeload.github.com/googleapis/python-bigquery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253765614,"owners_count":21960761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:01:30.136Z","updated_at":"2025-05-12T15:29:56.590Z","avatar_url":"https://github.com/googleapis.png","language":"Python","funding_links":[],"categories":["Database Clients"],"sub_categories":[],"readme":"Python Client for Google BigQuery\n=================================\n\n|GA| |pypi| |versions|\n\nQuerying massive datasets can be time consuming and expensive without the\nright hardware and infrastructure. Google `BigQuery`_ solves this problem by\nenabling super-fast, SQL queries against append-mostly tables, using the\nprocessing power of Google's infrastructure.\n\n-  `Client Library Documentation`_\n-  `Product Documentation`_\n\n.. |GA| image:: https://img.shields.io/badge/support-GA-gold.svg\n   :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availability\n.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-bigquery.svg\n   :target: https://pypi.org/project/google-cloud-bigquery/\n.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-bigquery.svg\n   :target: https://pypi.org/project/google-cloud-bigquery/\n.. _BigQuery: https://cloud.google.com/bigquery/what-is-bigquery\n.. _Client Library Documentation: https://googleapis.dev/python/bigquery/latest\n.. _Product Documentation: https://cloud.google.com/bigquery/docs/reference/v2/\n\nQuick Start\n-----------\n\nIn order to use this library, you first need to go through the following steps:\n\n1. `Select or create a Cloud Platform project.`_\n2. `Enable billing for your project.`_\n3. `Enable the Google Cloud BigQuery API.`_\n4. `Setup Authentication.`_\n\n.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project\n.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project\n.. _Enable the Google Cloud BigQuery API.:  https://cloud.google.com/bigquery\n.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html\n\nInstallation\n~~~~~~~~~~~~\n\nInstall this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to\ncreate isolated Python environments. The basic problem it addresses is one of\ndependencies and versions, and indirectly permissions.\n\nWith `virtualenv`_, it's possible to install this library without needing system\ninstall permissions, and without clashing with the installed system\ndependencies.\n\n.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/\n\n\nSupported Python Versions\n^^^^^^^^^^^^^^^^^^^^^^^^^\nPython \u003e= 3.9\n\nUnsupported Python Versions\n^^^^^^^^^^^^^^^^^^^^^^^^^^^\nPython == 2.7, Python == 3.5, Python == 3.6, Python == 3.7, and Python == 3.8.\n\nThe last version of this library compatible with Python 2.7 and 3.5 is\n`google-cloud-bigquery==1.28.0`.\n\n\nMac/Linux\n^^^^^^^^^\n\n.. code-block:: console\n\n    pip install virtualenv\n    virtualenv \u003cyour-env\u003e\n    source \u003cyour-env\u003e/bin/activate\n    \u003cyour-env\u003e/bin/pip install google-cloud-bigquery\n\n\nWindows\n^^^^^^^\n\n.. code-block:: console\n\n    pip install virtualenv\n    virtualenv \u003cyour-env\u003e\n    \u003cyour-env\u003e\\Scripts\\activate\n    \u003cyour-env\u003e\\Scripts\\pip.exe install google-cloud-bigquery\n\nExample Usage\n-------------\n\nPerform a query\n~~~~~~~~~~~~~~~\n\n.. code:: python\n\n    from google.cloud import bigquery\n\n    client = bigquery.Client()\n\n    # Perform a query.\n    QUERY = (\n        'SELECT name FROM `bigquery-public-data.usa_names.usa_1910_2013` '\n        'WHERE state = \"TX\" '\n        'LIMIT 100')\n    query_job = client.query(QUERY)  # API request\n    rows = query_job.result()  # Waits for query to finish\n\n    for row in rows:\n        print(row.name)\n\nInstrumenting With OpenTelemetry\n--------------------------------\n\nThis application uses `OpenTelemetry`_ to output tracing data from\nAPI calls to BigQuery. To enable OpenTelemetry tracing in\nthe BigQuery client the following PyPI packages need to be installed:\n\n.. _OpenTelemetry: https://opentelemetry.io\n\n.. code-block:: console\n\n    pip install google-cloud-bigquery[opentelemetry] opentelemetry-exporter-gcp-trace\n\nAfter installation, OpenTelemetry can be used in the BigQuery\nclient and in BigQuery jobs. First, however, an exporter must be\nspecified for where the trace data will be outputted to. An\nexample of this can be found here:\n\n.. code-block:: python\n\n    from opentelemetry import trace\n    from opentelemetry.sdk.trace import TracerProvider\n    from opentelemetry.sdk.trace.export import BatchSpanProcessor\n    from opentelemetry.exporter.cloud_trace import CloudTraceSpanExporter\n    tracer_provider = TracerProvider()\n    tracer_provider = BatchSpanProcessor(CloudTraceSpanExporter())\n    trace.set_tracer_provider(TracerProvider())\n\nIn this example all tracing data will be published to the Google\n`Cloud Trace`_ console. For more information on OpenTelemetry, please consult the `OpenTelemetry documentation`_.\n\n.. _OpenTelemetry documentation: https://opentelemetry-python.readthedocs.io\n.. _Cloud Trace: https://cloud.google.com/trace\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fpython-bigquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleapis%2Fpython-bigquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fpython-bigquery/lists"}