orca-python 0.7.4__tar.gz → 0.7.5__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.4 → orca_python-0.7.5}/PKG-INFO +3 -3
- {orca_python-0.7.4 → orca_python-0.7.5}/README.md +2 -2
- orca_python-0.7.5/orca_python/envs.py +24 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/pyproject.toml +1 -1
- orca_python-0.7.4/orca_python/envs.py +0 -24
- {orca_python-0.7.4 → orca_python-0.7.5}/LICENSE +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca/core/protobufs/python/__init__.py +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca/core/protobufs/python/service_pb2.py +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca/core/protobufs/python/service_pb2.pyi +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca/core/protobufs/python/service_pb2_grpc.py +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca/core/protobufs/python/vendor/__init__.py +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca/core/protobufs/python/vendor/validate_pb2.py +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca/core/protobufs/python/vendor/validate_pb2.pyi +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca/core/protobufs/python/vendor/validate_pb2_grpc.py +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca_python/__init__.py +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca_python/exceptions.py +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/orca_python/main.py +0 -0
- {orca_python-0.7.4 → orca_python-0.7.5}/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.5
|
4
4
|
Summary: Python SDK for the Predixus Orca product
|
5
5
|
Author: Frederick Mannings
|
6
6
|
Author-email: contact@predixus.com
|
@@ -81,10 +81,10 @@ proc.Start()
|
|
81
81
|
Then run your python file to register it with orca-core:
|
82
82
|
|
83
83
|
```bash
|
84
|
-
|
84
|
+
ORCA_CORE=grpc://localhost:32770 PROCESSOR_ADDRESS=172.18.0.1 PROCESSOR_PORT=8080 python main.py
|
85
85
|
```
|
86
86
|
|
87
|
-
Replace the contents of `
|
87
|
+
Replace the contents of `ORCA_CORE`, `PROCESSOR_ADDRESS` and `PROCESSOR_PORT` with the output of `orca status`.
|
88
88
|
|
89
89
|
6. Emit a window to orcacore
|
90
90
|
TBD
|
@@ -65,10 +65,10 @@ proc.Start()
|
|
65
65
|
Then run your python file to register it with orca-core:
|
66
66
|
|
67
67
|
```bash
|
68
|
-
|
68
|
+
ORCA_CORE=grpc://localhost:32770 PROCESSOR_ADDRESS=172.18.0.1 PROCESSOR_PORT=8080 python main.py
|
69
69
|
```
|
70
70
|
|
71
|
-
Replace the contents of `
|
71
|
+
Replace the contents of `ORCA_CORE`, `PROCESSOR_ADDRESS` and `PROCESSOR_PORT` with the output of `orca status`.
|
72
72
|
|
73
73
|
6. Emit a window to orcacore
|
74
74
|
TBD
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import os
|
2
|
+
from typing import Tuple
|
3
|
+
|
4
|
+
from orca_python.exceptions import MissingDependency
|
5
|
+
|
6
|
+
|
7
|
+
def getenvs() -> Tuple[str, ...]:
|
8
|
+
orcaserver = os.getenv("ORCA_CORE", "")
|
9
|
+
if orcaserver == "":
|
10
|
+
raise MissingDependency("ORCA_CORE is required")
|
11
|
+
orcaserver = orcaserver.lstrip("grpc://")
|
12
|
+
|
13
|
+
port = os.getenv("PROCESSOR_PORT", "")
|
14
|
+
if port == "":
|
15
|
+
raise MissingDependency("PROCESSOR_PORT required")
|
16
|
+
|
17
|
+
host = os.getenv("PROCESSOR_ADDRESS", "")
|
18
|
+
if host == "":
|
19
|
+
raise MissingDependency("PROCESSOR_ADDRESS is required")
|
20
|
+
|
21
|
+
return orcaserver, port, host
|
22
|
+
|
23
|
+
|
24
|
+
ORCASERVER, PORT, HOST = getenvs()
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import os
|
2
|
-
from typing import Tuple
|
3
|
-
|
4
|
-
from orca_python.exceptions import MissingDependency
|
5
|
-
|
6
|
-
|
7
|
-
def getenvs() -> Tuple[str, ...]:
|
8
|
-
orcaserver = os.getenv("ORCASERVER", "")
|
9
|
-
if orcaserver == "":
|
10
|
-
MissingDependency("ORCASERVER is required")
|
11
|
-
orcaserver = orcaserver.lstrip("grpc://")
|
12
|
-
|
13
|
-
port = os.getenv("PORT", "")
|
14
|
-
if port == "":
|
15
|
-
MissingDependency("PORT required")
|
16
|
-
|
17
|
-
host = os.getenv("HOST", "")
|
18
|
-
if host == "":
|
19
|
-
MissingDependency("HOST is required")
|
20
|
-
|
21
|
-
return orcaserver, port, host
|
22
|
-
|
23
|
-
|
24
|
-
ORCASERVER, PORT, HOST = getenvs()
|
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.4 → orca_python-0.7.5}/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
|