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.
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()
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
Hashes for django-bigquery-exporter-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062f9511ef071c7701fe8fffbf32cc4302e3e2bb3b005a5cbe1d52279eb10c59 |
|
MD5 | 0e7f289ca2da80a587282542d6019907 |
|
BLAKE2b-256 | 18c53f3af48254c418e4b5db9a36803b2d755ce8529108207bb0de73f93eafba |
Hashes for django_bigquery_exporter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1e533a5b10186395c570fa31c6aebc92dd24790bbe0089cab938e8db537339 |
|
MD5 | 54c882e178d13d3326b68709a6d8be8f |
|
BLAKE2b-256 | 43b59e0adc7e4ce973e823b5294f9ce9ba8f9681d52e8df25953483658613655 |