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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7927f8c456f575800bf70a0cdd32c0910ab10e606fa679874d2b3cc0af3d5f10 |
|
MD5 | b83ceb0cd8dc9604b8ab7181abc1a77a |
|
BLAKE2b-256 | 74a6df16c21fd0950426f70377d2cebd88795a72a2d97219c843dec0769f3f05 |
Close
Hashes for django_bigquery_exporter-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a26e97c55469beb44f8e4c99d1fe83ffe990c7571bdff369808f81dbd90650fa |
|
MD5 | 0509aab736c028c67a88ed8dcede7a11 |
|
BLAKE2b-256 | 65ece65c81f3d001bc50b4356693eb3a00a0c37ee57b55790303dfd8d7ad5b94 |