From dbf4386d5253fa46fdcdd7e799ac2eeed0c4fac2 Mon Sep 17 00:00:00 2001 From: Danny Goldstein Date: Thu, 11 Mar 2021 16:09:38 -0800 Subject: [PATCH] add handlers to module import --- requirements.docs.txt | 3 +++ requirements.txt | 2 ++ skyportal/app_server.py | 6 ++++-- skyportal/handlers/api/__init__.py | 2 ++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/requirements.docs.txt b/requirements.docs.txt index b7bf415795..637d74af88 100644 --- a/requirements.docs.txt +++ b/requirements.docs.txt @@ -5,3 +5,6 @@ sphinx-rtd-theme notedown jsx-lexer eralchemy==1.2.10 +sphinx<3 +sphinx_press_theme +myst-parser diff --git a/requirements.txt b/requirements.txt index e72edf967e..1b20ed687c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -40,3 +40,5 @@ numba==0.52.0 pyvo==1.1 lxml==4.6.2 suds-py3==1.4.3 +penquins>=2.1.0 +pymongo>=3.10.1 diff --git a/skyportal/app_server.py b/skyportal/app_server.py index 39f00780de..b2dccaf0ba 100644 --- a/skyportal/app_server.py +++ b/skyportal/app_server.py @@ -60,6 +60,10 @@ UserHandler, WeatherHandler, PS1ThumbnailHandler, + ZTFAlertCutoutHandler, + ZTFAlertHandler, + ZTFAlertAuxHandler, + KowalskiFilterHandler, ) from skyportal.handlers.api.internal import ( PlotPhotometryHandler, @@ -177,7 +181,6 @@ (r'/.*', MainPageHandler), # # Refer to Main.jsx for routing info. - # Fritz-specific handlers. # Fritz-specific API endpoints # ZTF Alerts @@ -189,7 +192,6 @@ (r"/api/alerts/ztf/(.+)", ZTFAlertHandler), # Alert Stream filter versioning via K: (r"/api/filters/([0-9]+)?/v", KowalskiFilterHandler), - ] diff --git a/skyportal/handlers/api/__init__.py b/skyportal/handlers/api/__init__.py index e6c0222062..3498db83e7 100644 --- a/skyportal/handlers/api/__init__.py +++ b/skyportal/handlers/api/__init__.py @@ -1,5 +1,6 @@ from .acls import ACLHandler, UserACLHandler from .allocation import AllocationHandler +from .alert import ZTFAlertHandler, ZTFAlertAuxHandler, ZTFAlertCutoutHandler from .candidate import CandidateHandler from .classification import ClassificationHandler, ObjClassificationHandler from .comment import CommentHandler, CommentAttachmentHandler @@ -21,6 +22,7 @@ from .instrument import InstrumentHandler from .invalid import InvalidEndpointHandler from .invitations import InvitationHandler +from .kowalski_filter import KowalskiFilterHandler from .news_feed import NewsFeedHandler from .observingrun import ObservingRunHandler from .photometry import (