diff --git a/examples/quick_cluster.py b/examples/quick_cluster.py index 3fa4ca2a..b4802a17 100644 --- a/examples/quick_cluster.py +++ b/examples/quick_cluster.py @@ -19,7 +19,7 @@ async def main(): # look at this hip new syntax! async with ( - tractor.open_actor_cluster( + tractor.experimental.open_actor_cluster( modules=[__name__] ) as portal_map, diff --git a/tests/test_clustering.py b/tests/test_clustering.py index 603b2eb4..1f836baf 100644 --- a/tests/test_clustering.py +++ b/tests/test_clustering.py @@ -3,7 +3,7 @@ import itertools import pytest import trio import tractor -from tractor import open_actor_cluster +from tractor.experimental import open_actor_cluster from tractor.trionics import gather_contexts from tractor._testing import tractor_test diff --git a/tractor/__init__.py b/tractor/__init__.py index 6fac747f..3ac1f5cc 100644 --- a/tractor/__init__.py +++ b/tractor/__init__.py @@ -15,13 +15,9 @@ # along with this program. If not, see . """ -tractor: structured concurrent ``trio``-"actors". +tractor: distributed structurred concurrency """ - -from ._clustering import ( - open_actor_cluster as open_actor_cluster, -) from ._context import ( Context as Context, # the type context as context, # a func-decorator diff --git a/tractor/experimental/__init__.py b/tractor/experimental/__init__.py index 4fad3bec..b0ac7d45 100644 --- a/tractor/experimental/__init__.py +++ b/tractor/experimental/__init__.py @@ -21,7 +21,12 @@ built-ins. This is a staging area for ``tractor.builtin``. ''' -from ._pubsub import pub as msgpub +from ._cluster import ( + open_actor_cluster as open_actor_cluster, +) +from ._pubsub import ( + pub as msgpub, +) __all__ = [ diff --git a/tractor/_clustering.py b/tractor/experimental/_cluster.py similarity index 100% rename from tractor/_clustering.py rename to tractor/experimental/_cluster.py