Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Generate BigQuery tables, load and extract data, based on JSON Table Schema descriptors.

Project Description

Generate and load BigQuery tables based on JSON Table Schema descriptors.

Version v0.3 contains breaking changes:
  • renamed Storage.tables to Storage.buckets
  • changed to read into memory
  • added Storage.iter to yield row by row

Getting Started


pip install jsontableschema-bigquery


Package implements Tabular Storage interface.

To start using Google BigQuery service:

  • Create a new project - link
  • Create a service key - link
  • Download json credentials and set GOOGLE_APPLICATION_CREDENTIALS environment variable

We can get storage this way:

import io
import os
import json
from apiclient.discovery import build
from oauth2client.client import GoogleCredentials
from jsontableschema_bigquery import Storage

os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = '.credentials.json'
credentials = GoogleCredentials.get_application_default()
service = build('bigquery', 'v2', credentials=credentials)
project = json.load('.credentials.json', encoding='utf-8'))['project_id']
storage = Storage(service, project, 'dataset', prefix='prefix')

Then we could interact with storage:

storage.create('bucket', descriptor)
storage.describe('bucket') # return descriptor
storage.iter('bucket') # yields rows'bucket') # return rows
storage.write('bucket', rows)


schema.json -> bigquery table schema
data.csv -> bigquery talbe data


Default Google BigQuery client is used - docs.


Please read the contribution guideline:

How to Contribute


Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
jsontableschema_bigquery-0.5.0-py2.py3-none-any.whl (9.5 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Sep 5, 2017
jsontableschema-bigquery-0.5.0.tar.gz (8.0 kB) Copy SHA256 Checksum SHA256 Source Sep 5, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting