Skip to content

Commit 2cf3ce2

Browse files
committed
Get rid of DirectThingClient and friends.
This gets rid of a bunch of now-obsolete code that used dependencies for inter-thing communication. The new `lt.thing_slot` system does this much better. This required removing a section of the docs and its example code, as that was being tested. That's helpful, as said section detailed the features I'm removing. I have retained the `_dependencies` reference in Sphinx but moved it to a new section on removed features: this should help redirect people to how the code has changed.
1 parent 717d9ab commit 2cf3ce2

File tree

13 files changed

+9
-780
lines changed

13 files changed

+9
-780
lines changed

docs/source/dependencies/dependencies.rst

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

docs/source/dependencies/example.py

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

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Documentation for LabThings-FastAPI
1212
properties.rst
1313
documentation.rst
1414
thing_slots.rst
15-
dependencies/dependencies.rst
1615
blobs.rst
1716
concurrency.rst
1817
using_things.rst
1918
see_also.rst
2019
examples.rst
2120
wot_core_concepts.rst
21+
removed_features.rst
2222

2323
autoapi/index
2424
developer_notes/index.rst

docs/source/removed_features.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Removed Features
2+
================
3+
4+
.. _dependencies:
5+
6+
Dependencies
7+
------------
8+
The use of dependencies for inter-`.Thing` communication was removed in version 0.1. See :ref:`thing_slots` and `.ThingServerInterface` for a more intuitive way to access that functionality.

src/labthings_fastapi/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from .properties import property, setting, DataProperty, DataSetting
2626
from .actions import action
2727
from .endpoints import endpoint
28-
from . import deps
2928
from . import outputs
3029
from .outputs import blob
3130
from .server import ThingServer, cli
@@ -53,7 +52,6 @@
5352
"action",
5453
"thing_slot",
5554
"endpoint",
56-
"deps",
5755
"outputs",
5856
"blob",
5957
"ThingServer",

0 commit comments

Comments
 (0)