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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9238776a000158d18a78f0ba2944a9b00d9a48cbdf5ddc78683543540bcdec0 |
|
MD5 | 2ce598b578deea440bff0413732f77cf |
|
BLAKE2b-256 | ca37e32fb59d9b6cf25c655cc9641ac1696a57c8741dbd8ce06db2aa5fec379b |
Close
Hashes for django_bigquery_exporter-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c71b4b256b5f9eb50475be5e0e501c607613432ecdbb4dd8ea9d949a74bcb20e |
|
MD5 | 7d005126715378a3039b905c493bb214 |
|
BLAKE2b-256 | ad53b87f05c73ea495eebde49ea7ec78aa5004fb6f12352088dcb68c79e6f33a |