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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: datastreamcorelib
3
- Version: 1.7.0
3
+ Version: 1.7.1
4
4
  Summary: Helpers and utilities for https://gitlab.com/advian-oss/python-datastreamservicelib that are not eventloop specific.
5
5
  License: MIT
6
6
  Author: Eero af Heurlin
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "datastreamcorelib"
3
- version = "1.7.0"
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,3 +1,3 @@
1
1
  """Core helpers and Abstract Base Classes for making use of ZMQ nice, easy and DRY"""
2
2
 
3
- __version__ = "1.7.0" # NOTE Use `bump2version patch` to bump versions correctly
3
+ __version__ = "1.7.1" # NOTE Use `bump2version patch` to bump versions correctly
@@ -1,8 +1,6 @@
1
1
  """Utilities"""
2
2
 
3
- import datetime
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"] = datetime.datetime.utcnow().isoformat() + "Z"
35
+ msg.data["systemtime"] = utctimestamp()
38
36
  if MODRESOURCE_AVAILABLE:
39
37
  rudata = resource.getrusage(resource.RUSAGE_SELF)
40
38
  msg.data["resources"] = {}