diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-12 23:18:56 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-12 23:18:56 -0800 |
commit | b03bfc8f3fd84141738f775b273a99850d78e1ff (patch) | |
tree | 64858e474fa38aa015f06f5e15b851dcc85da421 /python/fatcat_web/__init__.py | |
parent | 055c464deea8cdaccf3ed384995d4409b0f51409 (diff) | |
download | fatcat-b03bfc8f3fd84141738f775b273a99850d78e1ff.tar.gz fatcat-b03bfc8f3fd84141738f775b273a99850d78e1ff.zip |
refactor python modules
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 |