orca-python 0.7.0__tar.gz → 0.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.
- {orca_python-0.7.0 → orca_python-0.7.1}/PKG-INFO +1 -1
- {orca_python-0.7.0 → orca_python-0.7.1}/orca_python/main.py +13 -4
- {orca_python-0.7.0 → orca_python-0.7.1}/pyproject.toml +1 -1
- {orca_python-0.7.0 → orca_python-0.7.1}/LICENSE +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/README.md +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca/core/protobufs/python/__init__.py +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca/core/protobufs/python/service_pb2.py +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca/core/protobufs/python/service_pb2.pyi +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca/core/protobufs/python/service_pb2_grpc.py +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca/core/protobufs/python/vendor/__init__.py +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca/core/protobufs/python/vendor/validate_pb2.py +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca/core/protobufs/python/vendor/validate_pb2.pyi +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca/core/protobufs/python/vendor/validate_pb2_grpc.py +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca_python/__init__.py +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca_python/envs.py +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca_python/exceptions.py +0 -0
- {orca_python-0.7.0 → orca_python-0.7.1}/orca_python/py.typed +0 -0
@@ -10,8 +10,11 @@ import re
|
|
10
10
|
import sys
|
11
11
|
import asyncio
|
12
12
|
import logging
|
13
|
+
import datetime as dt
|
13
14
|
import traceback
|
14
15
|
|
16
|
+
from google.protobuf import timestamp_pb2
|
17
|
+
|
15
18
|
logging.basicConfig(
|
16
19
|
level=logging.INFO,
|
17
20
|
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
@@ -150,8 +153,8 @@ T = TypeVar("T", bound=AlgorithmFn)
|
|
150
153
|
|
151
154
|
@dataclass
|
152
155
|
class Window:
|
153
|
-
time_from:
|
154
|
-
time_to:
|
156
|
+
time_from: dt.datetime
|
157
|
+
time_to: dt.datetime
|
155
158
|
name: str
|
156
159
|
version: str
|
157
160
|
origin: str
|
@@ -167,9 +170,15 @@ def EmitWindow(window: Window) -> None:
|
|
167
170
|
"""
|
168
171
|
LOGGER.info(f"Emitting window: {window}")
|
169
172
|
|
173
|
+
_time_from = timestamp_pb2.Timestamp()
|
174
|
+
_time_from.FromDatetime(window.time_from)
|
175
|
+
|
176
|
+
_time_to = timestamp_pb2.Timestamp()
|
177
|
+
_time_to.FromDatetime(window.time_to)
|
178
|
+
|
170
179
|
window_pb = pb.Window()
|
171
|
-
window_pb.time_to =
|
172
|
-
window_pb.time_from =
|
180
|
+
window_pb.time_to = _time_from
|
181
|
+
window_pb.time_from = _time_to
|
173
182
|
window_pb.window_type_name = window.name
|
174
183
|
window_pb.window_type_version = window.version
|
175
184
|
window_pb.origin = window.origin
|
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
|
{orca_python-0.7.0 → orca_python-0.7.1}/orca/core/protobufs/python/vendor/validate_pb2_grpc.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|