diff options
Diffstat (limited to 'python/fatcat_web/__init__.py')
-rw-r--r-- | python/fatcat_web/__init__.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py new file mode 100644 index 00000000..aa12f972 --- /dev/null +++ b/python/fatcat_web/__init__.py @@ -0,0 +1,18 @@ + +from flask import Flask +from flask_uuid import FlaskUUID +from flask_debugtoolbar import DebugToolbarExtension +from config import Config +import fatcat_client + +toolbar = DebugToolbarExtension() +app = Flask(__name__) +app.config.from_object(Config) +toolbar = DebugToolbarExtension(app) +FlaskUUID(app) + +conf = fatcat_client.Configuration() +conf.host = "http://localhost:9411/v0" +api = fatcat_client.DefaultApi(fatcat_client.ApiClient(conf)) + +from fatcat import routes |