Created an ugly but useful stack of convenience imports
This commit is contained in:
parent
70c34d6559
commit
317afeb76a
1 changed files with 17 additions and 0 deletions
17
openflexure_microscope/devel/__init__.py
Normal file
17
openflexure_microscope/devel/__init__.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue