synapse-gateway 1.7.12__py3-none-any.whl
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.
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""synapse-gateway - the ReactorPro Gateway (Synapse) native runtime."""
|
|
2
|
+
|
|
3
|
+
__version__ = "1.7.12"
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import subprocess
|
|
7
|
+
import sys
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
_BIN_DIR = Path(__file__).resolve().parent / "bin"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _binary(name: str) -> Path:
|
|
14
|
+
exe = name + (".exe" if os.name == "nt" else "")
|
|
15
|
+
path = _BIN_DIR / exe
|
|
16
|
+
if not path.is_file():
|
|
17
|
+
raise SystemExit(
|
|
18
|
+
f"synapse-gateway: {exe} is not bundled in this wheel. "
|
|
19
|
+
"Reinstall with --only-binary=:all:, or grab a binary from "
|
|
20
|
+
"https://github.com/DrOlu/ReactorPro/releases")
|
|
21
|
+
if os.name != "nt":
|
|
22
|
+
mode = path.stat().st_mode
|
|
23
|
+
if not mode & 0o100:
|
|
24
|
+
path.chmod(mode | 0o111)
|
|
25
|
+
return path
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _run(name: str, argv: list[str]) -> int:
|
|
29
|
+
exe = _binary(name)
|
|
30
|
+
if os.name == "nt":
|
|
31
|
+
return subprocess.call([str(exe), *argv])
|
|
32
|
+
os.execv(str(exe), [str(exe), *argv])
|
|
33
|
+
return 0 # pragma: no cover
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def main_gateway() -> int:
|
|
37
|
+
return _run("reactorpro-gateway", sys.argv[1:])
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def main_agentd() -> int:
|
|
41
|
+
return _run("reactorpro-agentd", sys.argv[1:])
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
if __name__ == "__main__":
|
|
45
|
+
sys.exit(main_gateway())
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: synapse-gateway
|
|
3
|
+
Version: 1.7.12
|
|
4
|
+
Summary: ReactorPro Gateway (Synapse) as a pip-installable native binary - headless agent mesh gateway + agentd worker
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# synapse-gateway
|
|
10
|
+
|
|
11
|
+
The ReactorPro Gateway (Synapse agent mesh) as native binaries:
|
|
12
|
+
`pip install synapse-gateway` then run `synapse-gateway` / `synapse-agentd`.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
synapse_gateway/__init__.py,sha256=mpC0_olVALbieHafamW3d7qHqmBD86lM0A2PAOBE50g,1161
|
|
2
|
+
synapse_gateway-1.7.12.dist-info/METADATA,sha256=WRQIrhMc8k5MiEuo4e6AEQ6kgO0P675wbm0c0zFbVX4,423
|
|
3
|
+
synapse_gateway-1.7.12.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
4
|
+
synapse_gateway-1.7.12.dist-info/entry_points.txt,sha256=QyyxgCmkKAWQKBGUTONrncq7w-HlXzsRf5OJdsNEXvo,110
|
|
5
|
+
synapse_gateway-1.7.12.dist-info/top_level.txt,sha256=Q3wXGEDshjGNn6hDqI64T9MRROwwwHA6UAZxSYmOYlM,16
|
|
6
|
+
synapse_gateway-1.7.12.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
synapse_gateway
|