labthings_fastapi.dependencies.thing

FastAPI dependency to allow Things to depend on each other.

This module defines a mechanism to obtain a DirectThingClient that wraps another Thing on the same server. See Using Things from other Things and Dependencies for more detail.

Note

direct_thing_client_dependency may confuse linters and type checkers, as types should not be the result of a function call. You may wish to manually create an annotated type using direct_thing_client_class.