Skip to content

Commit a4cebbc

Browse files
committed
WIP: refactor action
This is stuck because I'll need to get rid of ActionManagerContextDep. Should rebase on the deprecation branch. I should also split actions into actions & invocations.
1 parent 56d8dff commit a4cebbc

File tree

8 files changed

+439
-507
lines changed

8 files changed

+439
-507
lines changed

src/labthings_fastapi/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
from .thing_slots import thing_slot
2424
from .thing_server_interface import ThingServerInterface
2525
from .properties import property, setting, DataProperty, DataSetting
26+
from .actions import thing_action
2627
from .endpoints import fastapi_endpoint
27-
from .decorators import (
28-
thing_action,
29-
)
3028
from . import deps
3129
from . import outputs
3230
from .outputs import blob

src/labthings_fastapi/actions/__init__.py

Lines changed: 435 additions & 6 deletions
Large diffs are not rendered by default.

src/labthings_fastapi/client/in_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import logging
2020
from typing import Any, Mapping, Optional, Union
2121
from pydantic import BaseModel
22-
from ..descriptors.action import ActionDescriptor
22+
from ..actions import ActionDescriptor
2323

2424
from ..properties import BaseProperty
2525
from ..utilities import attributes

src/labthings_fastapi/decorators/__init__.py

Lines changed: 0 additions & 112 deletions
This file was deleted.

src/labthings_fastapi/descriptors/__init__.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)