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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a0a2202a054e33b6beddcdefb0d284cf5b6108f3f58b4882d2c973ad0f44427 |
|
MD5 | dc290baab00f71159603e7248bff72cf |
|
BLAKE2b-256 | f3e1534a7dbfef78f756f1127e14e5fd23d4e16cf3c0cf7d5486612e610705c1 |
Close
Hashes for django_bigquery_exporter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b00deb044bb1430a38c4cff0aad9455c8511d952c9b73ad5083f135e65ad6544 |
|
MD5 | 96633b10e9121f06a0e7611831fefa54 |
|
BLAKE2b-256 | 7d710a3c4e829bc2af8f68a73790bebda1bcd43bf5172d5da6880416cb7df66f |