Files
fn_registry/scratchpad/exf/bqq.py
T
egutierrez fbdf80bd71 chore: auto-commit (10 archivos)
- scratchpad/ap.parquet
- scratchpad/bq.py
- scratchpad/cards.json
- scratchpad/citas_recon.csv
- scratchpad/dash.txt
- scratchpad/diego.parquet
- scratchpad/diego_literals.sql
- scratchpad/exf/
- scratchpad/va.parquet
- scratchpad/vm.parquet

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-07-01 17:58:03 +02:00

9 lines
362 B
Python

import sys, json
from google.cloud import bigquery
import google.auth
creds=google.auth.default(scopes=['https://www.googleapis.com/auth/bigquery'])[0].with_quota_project(None)
c=bigquery.Client(project='autingo-159109', location='europe-west1', credentials=creds)
sql=sys.stdin.read()
for r in c.query(sql).result():
print(json.dumps(dict(r), default=str))