Giter Site home page Giter Site logo

dash-python-and-big-query's Introduction

dash-python-and-big-query

How to connect a table in Google Cloud Big Query to your dash app

I was working on a dash app that required password access and had different levels of access and I decided to manage that using SQL. Since I was hosting it on Google Cloud Platform, it made sense to use big query to make that happen. Also, big query is extremely cheap (in contrast to cloud SQL) and would be practically free for this purpose (so far, they haven't charged me!)

Initial steps

Before we go to the coding part, we need to set up a google cloud platform account and create a database in big query. I followed the steps on this video . It was very useful but some things changed on the configuration of big query, specifically on the .json of the key. What worked for me was following the same steps highlight by the video and to get the missing part, you have to go to PIs&Services menu and click on Credentials. In the section Service Accounts click on the service you have just created and then in theKEYS tab then in ADD KEYS. Choosse json as the format and download it (it will probably start downloading automatically).

You should put this json on your assets folder.

Useful links

bigquery-sqlalchemy git hub

bigquery-and-sql-databases

pythonanywhere forum on a related topic

code example

Dash-User-Management git hub

Dash-User-Management

dash-python-and-big-query's People

Contributors

camilasbraz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.