Google sheets
Spreadsheet data consumer designed to extend processing capabilites
Overview
With Joule’s Google Sheets connector, you can seamlessly pull row data from spreadsheets, transform it, and stream it into your real-time pipelines.
Examples & DSL attributes
This configuration sets up the consumer to read row data from a specified Google Spreadsheet, with the nasdaq
tab defined as the source. Custom deserialization can also be applied to transform the incoming data as needed.
google sheets consumer:
application name: Joule google sheets test
spreadsheetId: 1PNhq2t7fJ8AqJBmlSvywdpI4maFaAaUC
range: 'Nasdaq'
event type: 'Nasdaq'
polling frequency: 5
header included: true
oauth:
credentials filepath: /home/joule/credentials/sheets/credentials.json
Setting up
Setup google project and enable spreadsheet API
Create a project and enable Google Spreadsheet API.
Configure consent and download credentials
To access the spreadsheet Joule needs the user credentials to be created and downloaded. This can be done from the Google Developers Console.
Define and deploy source configuration
google sheets consumer:
application name: Joule google sheets test
spreadsheetId: 1PNhq2t7fJ8AqJBmlSvywdpI4maFaAaUC
range: 'Nasdaq'
event type: 'Nasdaq'
polling frequency: 5
header included: true
oauth:
credentials filepath: /home/joule/credentials/sheets/credentials.json
Follow the official google documentation for more information on setting up projects on GCP
Attributes schema
application name
Application name
String
spreadsheetId
Spreadsheet id that is embedded in the url
String
range
Target sheet and start cell
String
event type
Specify the emitting StreamEvent type
String
polling frequency
Frequency on minutes the spreadsheet is called to download data
Integer Default: 1 minute
header included
Boolean to inform the default deserializer the first row is the header
Boolean Default: true
OAuth Attribute
credentials filepath
Path to the google OAuth consent credentials file.
String
Last updated
Was this helpful?