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
Install Django BigQuery Exporter: pip install django-bigquery-exporter
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-bigquery-exporter-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d28b4c7eec879c14c85f6e1f9388fdc4ca077b28f06bd11e71fd3fe4a3d6402 |
|
MD5 | 4a7866e058f38d16bfc472c058fedf7f |
|
BLAKE2b-256 | 71a632cd2d77135b3e74e977472ba8591036fc0d11e8de470b44bdd414f5611a |
Close
Hashes for django_bigquery_exporter-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c4f0b786be600d8617f360c219f8317baec12ad57e76a821999c46d1f1eac2d |
|
MD5 | 431d6e2e437e41adce9f814235034e42 |
|
BLAKE2b-256 | 79c2363038d7f698df4992dc09fe1a4169e443d3792a9c961bce9c32625624be |