datastreamcorelib 1.7.0__tar.gz → 1.7.1__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.
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/PKG-INFO +1 -1
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/pyproject.toml +1 -1
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/__init__.py +1 -1
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/utils.py +2 -4
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/LICENSE +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/README.rst +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/abstract.py +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/binpackers.py +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/datamessage.py +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/imagemessage.py +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/logging.py +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/pubsub.py +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/py.typed +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/reqrep.py +0 -0
- {datastreamcorelib-1.7.0 → datastreamcorelib-1.7.1}/src/datastreamcorelib/testhelpers.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "datastreamcorelib"
|
|
3
|
-
version = "1.7.
|
|
3
|
+
version = "1.7.1"
|
|
4
4
|
description = "Helpers and utilities for https://gitlab.com/advian-oss/python-datastreamservicelib that are not eventloop specific."
|
|
5
5
|
authors = [{name="Eero af Heurlin", email="eero.afheurlin@iki.fi" }]
|
|
6
6
|
homepage = "https://gitlab.com/advian-oss/python-datastreamcorelib/"
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"""Utilities"""
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
from .datamessage import PubSubDataMessage
|
|
3
|
+
from .datamessage import PubSubDataMessage, utctimestamp
|
|
6
4
|
|
|
7
5
|
try:
|
|
8
6
|
import resource
|
|
@@ -34,7 +32,7 @@ RESOURCE_KEYS = (
|
|
|
34
32
|
def create_heartbeat_message() -> PubSubDataMessage:
|
|
35
33
|
"""Create a heartbeat message"""
|
|
36
34
|
msg = PubSubDataMessage(b"HEARTBEAT")
|
|
37
|
-
msg.data["systemtime"] =
|
|
35
|
+
msg.data["systemtime"] = utctimestamp()
|
|
38
36
|
if MODRESOURCE_AVAILABLE:
|
|
39
37
|
rudata = resource.getrusage(resource.RUSAGE_SELF)
|
|
40
38
|
msg.data["resources"] = {}
|
|
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
|