From 8be005212f1d881445bb86b746c19485b4f7fa61 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 7 Nov 2022 15:38:54 -0500 Subject: [PATCH] Expose `.open_feed()` and `open_piker_runtime()` eps at top level --- piker/__init__.py | 7 +++++++ piker/_daemon.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/piker/__init__.py b/piker/__init__.py index a6437f88..d08c2dbc 100644 --- a/piker/__init__.py +++ b/piker/__init__.py @@ -18,3 +18,10 @@ piker: trading gear for hackers. """ +from ._daemon import open_piker_runtime +from .data.feed import open_feed + +__all__ = [ + 'open_piker_runtime', + 'open_feed', +] diff --git a/piker/_daemon.py b/piker/_daemon.py index b34b2f85..271caa30 100644 --- a/piker/_daemon.py +++ b/piker/_daemon.py @@ -199,7 +199,7 @@ async def open_piker_runtime( # for data daemons when running in production. debug_mode: bool = False, -) -> Optional[tractor._portal.Portal]: +) -> tractor.Actor: ''' Start a piker actor who's runtime will automatically sync with existing piker actors on the local link based on configuration.