Created an ugly but useful stack of convenience imports

This commit is contained in:
Joel Collins 2019-06-24 14:39:58 +01:00
parent 70c34d6559
commit 317afeb76a

View file

@ -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