Commit 317afeb7 authored by Joel Collins's avatar Joel Collins
Browse files

Created an ugly but useful stack of convenience imports

parent 70c34d65
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
"""
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