asyncactor 0.26.3__tar.gz → 0.27.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {asyncactor-0.26.3 → asyncactor-0.27.0}/PKG-INFO +3 -2
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/actor.py +2 -2
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/backend/moat_kv.py +1 -1
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/backend/moat_link.py +1 -1
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/messages.py +5 -4
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor.egg-info/PKG-INFO +3 -2
- {asyncactor-0.26.3 → asyncactor-0.27.0}/.coveragerc +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/.gitignore +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/.pylintrc +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/.readthedocs.yml +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/.style.yapf +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/.travis.yml +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/CHANGELOG.rst +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/LICENSE +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/Makefile +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/README.rst +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/__init__.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/abc.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/backend/__init__.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/backend/mqtt.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/backend/mqttproto.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/backend/serf.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/events.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/exceptions.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor/nodelist.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor.egg-info/SOURCES.txt +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor.egg-info/dependency_links.txt +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor.egg-info/requires.txt +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/asyncactor.egg-info/top_level.txt +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/ci/rtd-requirements.txt +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/ci/test-requirements.txt +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/ci/travis.sh +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/docs/Makefile +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/docs/make.bat +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/docs/source/_static/.git_empty +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/docs/source/actor.rst +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/docs/source/conf.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/docs/source/history.rst +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/docs/source/index.rst +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/docs/source/rationale.rst +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/mktag +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/pyproject.toml +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/setup.cfg +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/tests/__init__.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/tests/mock_serf.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/tests/test_actor.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/tests/test_mosquitto.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/tests/test_mqttproto.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/tests/test_serf.py +0 -0
- {asyncactor-0.26.3 → asyncactor-0.27.0}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: asyncactor
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.27.0
|
|
4
4
|
Summary: Async decentralized actor
|
|
5
5
|
Author-email: Matthias Urlichs <matthias@urlichs.de>
|
|
6
6
|
Project-URL: homepage, https://github.com/smurfix/asyncactor
|
|
@@ -32,6 +32,7 @@ Requires-Dist: pytest-cov>=2.3; extra == "dev"
|
|
|
32
32
|
Requires-Dist: pytest-trio; extra == "dev"
|
|
33
33
|
Requires-Dist: pytest>=2.5.2; extra == "dev"
|
|
34
34
|
Requires-Dist: trio>=0.23; extra == "dev"
|
|
35
|
+
Dynamic: license-file
|
|
35
36
|
|
|
36
37
|
asyncactor
|
|
37
38
|
==========
|
|
@@ -312,8 +312,8 @@ class Actor(CtxObj):
|
|
|
312
312
|
with each incoming message.
|
|
313
313
|
"""
|
|
314
314
|
if self._send_raw:
|
|
315
|
-
await self.post_event(RawMsgEvent(msg
|
|
316
|
-
msg = Message.read(msg
|
|
315
|
+
await self.post_event(RawMsgEvent(msg))
|
|
316
|
+
msg = Message.read(msg)
|
|
317
317
|
if type(msg) is InitMessage and msg.node == self._name:
|
|
318
318
|
if self._self_seen.is_set():
|
|
319
319
|
# We may see our own Init only once.
|
|
@@ -45,7 +45,7 @@ class MQTTProtoTransport(Transport):
|
|
|
45
45
|
"""
|
|
46
46
|
Send a message.
|
|
47
47
|
"""
|
|
48
|
-
return self.conn.send(self.topic, payload, qos=QoS.AT_LEAST_ONCE, codec=self.codec)
|
|
48
|
+
return self.conn.send(self.topic, payload, qos=QoS.AT_LEAST_ONCE, codec=self.codec, retain=False)
|
|
49
49
|
|
|
50
50
|
def __repr__(self):
|
|
51
51
|
return f"<MQTT:{self.topic} @{self.conn!r}>"
|
|
@@ -96,6 +96,7 @@ class SetupMessage(_NodeMessage):
|
|
|
96
96
|
splits: int = 4
|
|
97
97
|
n_hosts: int = 10
|
|
98
98
|
force_in: bool = False
|
|
99
|
+
override: bool = False
|
|
99
100
|
|
|
100
101
|
_type: ClassVar[str] = "vers"
|
|
101
102
|
|
|
@@ -113,10 +114,10 @@ class SetupMessage(_NodeMessage):
|
|
|
113
114
|
|
|
114
115
|
def _verify(self):
|
|
115
116
|
"check parameters"
|
|
116
|
-
if self.cycle < .1:
|
|
117
|
-
raise ValueError("cycle must be >=
|
|
118
|
-
if self.gap < 0.
|
|
119
|
-
raise ValueError("gap must be >= 0.
|
|
117
|
+
if self.cycle < (0.01 if self.override else 1):
|
|
118
|
+
raise ValueError("cycle must be >= 1")
|
|
119
|
+
if self.gap < (0.001 if self.override else 0.1):
|
|
120
|
+
raise ValueError("gap must be >= 0.1")
|
|
120
121
|
if self.cycle < self.gap * 3:
|
|
121
122
|
raise ValueError("cycle must be >= 3*gap")
|
|
122
123
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: asyncactor
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.27.0
|
|
4
4
|
Summary: Async decentralized actor
|
|
5
5
|
Author-email: Matthias Urlichs <matthias@urlichs.de>
|
|
6
6
|
Project-URL: homepage, https://github.com/smurfix/asyncactor
|
|
@@ -32,6 +32,7 @@ Requires-Dist: pytest-cov>=2.3; extra == "dev"
|
|
|
32
32
|
Requires-Dist: pytest-trio; extra == "dev"
|
|
33
33
|
Requires-Dist: pytest>=2.5.2; extra == "dev"
|
|
34
34
|
Requires-Dist: trio>=0.23; extra == "dev"
|
|
35
|
+
Dynamic: license-file
|
|
35
36
|
|
|
36
37
|
asyncactor
|
|
37
38
|
==========
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|