-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use FastAPI to provide rest endpoints (#135)
* simple fastapi setup * squashing commits; rebased onto master and modified some vscode settings. WIP. * made application compatible with config changes * moved starting the app into blueapi/service/main instead of cli. Added deprecation message for worker. * responded to comments * added some cli tests. Intend to add more... * added mock as dependency to pass tests * added more tests for cli and modified existing rest tests * changed run to serve instead * made teardown handler do nothing if handler not set * removed redundant comment * removed redundant string concatenation in test * moved assert statement * made minor changes in response to comments; using functools wraps and .json() instead of literal_eval in tests * fixed minor issues; param ingestion for cli.py::run_plan and made fixtures for tests * moved common parts of tests to conftest.py, made session scope fixtures * fixed linting * made minor changes in response to comments; changed dependencies * modified pyproject toml to include all fastapi dependencies * removed redundant fake_cli file which I just used for testing. Changed error message for deprecated worker command * fixing tests * added extra test for the handler * made suggested changes * Update src/blueapi/service/main.py Co-authored-by: Callum Forrester <29771545+callumforrester@users.noreply.github.com> * modified docs --------- Co-authored-by: Callum Forrester <29771545+callumforrester@users.noreply.github.com>
- Loading branch information
1 parent
db1f3b7
commit 76a4e02
Showing
17 changed files
with
535 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
__version__ = version("blueapi") | ||
del version | ||
|
||
|
||
__all__ = ["__version__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from .app import start | ||
from .model import DeviceModel, PlanModel | ||
|
||
__all__ = ["start", "PlanModel", "DeviceModel"] | ||
__all__ = ["PlanModel", "DeviceModel"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.