From 317afeb76a8753c1c8642674ac884847586767e6 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Mon, 24 Jun 2019 14:39:58 +0100 Subject: [PATCH] Created an ugly but useful stack of convenience imports --- openflexure_microscope/devel/__init__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 openflexure_microscope/devel/__init__.py diff --git a/openflexure_microscope/devel/__init__.py b/openflexure_microscope/devel/__init__.py new file mode 100644 index 00000000..df94377a --- /dev/null +++ b/openflexure_microscope/devel/__init__.py @@ -0,0 +1,17 @@ +""" +Convenience imports for developers. + +Here we include some classes used frequently in plugin development, +as well as some Flask imports to simplify API route development +""" + +# Plugin classes +from openflexure_microscope.plugins import MicroscopePlugin +from openflexure_microscope.api.v1.views import MicroscopeViewPlugin +from openflexure_microscope.api.utilities import JsonPayload + +# Exceptions +from openflexure_microscope.exceptions import TaskDeniedException + +# Flask things +from flask import abort, escape, jsonify, Response, request