Skip to content

Instantly share code, notes, and snippets.

@ademola25
Last active 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/ed684f0f6a170e43ba85c78006fc69af to your computer and use it in GitHub Desktop.
Save ademola25/ed684f0f6a170e43ba85c78006fc69af 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