Skip to content

Instantly share code, notes, and snippets.

@ademola25
Created September 2, 2018 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ademola25/a86c1c9283989344044597f6859ec421 to your computer and use it in GitHub Desktop.
Save ademola25/a86c1c9283989344044597f6859ec421 to your computer and use it in GitHub Desktop.
from flask import make_response
import requests
app = Flask(__name__)
with app.open_resource('client_secrets.json') as f:
CLIENT_ID = json.load(f)['web']['client_id']
# Connecting to the Database and create database session
engine = create_engine('postgresql://catalog:postgres@localhost/catalog')
Base.metadata.bind = engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment