---
name: BQClient
lang: py
domain: infra
version: "1.0.0"
algebraic: product
definition: |
  @dataclass
  class BQClient:
      project_id: str
      _client: bigquery.Client
description: "Cliente para Google BigQuery. Contiene el project_id y el cliente oficial del SDK. Se obtiene con bq_auth()."
tags: [bigquery, gcp, client, google-cloud]
uses_types: []
file_path: "python/types/infra/bq_client.py"
---

## Ejemplo

```python
from bigquery import bq_auth, BQClient

client: BQClient = bq_auth("my-project")
print(client.project_id)  # "my-project"
client.close()
```

## Notas

Wrapper sobre `google.cloud.bigquery.Client`. El campo `_client` es interno y no serializable.
Se usa como context manager: `with bq_auth() as client: ...`
