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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c2fb702c5c2b5b6e53e1b834b739e3b7e2dab214d5104e9c2b98e0cfb8074b9 |
|
MD5 | ba75761cfa57466dd0dd98b9c158d9f7 |
|
BLAKE2b-256 | 62be5882078b7e9a57da2e7e70016d035e32c0c58da851fa8cfd2975db63ffd2 |
Close
Hashes for django_bigquery_exporter-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf107dacb17b5f5d641562eae9a9e881c4d2ebde7cab85e7bd38753475a63d7 |
|
MD5 | 57ed78914a9834d98d7c0f45500f72a9 |
|
BLAKE2b-256 | 3dd0bbb41cd06e12624c34e14e3a2e2f566f5e518674d1792c0743f712cb0311 |