orca-python 0.7.10__tar.gz → 0.7.12__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.
Potentially problematic release.
This version of orca-python might be problematic. Click here for more details.
- {orca_python-0.7.10 → orca_python-0.7.12}/PKG-INFO +3 -1
- {orca_python-0.7.10 → orca_python-0.7.12}/orca/core/protobufs/python/service_pb2.py +2 -2
- {orca_python-0.7.10 → orca_python-0.7.12}/orca_python/main.py +8 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/pyproject.toml +3 -1
- {orca_python-0.7.10 → orca_python-0.7.12}/LICENSE +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/README.md +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca/core/protobufs/python/__init__.py +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca/core/protobufs/python/service_pb2.pyi +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca/core/protobufs/python/service_pb2_grpc.py +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca/core/protobufs/python/vendor/__init__.py +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca/core/protobufs/python/vendor/validate_pb2.py +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca/core/protobufs/python/vendor/validate_pb2.pyi +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca/core/protobufs/python/vendor/validate_pb2_grpc.py +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca_python/__init__.py +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca_python/envs.py +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca_python/exceptions.py +0 -0
- {orca_python-0.7.10 → orca_python-0.7.12}/orca_python/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: orca-python
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.12
|
|
4
4
|
Summary: Python SDK for the Predixus Orca product
|
|
5
5
|
Author: Frederick Mannings
|
|
6
6
|
Author-email: contact@predixus.com
|
|
@@ -11,7 +11,9 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
13
|
Requires-Dist: grpcio (>=1.71.0,<2.0.0)
|
|
14
|
+
Requires-Dist: grpcio-reflection (>=1.74.0,<2.0.0)
|
|
14
15
|
Requires-Dist: grpcio-tools (>=1.71.0,<2.0.0)
|
|
16
|
+
Requires-Dist: mypy (>=1.18.1,<2.0.0)
|
|
15
17
|
Description-Content-Type: text/markdown
|
|
16
18
|
|
|
17
19
|
# 🐳 Orca Python SDK
|
|
@@ -27,14 +27,14 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
|
|
|
27
27
|
from vendor import validate_pb2 as vendor_dot_validate__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rservice.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15vendor/validate.proto\"\xf8\x02\n\x06Window\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12$\n\x10window_type_name\x18\x03 \x01(\tB\n\xbaH\x07r\x02\x10\x01\xc8\x01\x01\x12\'\n\x13window_type_version\x18\x04 \x01(\tB\n\xbaH\x07r\x02\x10\x01\xc8\x01\x01\x12\x1a\n\x06origin\x18\x05 \x01(\tB\n\xbaH\x07r\x02\x10\x01\xc8\x01\x01\x12)\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct:b\xbaH_\x1a]\n\x14window.time_ordering\x12&time_to must be greater than time_from\x1a\x1dthis.time_to > this.time_from\"X\n\nWindowType\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x17\n\x07version\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x1b\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\"\xa4\x01\n\x10WindowEmitStatus\x12\x34\n\x06status\x18\x01 \x01(\x0e\x32\x1c.WindowEmitStatus.StatusEnumB\x06\xbaH\x03\xc8\x01\x01\"Z\n\nStatusEnum\x12\x1b\n\x17NO_TRIGGERED_ALGORITHMS\x10\x00\x12\x18\n\x14PROCESSING_TRIGGERED\x10\x01\x12\x15\n\x11TRIGGERING_FAILED\x10\x02\"\x87\x01\n\x13\x41lgorithmDependency\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x17\n\x07version\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x1e\n\x0eprocessor_name\x18\x03 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12!\n\x11processor_runtime\x18\x04 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\"\xba\x01\n\tAlgorithm\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x17\n\x07version\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12(\n\x0bwindow_type\x18\x03 \x01(\x0b\x32\x0b.WindowTypeB\x06\xbaH\x03\xc8\x01\x01\x12*\n\x0c\x64\x65pendencies\x18\x04 \x03(\x0b\x32\x14.AlgorithmDependency\x12(\n\x0bresult_type\x18\x05 \x01(\x0e\x32\x0b.ResultTypeB\x06\xbaH\x03\xc8\x01\x01\"\x1c\n\nFloatArray\x12\x0e\n\x06values\x18\x01 \x03(\x02\"\xc7\x01\n\x06Result\x12%\n\x06status\x18\x01 \x01(\x0e\x32\r.ResultStatusB\x06\xbaH\x03\xc8\x01\x01\x12\x16\n\x0csingle_value\x18\x02 \x01(\x02H\x00\x12#\n\x0c\x66loat_values\x18\x03 \x01(\x0b\x32\x0b.FloatArrayH\x00\x12/\n\x0cstruct_value\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x19\n\ttimestamp\x18\x05 \x01(\x03\x42\x06\xbaH\x03\xc8\x01\x01\x42\r\n\x0bresult_data\"\x98\x01\n\x15ProcessorRegistration\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x17\n\x07runtime\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x1e\n\x0e\x63onnection_str\x18\x03 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x30\n\x14supported_algorithms\x18\x04 \x03(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\"\x96\x01\n\x0eProcessingTask\x12\x17\n\x07task_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12%\n\talgorithm\x18\x02 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\x12\x1f\n\x06window\x18\x03 \x01(\x0b\x32\x07.WindowB\x06\xbaH\x03\xc8\x01\x01\x12#\n\x12\x64\x65pendency_results\x18\x04 \x03(\x0b\x32\x07.Result\"\x99\x01\n\x10\x45xecutionRequest\x12\x17\n\x07\x65xec_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x1f\n\x06window\x18\x02 \x01(\x0b\x32\x07.WindowB\x06\xbaH\x03\xc8\x01\x01\x12+\n\x11\x61lgorithm_results\x18\x03 \x03(\x0b\x32\x10.AlgorithmResult\x12\x1e\n\nalgorithms\x18\x04 \x03(\x0b\x32\n.Algorithm\"^\n\x0f\x45xecutionResult\x12\x17\n\x07\x65xec_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x32\n\x10\x61lgorithm_result\x18\x03 \x01(\x0b\x32\x10.AlgorithmResultB\x06\xbaH\x03\xc8\x01\x01\"Y\n\x0f\x41lgorithmResult\x12%\n\talgorithm\x18\x01 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\x12\x1f\n\x06result\x18\x02 \x01(\x0b\x32\x07.ResultB\x06\xbaH\x03\xc8\x01\x01\"+\n\x06Status\x12\x10\n\x08received\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\t\"/\n\x12HealthCheckRequest\x12\x19\n\ttimestamp\x18\x01 \x01(\x03\x42\x06\xbaH\x03\xc8\x01\x01\"\xe3\x01\n\x13HealthCheckResponse\x12\x33\n\x06status\x18\x01 \x01(\x0e\x32\x1b.HealthCheckResponse.StatusB\x06\xbaH\x03\xc8\x01\x01\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\"\n\x07metrics\x18\x03 \x01(\x0b\x32\x11.ProcessorMetrics\"b\n\x06Status\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x00\x12\x12\n\x0eSTATUS_SERVING\x10\x01\x12\x18\n\x14STATUS_TRANSITIONING\x10\x02\x12\x16\n\x12STATUS_NOT_SERVING\x10\x03\"k\n\x10ProcessorMetrics\x12\x14\n\x0c\x61\x63tive_tasks\x18\x01 \x01(\x05\x12\x14\n\x0cmemory_bytes\x18\x02 \x01(\x03\x12\x13\n\x0b\x63pu_percent\x18\x03 \x01(\x02\x12\x16\n\x0euptime_seconds\x18\x04 \x01(\x03\"\x10\n\x0eWindowTypeRead\"+\n\x0bWindowTypes\x12\x1c\n\x07windows\x18\x01 \x03(\x0b\x32\x0b.WindowType\"\x10\n\x0e\x41lgorithmsRead\"+\n\nAlgorithms\x12\x1d\n\talgorithm\x18\x01 \x03(\x0b\x32\n.Algorithm\"\x10\n\x0eProcessorsRead\"b\n\nProcessors\x12(\n\tprocessor\x18\x01 \x03(\x0b\x32\x15.Processors.Processor\x1a*\n\tProcessor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07runtime\x18\x02 \x01(\t\"\x12\n\x10ResultsStatsRead\"\x1d\n\x0cResultsStats\x12\r\n\x05\x43ount\x18\x01 \x01(\x03\"\xb2\x01\n\x13\x41lgorithmFieldsRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12%\n\talgorithm\x18\x03 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\" \n\x0f\x41lgorithmFields\x12\r\n\x05\x66ield\x18\x01 \x03(\t\"\xb6\x01\n\x17ResultsForAlgorithmRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12%\n\talgorithm\x18\x03 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\"\x8a\x02\n\x13ResultsForAlgorithm\x12\x30\n\x07results\x18\x01 \x03(\x0b\x32\x1f.ResultsForAlgorithm.ResultsRow\x1a\xc0\x01\n\nResultsRow\x12\x35\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x16\n\x0csingle_value\x18\x02 \x01(\x02H\x00\x12#\n\x0c\x61rray_values\x18\x03 \x01(\x0b\x32\x0b.FloatArrayH\x00\x12/\n\x0cstruct_value\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x42\r\n\x0bresult_data\"\xa8\x01\n\x0bWindowsRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12#\n\x06window\x18\x03 \x01(\x0b\x32\x0b.WindowTypeB\x06\xbaH\x03\xc8\x01\x01\"\"\n\x07Windows\x12\x17\n\x06window\x18\x01 \x03(\x0b\x32\x07.Window\"\xbb\x01\n!DistinctMetadataForWindowTypeRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12 \n\x0bwindow_type\x18\x03 \x01(\x0b\x32\x0b.WindowType\"M\n\x1d\x44istinctMetadataForWindowType\x12,\n\x08metadata\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"\xb1\x02\n\x16WindowsForMetadataRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12#\n\x06window\x18\x03 \x01(\x0b\x32\x0b.WindowTypeB\x06\xbaH\x03\xc8\x01\x01\x12:\n\x08metadata\x18\x04 \x03(\x0b\x32 .WindowsForMetadataRead.MetadataB\x06\xbaH\x03\xc8\x01\x01\x1a@\n\x08Metadata\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"-\n\x12WindowsForMetadata\x12\x17\n\x06window\x18\x01 \x03(\x0b\x32\x07.Window\"\xcb\x02\n\"ResultsForAlgorithmAndMetadataRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12%\n\talgorithm\x18\x03 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\x12\x46\n\x08metadata\x18\x04 \x03(\x0b\x32,.ResultsForAlgorithmAndMetadataRead.MetadataB\x06\xbaH\x03\xc8\x01\x01\x1a@\n\x08Metadata\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"\xa0\x02\n\x1eResultsForAlgorithmAndMetadata\x12;\n\x07results\x18\x01 \x03(\x0b\x32*.ResultsForAlgorithmAndMetadata.ResultsRow\x1a\xc0\x01\n\nResultsRow\x12\x35\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x16\n\x0csingle_value\x18\x02 \x01(\x02H\x00\x12#\n\x0c\x61rray_values\x18\x03 \x01(\x0b\x32\x0b.FloatArrayH\x00\x12/\n\x0cstruct_value\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x42\r\n\x0bresult_data\"\x91\x03\n\rAnnotateWrite\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12/\n\x13\x63\x61ptured_algorithms\x18\x03 \x03(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\x12-\n\x10\x63\x61ptured_windows\x18\x04 \x03(\x0b\x32\x0b.WindowTypeB\x06\xbaH\x03\xc8\x01\x01\x12\x1b\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12)\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct:b\xbaH_\x1a]\n\x14window.time_ordering\x12&time_to must be greater than time_from\x1a\x1dthis.time_to > this.time_from\"\x12\n\x10\x41nnotateResponse*K\n\nResultType\x12\x11\n\rNOT_SPECIFIED\x10\x00\x12\n\n\x06STRUCT\x10\x01\x12\t\n\x05VALUE\x10\x02\x12\t\n\x05\x41RRAY\x10\x03\x12\x08\n\x04NONE\x10\x04*p\n\x0cResultStatus\x12 \n\x1cRESULT_STATUS_HANDLED_FAILED\x10\x00\x12\"\n\x1eRESULT_STATUS_UNHANDLED_FAILED\x10\x01\x12\x1a\n\x16RESULT_STATUS_SUCEEDED\x10\x02\x32\xb8\x06\n\x08OrcaCore\x12\x34\n\x11RegisterProcessor\x12\x16.ProcessorRegistration\x1a\x07.Status\x12(\n\nEmitWindow\x12\x07.Window\x1a\x11.WindowEmitStatus\x12\x30\n\x0fReadWindowTypes\x12\x0f.WindowTypeRead\x1a\x0c.WindowTypes\x12.\n\x0eReadAlgorithms\x12\x0f.AlgorithmsRead\x1a\x0b.Algorithms\x12.\n\x0eReadProcessors\x12\x0f.ProcessorsRead\x1a\x0b.Processors\x12\x34\n\x10ReadResultsStats\x12\x11.ResultsStatsRead\x1a\r.ResultsStats\x12\x46\n\x1cReadResultFieldsForAlgorithm\x12\x14.AlgorithmFieldsRead\x1a\x10.AlgorithmFields\x12I\n\x17ReadResultsForAlgorithm\x12\x18.ResultsForAlgorithmRead\x1a\x14.ResultsForAlgorithm\x12%\n\x0bReadWindows\x12\x0c.WindowsRead\x1a\x08.Windows\x12g\n!ReadDistinctMetadataForWindowType\x12\".DistinctMetadataForWindowTypeRead\x1a\x1e.DistinctMetadataForWindowType\x12\x46\n\x16ReadWindowsForMetadata\x12\x17.WindowsForMetadataRead\x1a\x13.WindowsForMetadata\x12j\n\"ReadResultsForAlgorithmAndMetadata\x12#.ResultsForAlgorithmAndMetadataRead\x1a\x1f.ResultsForAlgorithmAndMetadata\x12-\n\x08\x41nnotate\x12\x0e.AnnotateWrite\x1a\x11.AnnotateResponse2\x82\x01\n\rOrcaProcessor\x12\x37\n\x0e\x45xecuteDagPart\x12\x11.ExecutionRequest\x1a\x10.ExecutionResult0\x01\x12\x38\n\x0bHealthCheck\x12\x13.HealthCheckRequest\x1a\x14.HealthCheckResponseB\'Z%github.com/predixus/orca/protobufs/gob\x06proto3')
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rservice.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15vendor/validate.proto\"\xf8\x02\n\x06Window\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12$\n\x10window_type_name\x18\x03 \x01(\tB\n\xbaH\x07r\x02\x10\x01\xc8\x01\x01\x12\'\n\x13window_type_version\x18\x04 \x01(\tB\n\xbaH\x07r\x02\x10\x01\xc8\x01\x01\x12\x1a\n\x06origin\x18\x05 \x01(\tB\n\xbaH\x07r\x02\x10\x01\xc8\x01\x01\x12)\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct:b\xbaH_\x1a]\n\x14window.time_ordering\x12&time_to must be greater than time_from\x1a\x1dthis.time_to > this.time_from\"X\n\nWindowType\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x17\n\x07version\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x1b\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\"\xa4\x01\n\x10WindowEmitStatus\x12\x34\n\x06status\x18\x01 \x01(\x0e\x32\x1c.WindowEmitStatus.StatusEnumB\x06\xbaH\x03\xc8\x01\x01\"Z\n\nStatusEnum\x12\x1b\n\x17NO_TRIGGERED_ALGORITHMS\x10\x00\x12\x18\n\x14PROCESSING_TRIGGERED\x10\x01\x12\x15\n\x11TRIGGERING_FAILED\x10\x02\"\x87\x01\n\x13\x41lgorithmDependency\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x17\n\x07version\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x1e\n\x0eprocessor_name\x18\x03 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12!\n\x11processor_runtime\x18\x04 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\"\xba\x01\n\tAlgorithm\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x17\n\x07version\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12(\n\x0bwindow_type\x18\x03 \x01(\x0b\x32\x0b.WindowTypeB\x06\xbaH\x03\xc8\x01\x01\x12*\n\x0c\x64\x65pendencies\x18\x04 \x03(\x0b\x32\x14.AlgorithmDependency\x12(\n\x0bresult_type\x18\x05 \x01(\x0e\x32\x0b.ResultTypeB\x06\xbaH\x03\xc8\x01\x01\"\x1c\n\nFloatArray\x12\x0e\n\x06values\x18\x01 \x03(\x02\"\xc7\x01\n\x06Result\x12%\n\x06status\x18\x01 \x01(\x0e\x32\r.ResultStatusB\x06\xbaH\x03\xc8\x01\x01\x12\x16\n\x0csingle_value\x18\x02 \x01(\x02H\x00\x12#\n\x0c\x66loat_values\x18\x03 \x01(\x0b\x32\x0b.FloatArrayH\x00\x12/\n\x0cstruct_value\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x19\n\ttimestamp\x18\x05 \x01(\x03\x42\x06\xbaH\x03\xc8\x01\x01\x42\r\n\x0bresult_data\"\x98\x01\n\x15ProcessorRegistration\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x17\n\x07runtime\x18\x02 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x1e\n\x0e\x63onnection_str\x18\x03 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x30\n\x14supported_algorithms\x18\x04 \x03(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\"\x96\x01\n\x0eProcessingTask\x12\x17\n\x07task_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12%\n\talgorithm\x18\x02 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\x12\x1f\n\x06window\x18\x03 \x01(\x0b\x32\x07.WindowB\x06\xbaH\x03\xc8\x01\x01\x12#\n\x12\x64\x65pendency_results\x18\x04 \x03(\x0b\x32\x07.Result\"\x99\x01\n\x10\x45xecutionRequest\x12\x17\n\x07\x65xec_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x1f\n\x06window\x18\x02 \x01(\x0b\x32\x07.WindowB\x06\xbaH\x03\xc8\x01\x01\x12+\n\x11\x61lgorithm_results\x18\x03 \x03(\x0b\x32\x10.AlgorithmResult\x12\x1e\n\nalgorithms\x18\x04 \x03(\x0b\x32\n.Algorithm\"^\n\x0f\x45xecutionResult\x12\x17\n\x07\x65xec_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12\x32\n\x10\x61lgorithm_result\x18\x03 \x01(\x0b\x32\x10.AlgorithmResultB\x06\xbaH\x03\xc8\x01\x01\"Y\n\x0f\x41lgorithmResult\x12%\n\talgorithm\x18\x01 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\x12\x1f\n\x06result\x18\x02 \x01(\x0b\x32\x07.ResultB\x06\xbaH\x03\xc8\x01\x01\"+\n\x06Status\x12\x10\n\x08received\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\t\"/\n\x12HealthCheckRequest\x12\x19\n\ttimestamp\x18\x01 \x01(\x03\x42\x06\xbaH\x03\xc8\x01\x01\"\xe3\x01\n\x13HealthCheckResponse\x12\x33\n\x06status\x18\x01 \x01(\x0e\x32\x1b.HealthCheckResponse.StatusB\x06\xbaH\x03\xc8\x01\x01\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\"\n\x07metrics\x18\x03 \x01(\x0b\x32\x11.ProcessorMetrics\"b\n\x06Status\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x00\x12\x12\n\x0eSTATUS_SERVING\x10\x01\x12\x18\n\x14STATUS_TRANSITIONING\x10\x02\x12\x16\n\x12STATUS_NOT_SERVING\x10\x03\"k\n\x10ProcessorMetrics\x12\x14\n\x0c\x61\x63tive_tasks\x18\x01 \x01(\x05\x12\x14\n\x0cmemory_bytes\x18\x02 \x01(\x03\x12\x13\n\x0b\x63pu_percent\x18\x03 \x01(\x02\x12\x16\n\x0euptime_seconds\x18\x04 \x01(\x03\"\x10\n\x0eWindowTypeRead\"+\n\x0bWindowTypes\x12\x1c\n\x07windows\x18\x01 \x03(\x0b\x32\x0b.WindowType\"\x10\n\x0e\x41lgorithmsRead\"+\n\nAlgorithms\x12\x1d\n\talgorithm\x18\x01 \x03(\x0b\x32\n.Algorithm\"\x10\n\x0eProcessorsRead\"b\n\nProcessors\x12(\n\tprocessor\x18\x01 \x03(\x0b\x32\x15.Processors.Processor\x1a*\n\tProcessor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07runtime\x18\x02 \x01(\t\"\x12\n\x10ResultsStatsRead\"\x1d\n\x0cResultsStats\x12\r\n\x05\x43ount\x18\x01 \x01(\x03\"\xb2\x01\n\x13\x41lgorithmFieldsRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12%\n\talgorithm\x18\x03 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\" \n\x0f\x41lgorithmFields\x12\r\n\x05\x66ield\x18\x01 \x03(\t\"\xb6\x01\n\x17ResultsForAlgorithmRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12%\n\talgorithm\x18\x03 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\"\x8a\x02\n\x13ResultsForAlgorithm\x12\x30\n\x07results\x18\x01 \x03(\x0b\x32\x1f.ResultsForAlgorithm.ResultsRow\x1a\xc0\x01\n\nResultsRow\x12\x35\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x16\n\x0csingle_value\x18\x02 \x01(\x02H\x00\x12#\n\x0c\x61rray_values\x18\x03 \x01(\x0b\x32\x0b.FloatArrayH\x00\x12/\n\x0cstruct_value\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x42\r\n\x0bresult_data\"\xa8\x01\n\x0bWindowsRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12#\n\x06window\x18\x03 \x01(\x0b\x32\x0b.WindowTypeB\x06\xbaH\x03\xc8\x01\x01\"\"\n\x07Windows\x12\x17\n\x06window\x18\x01 \x03(\x0b\x32\x07.Window\"\xbb\x01\n!DistinctMetadataForWindowTypeRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12 \n\x0bwindow_type\x18\x03 \x01(\x0b\x32\x0b.WindowType\"M\n\x1d\x44istinctMetadataForWindowType\x12,\n\x08metadata\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"\xb1\x02\n\x16WindowsForMetadataRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12#\n\x06window\x18\x03 \x01(\x0b\x32\x0b.WindowTypeB\x06\xbaH\x03\xc8\x01\x01\x12:\n\x08metadata\x18\x04 \x03(\x0b\x32 .WindowsForMetadataRead.MetadataB\x06\xbaH\x03\xc8\x01\x01\x1a@\n\x08Metadata\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"-\n\x12WindowsForMetadata\x12\x17\n\x06window\x18\x01 \x03(\x0b\x32\x07.Window\"\xcb\x02\n\"ResultsForAlgorithmAndMetadataRead\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12%\n\talgorithm\x18\x03 \x01(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\x12\x46\n\x08metadata\x18\x04 \x03(\x0b\x32,.ResultsForAlgorithmAndMetadataRead.MetadataB\x06\xbaH\x03\xc8\x01\x01\x1a@\n\x08Metadata\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"\xa0\x02\n\x1eResultsForAlgorithmAndMetadata\x12;\n\x07results\x18\x01 \x03(\x0b\x32*.ResultsForAlgorithmAndMetadata.ResultsRow\x1a\xc0\x01\n\nResultsRow\x12\x35\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x16\n\x0csingle_value\x18\x02 \x01(\x02H\x00\x12#\n\x0c\x61rray_values\x18\x03 \x01(\x0b\x32\x0b.FloatArrayH\x00\x12/\n\x0cstruct_value\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x42\r\n\x0bresult_data\"\x91\x03\n\rAnnotateWrite\x12:\n\ttime_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12\x38\n\x07time_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02*\x00\xc8\x01\x01\x12/\n\x13\x63\x61ptured_algorithms\x18\x03 \x03(\x0b\x32\n.AlgorithmB\x06\xbaH\x03\xc8\x01\x01\x12-\n\x10\x63\x61ptured_windows\x18\x04 \x03(\x0b\x32\x0b.WindowTypeB\x06\xbaH\x03\xc8\x01\x01\x12\x1b\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x06\xbaH\x03\xc8\x01\x01\x12)\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct:b\xbaH_\x1a]\n\x14window.time_ordering\x12&time_to must be greater than time_from\x1a\x1dthis.time_to > this.time_from\"\x12\n\x10\x41nnotateResponse*K\n\nResultType\x12\x11\n\rNOT_SPECIFIED\x10\x00\x12\n\n\x06STRUCT\x10\x01\x12\t\n\x05VALUE\x10\x02\x12\t\n\x05\x41RRAY\x10\x03\x12\x08\n\x04NONE\x10\x04*p\n\x0cResultStatus\x12 \n\x1cRESULT_STATUS_HANDLED_FAILED\x10\x00\x12\"\n\x1eRESULT_STATUS_UNHANDLED_FAILED\x10\x01\x12\x1a\n\x16RESULT_STATUS_SUCEEDED\x10\x02\x32\xb8\x06\n\x08OrcaCore\x12\x34\n\x11RegisterProcessor\x12\x16.ProcessorRegistration\x1a\x07.Status\x12(\n\nEmitWindow\x12\x07.Window\x1a\x11.WindowEmitStatus\x12\x30\n\x0fReadWindowTypes\x12\x0f.WindowTypeRead\x1a\x0c.WindowTypes\x12.\n\x0eReadAlgorithms\x12\x0f.AlgorithmsRead\x1a\x0b.Algorithms\x12.\n\x0eReadProcessors\x12\x0f.ProcessorsRead\x1a\x0b.Processors\x12\x34\n\x10ReadResultsStats\x12\x11.ResultsStatsRead\x1a\r.ResultsStats\x12\x46\n\x1cReadResultFieldsForAlgorithm\x12\x14.AlgorithmFieldsRead\x1a\x10.AlgorithmFields\x12I\n\x17ReadResultsForAlgorithm\x12\x18.ResultsForAlgorithmRead\x1a\x14.ResultsForAlgorithm\x12%\n\x0bReadWindows\x12\x0c.WindowsRead\x1a\x08.Windows\x12g\n!ReadDistinctMetadataForWindowType\x12\".DistinctMetadataForWindowTypeRead\x1a\x1e.DistinctMetadataForWindowType\x12\x46\n\x16ReadWindowsForMetadata\x12\x17.WindowsForMetadataRead\x1a\x13.WindowsForMetadata\x12j\n\"ReadResultsForAlgorithmAndMetadata\x12#.ResultsForAlgorithmAndMetadataRead\x1a\x1f.ResultsForAlgorithmAndMetadata\x12-\n\x08\x41nnotate\x12\x0e.AnnotateWrite\x1a\x11.AnnotateResponse2\x82\x01\n\rOrcaProcessor\x12\x37\n\x0e\x45xecuteDagPart\x12\x11.ExecutionRequest\x1a\x10.ExecutionResult0\x01\x12\x38\n\x0bHealthCheck\x12\x13.HealthCheckRequest\x1a\x14.HealthCheckResponseB,Z*github.com/orc-analytics/orca/protobufs/gob\x06proto3')
|
|
31
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
34
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'service_pb2', _globals)
|
|
35
35
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
36
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
-
_globals['DESCRIPTOR']._serialized_options = b'Z
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z*github.com/orc-analytics/orca/protobufs/go'
|
|
38
38
|
_globals['_WINDOW'].fields_by_name['time_from']._loaded_options = None
|
|
39
39
|
_globals['_WINDOW'].fields_by_name['time_from']._serialized_options = b'\272H\010\262\001\002*\000\310\001\001'
|
|
40
40
|
_globals['_WINDOW'].fields_by_name['time_to']._loaded_options = None
|
|
@@ -47,6 +47,7 @@ import service_pb2_grpc
|
|
|
47
47
|
import google.protobuf.struct_pb2 as struct_pb2
|
|
48
48
|
from google.protobuf import json_format
|
|
49
49
|
from service_pb2_grpc import OrcaProcessorServicer
|
|
50
|
+
from grpc_reflection.v1alpha import reflection
|
|
50
51
|
|
|
51
52
|
from orca_python import envs
|
|
52
53
|
from orca_python.exceptions import (
|
|
@@ -692,6 +693,13 @@ class Processor(OrcaProcessorServicer): # type: ignore
|
|
|
692
693
|
# add our servicer to the server
|
|
693
694
|
service_pb2_grpc.add_OrcaProcessorServicer_to_server(self, server)
|
|
694
695
|
|
|
696
|
+
# Enable reflection for service discovery
|
|
697
|
+
SERVICE_NAMES = (
|
|
698
|
+
pb.DESCRIPTOR.services_by_name["OrcaProcessor"].full_name,
|
|
699
|
+
reflection.SERVICE_NAME,
|
|
700
|
+
)
|
|
701
|
+
reflection.enable_server_reflection(SERVICE_NAMES, server)
|
|
702
|
+
|
|
695
703
|
# add the server port
|
|
696
704
|
port = server.add_insecure_port(self._processorConnStr)
|
|
697
705
|
if port == 0:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "orca-python"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.12"
|
|
4
4
|
description = "Python SDK for the Predixus Orca product"
|
|
5
5
|
authors = [
|
|
6
6
|
"Frederick Mannings <contact@predixus.com>"
|
|
@@ -18,6 +18,8 @@ build-backend = "poetry.core.masonry.api"
|
|
|
18
18
|
python = ">=3.10"
|
|
19
19
|
grpcio-tools = "^1.71.0"
|
|
20
20
|
grpcio = "^1.71.0"
|
|
21
|
+
mypy = "^1.18.1"
|
|
22
|
+
grpcio-reflection = "^1.74.0"
|
|
21
23
|
|
|
22
24
|
[tool.poetry.group.dev.dependencies]
|
|
23
25
|
poethepoet = "^0.34.0"
|
|
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.10 → orca_python-0.7.12}/orca/core/protobufs/python/vendor/validate_pb2.pyi
RENAMED
|
File without changes
|
{orca_python-0.7.10 → orca_python-0.7.12}/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
|