sheetwork
Contribute on GitHubChat on Discord
v1.0.0 Nicolas Jaar
v1.0.0 Nicolas Jaar
  • Introduction
  • Installation & Configuration
    • Installation & Update
    • Configuration
      • Set up your sheetwork project
      • Connecting to Google Sheets
      • Set up your sheetwork profile
  • Usage
    • Quick CLI
    • Using sheets.yml configuration
      • Basic Configuration
      • Column Operations & Advanced Controls
  • Sheetwork Operations
    • sheetwork init
    • sheetwork upload
    • Under the Hood Cleanups
  • FAQ
    • Do I need to list ALL the columns in my sheets config?
    • Do the column names need to be in the format of the original sheet?
    • What kind of cleanups or reformating does sheetwork do?
Powered by GitBook
On this page
  • What is the sheetwork profile?
  • How to set up your profiles.yml?

Was this helpful?

  1. Installation & Configuration
  2. Configuration

Set up your sheetwork profile

What is the sheetwork profile?

Your sheetwork profile is a .yml file which holds a reference to your sheetwork project, a link to your google credential file (which we set up earlier) and your database credentials

How to set up your profiles.yml?

In the very first step, we created a .sheetwork folder in your home directory in which we created a /google folder to house your google credentials. Now is the time to create your profiles.yml

# navigate to your sheetwork folder
cd ~/.sheetwork
# create an empty profiles.yml file
touch profiles.yml

Open profiles.yml in your editor of choice and configure it as follows:

Snowflake Connection

At the moment sheetwork only supports Snowflake. More database support to come depending on open-source contribution.

profiles:
  # first entry correspond to your project name.
  my_sheetwork_project:
    # specify a default target profile to use if you want. I called mine "dev"
    target: dev
    # outputs contains one "block" per target profile
    outputs:
      dev:
        db_type: snowflake
        account: <your_snowflake_account>
        user: <your_username>
        password: <your_password>
        role: <your_role>
        database: <a_target_database_in_your_account>
        warehouse: <warehouse_to_use>
        schema: <default_schema_for_your_target>
        guser: <your_google_API_client_email>

guser: you can find this in your google credentials json file in the client_email field.

That's it! You're all set up!

PreviousConnecting to Google SheetsNextQuick CLI

Last updated 4 years ago

Was this helpful?