In this same same repo, make a separate bluesky-tiled-plugins package that contains the objects in databroker.client and their associated entrypoint declarations. These are the objects like BlueskyRun and CatalogOfBlueskyRuns that provide an optional, upgraded Python interface to Bluesky metadata/data in Tiled.
Thus, it will only be necessary to import databroker when:
Importing databroker.Broker for backward-compatible user code
Running a Tiled server with databroker.mongo_normalized
New user code can operate with just tiled and the tiny bluesky-tiled-plugins. Lightweight and easy to explain to new users.
Per discussion with @tacaswell:
In this same same repo, make a separate
bluesky-tiled-plugins
package that contains the objects indatabroker.client
and their associated entrypoint declarations. These are the objects likeBlueskyRun
andCatalogOfBlueskyRuns
that provide an optional, upgraded Python interface to Bluesky metadata/data in Tiled.Thus, it will only be necessary to import
databroker
when:databroker.Broker
for backward-compatible user codedatabroker.mongo_normalized
New user code can operate with just
tiled
and the tinybluesky-tiled-plugins
. Lightweight and easy to explain to new users.