Skip to main content

A Django plugin for exporting CMS data to Google BigQuery.

Project description

Django BigQuery Exporter is simple library providing an admin-esque base class for batching and exporting Django models to Google BigQuery.

Quick start

  1. Install Django BigQuery Exporter:

    pip install django-bigquery-exporter

  2. Make sure you have your Google Cloud credentials set up. See [here](https://cloud.google.com/docs/authentication/getting-started) for more information.

  3. Import and create a subclass of BigQueryExporter and define the define_queryset method:

    from bigquery_exporter.base import BigQueryExporter

    class MyExporter(BigQueryExporter):
    def define_queryset(self):

    return MyModel.objects.all()

  4. Call the export method:

    exporter = MyExporter() exporter.export()

Et voila! Your data is now in BigQuery.

Project details


Download files

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

Source Distribution

django-bigquery-exporter-0.1.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

django_bigquery_exporter-0.1.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page