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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f0fa238bf4604d57abff491b8be85e69306a8c28bb1cb9097a977b87226e4a7 |
|
MD5 | b6e7865a20c6b63fce306dd593f4a68f |
|
BLAKE2b-256 | df61a8434826ea37cb2e10c5f44591b525e781d0e8fd5a1fe5fec1d62f484296 |
Close
Hashes for django_bigquery_exporter-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | add90c6ed84af02133f2e1071628e5060704523ffb8a5489de07f9e5b81878c5 |
|
MD5 | 4db8d4ee2fbaf9138a9bb5d369b2c95e |
|
BLAKE2b-256 | 759755eebf4de0df035d882fd10bbc621beb68af471a520b78427481628bd9b6 |