otter-service-stdalone 0.1.19__py3-none-any.whl → 0.1.21__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- otter_service_stdalone/__init__.py +1 -1
- otter_service_stdalone/app.py +11 -0
- {otter_service_stdalone-0.1.19.dist-info → otter_service_stdalone-0.1.21.dist-info}/METADATA +1 -1
- {otter_service_stdalone-0.1.19.dist-info → otter_service_stdalone-0.1.21.dist-info}/RECORD +7 -7
- {otter_service_stdalone-0.1.19.dist-info → otter_service_stdalone-0.1.21.dist-info}/WHEEL +0 -0
- {otter_service_stdalone-0.1.19.dist-info → otter_service_stdalone-0.1.21.dist-info}/entry_points.txt +0 -0
- {otter_service_stdalone-0.1.19.dist-info → otter_service_stdalone-0.1.21.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.1.
|
1
|
+
__version__ = "0.1.21"
|
otter_service_stdalone/app.py
CHANGED
@@ -17,6 +17,16 @@ log_error = f'{os.environ.get("ENVIRONMENT")}-logs'
|
|
17
17
|
state = str(uuid.uuid4()) # used to protect against cross-site request forgery attacks.
|
18
18
|
|
19
19
|
|
20
|
+
class HealthHandler(tornado.web.RequestHandler):
|
21
|
+
"""Handles Load Balancer Health Check
|
22
|
+
|
23
|
+
Args:
|
24
|
+
tornado (tornado.web.RequestHandler): The request handler
|
25
|
+
"""
|
26
|
+
def get(self):
|
27
|
+
self.set_status(200)
|
28
|
+
|
29
|
+
|
20
30
|
class LoginHandler(tornado.web.RequestHandler):
|
21
31
|
"""Initiaties login auth by authorizing access to github auth api
|
22
32
|
|
@@ -216,6 +226,7 @@ application = tornado.web.Application([
|
|
216
226
|
(r"/upload", Upload),
|
217
227
|
(r"/download", Download),
|
218
228
|
(r"/oauth_callback", GitHubOAuthHandler),
|
229
|
+
(r"/otterhealth", HealthHandler),
|
219
230
|
], **settings, debug=False)
|
220
231
|
|
221
232
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
otter_service_stdalone/__init__.py,sha256=
|
1
|
+
otter_service_stdalone/__init__.py,sha256=qEmNtjnOwhDYQ0cHPPtUkUaghzD2xl0thJEznl4giYw,23
|
2
2
|
otter_service_stdalone/access_sops_keys.py,sha256=nboU5aZ84Elrm5vO0dMgpIF5LLcnecpNAwpxKvj6DvU,2129
|
3
|
-
otter_service_stdalone/app.py,sha256=
|
3
|
+
otter_service_stdalone/app.py,sha256=RWM0bKUz3GnH_j4dkeKlArSWxMdkCT9tK2MhMaVM4NM,9730
|
4
4
|
otter_service_stdalone/fs_logging.py,sha256=IKFZkc5TmpI6G3vTYFAU9jDjQ-GT5aRxk8kdZ0h0kJE,2390
|
5
5
|
otter_service_stdalone/grade_notebooks.py,sha256=DiIW7oIwq2TROHFiR0A9qqVCoFzd3QhZXxqgWZtCDk8,4498
|
6
6
|
otter_service_stdalone/index.html,sha256=QbSQs31OZhWlCQFE5vvJOlNh-JHEJ3PZPgR4GukzrCA,6032
|
@@ -12,8 +12,8 @@ otter_service_stdalone/secrets/gh_key.prod.yaml,sha256=6vgLqHzDp8cVAOJlpSXGDTUjS
|
|
12
12
|
otter_service_stdalone/secrets/gh_key.staging.yaml,sha256=cKVqj4dcwuz2LhXwMNQy_1skF8XCVQOX2diXNjAFJXg,1138
|
13
13
|
otter_service_stdalone/static_templates/403.html,sha256=K7Jc85v6K8ieRtzBo3JBX__oJCcZ8MEiZcIrhITD5I0,985
|
14
14
|
otter_service_stdalone/static_templates/500.html,sha256=2D0YF8-ocJ9I-hM3P3KdflhggKH52L4bTHhKzd79B9o,944
|
15
|
-
otter_service_stdalone-0.1.
|
16
|
-
otter_service_stdalone-0.1.
|
17
|
-
otter_service_stdalone-0.1.
|
18
|
-
otter_service_stdalone-0.1.
|
19
|
-
otter_service_stdalone-0.1.
|
15
|
+
otter_service_stdalone-0.1.21.dist-info/METADATA,sha256=FypNN8VSVPvALVjckpJSdfH4sRELnH8hvozvEJXV7jI,1345
|
16
|
+
otter_service_stdalone-0.1.21.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
17
|
+
otter_service_stdalone-0.1.21.dist-info/entry_points.txt,sha256=cx447chuIEl8ly9jEoF5-2xNhaKsWcIMDdhUMH_00qQ,75
|
18
|
+
otter_service_stdalone-0.1.21.dist-info/top_level.txt,sha256=6UP22fD4OhbLt23E01v8Kvjn44vPRbyTIg_GqMYL-Ng,23
|
19
|
+
otter_service_stdalone-0.1.21.dist-info/RECORD,,
|
File without changes
|
{otter_service_stdalone-0.1.19.dist-info → otter_service_stdalone-0.1.21.dist-info}/entry_points.txt
RENAMED
File without changes
|
{otter_service_stdalone-0.1.19.dist-info → otter_service_stdalone-0.1.21.dist-info}/top_level.txt
RENAMED
File without changes
|