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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 919d4b789fa8fc5ba0fd7ea1fa6ba94179ab9532c883bd123beb68515f719973 |
|
MD5 | 5cb6134355f5724869a07167cb457fc0 |
|
BLAKE2b-256 | 3f4e2dd191027b2ac6f212eb5e7cb1ccbfd78244e0eeca5e96d792c7c5f6ca3d |
Close
Hashes for django_bigquery_exporter-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 689fd602a9a0086c3fb68c800f358cf444bddc8497fab1a1812d496818976a55 |
|
MD5 | 5048769f1cb777ce31726064e00d0c29 |
|
BLAKE2b-256 | 496d7e6abbccc53b058452aa32178d2bdf91f1637977c9560378f878c1b8aa44 |