pilotprotocol 0.1.0__tar.gz → 0.1.2__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.
- {pilotprotocol-0.1.0/pilotprotocol.egg-info → pilotprotocol-0.1.2}/PKG-INFO +4 -4
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/README.md +3 -3
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol/bin/libpilot.so +0 -0
- pilotprotocol-0.1.0/pilotprotocol/bin/pilotctl → pilotprotocol-0.1.2/pilotprotocol/bin/pilot-daemon +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol/bin/pilot-gateway +0 -0
- pilotprotocol-0.1.0/pilotprotocol/bin/pilot-daemon → pilotprotocol-0.1.2/pilotprotocol/bin/pilot-updater +0 -0
- pilotprotocol-0.1.2/pilotprotocol/bin/pilotctl +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol/cli.py +27 -5
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol/client.py +4 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2/pilotprotocol.egg-info}/PKG-INFO +4 -4
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol.egg-info/SOURCES.txt +1 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol.egg-info/entry_points.txt +1 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pyproject.toml +2 -1
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/CHANGELOG.md +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/LICENSE +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/MANIFEST.in +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol/__init__.py +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol/bin/libpilot.h +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol/py.typed +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol.egg-info/dependency_links.txt +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol.egg-info/requires.txt +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/pilotprotocol.egg-info/top_level.txt +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/setup.cfg +0 -0
- {pilotprotocol-0.1.0 → pilotprotocol-0.1.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pilotprotocol
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Python SDK for Pilot Protocol - the network stack for AI agents
|
|
5
5
|
Author-email: Alexandru Godoroja <alex@vulturelabs.com>
|
|
6
6
|
Maintainer-email: Alexandru Godoroja <alex@vulturelabs.com>, Teodor Calin <teodor@vulturelabs.com>
|
|
@@ -69,8 +69,8 @@ pip install pilotprotocol
|
|
|
69
69
|
|
|
70
70
|
The installation process will automatically:
|
|
71
71
|
1. Install the Python SDK package
|
|
72
|
-
2. Download and install the Pilot Protocol
|
|
73
|
-
3. Set up
|
|
72
|
+
2. Download and install the Pilot Protocol binaries (`pilotctl`, `pilot-daemon`, `pilot-gateway`, `pilot-updater`)
|
|
73
|
+
3. Set up system services (systemd on Linux, launchd on macOS) for daemon and auto-updater
|
|
74
74
|
4. Configure the default rendezvous server
|
|
75
75
|
|
|
76
76
|
**Platform Support:**
|
|
@@ -82,7 +82,7 @@ The installation process will automatically:
|
|
|
82
82
|
|
|
83
83
|
When you run `pip install pilotprotocol`:
|
|
84
84
|
1. The wheel is downloaded and extracted to your Python environment
|
|
85
|
-
2. Entry points create console scripts: `pilotctl`, `pilot-daemon`, `pilot-gateway`
|
|
85
|
+
2. Entry points create console scripts: `pilotctl`, `pilot-daemon`, `pilot-gateway`, `pilot-updater`
|
|
86
86
|
3. Binaries are bundled in the package at `site-packages/pilotprotocol/bin/`
|
|
87
87
|
4. On first command execution, `~/.pilot/config.json` is automatically created
|
|
88
88
|
|
|
@@ -30,8 +30,8 @@ pip install pilotprotocol
|
|
|
30
30
|
|
|
31
31
|
The installation process will automatically:
|
|
32
32
|
1. Install the Python SDK package
|
|
33
|
-
2. Download and install the Pilot Protocol
|
|
34
|
-
3. Set up
|
|
33
|
+
2. Download and install the Pilot Protocol binaries (`pilotctl`, `pilot-daemon`, `pilot-gateway`, `pilot-updater`)
|
|
34
|
+
3. Set up system services (systemd on Linux, launchd on macOS) for daemon and auto-updater
|
|
35
35
|
4. Configure the default rendezvous server
|
|
36
36
|
|
|
37
37
|
**Platform Support:**
|
|
@@ -43,7 +43,7 @@ The installation process will automatically:
|
|
|
43
43
|
|
|
44
44
|
When you run `pip install pilotprotocol`:
|
|
45
45
|
1. The wheel is downloaded and extracted to your Python environment
|
|
46
|
-
2. Entry points create console scripts: `pilotctl`, `pilot-daemon`, `pilot-gateway`
|
|
46
|
+
2. Entry points create console scripts: `pilotctl`, `pilot-daemon`, `pilot-gateway`, `pilot-updater`
|
|
47
47
|
3. Binaries are bundled in the package at `site-packages/pilotprotocol/bin/`
|
|
48
48
|
4. On first command execution, `~/.pilot/config.json` is automatically created
|
|
49
49
|
|
|
Binary file
|
pilotprotocol-0.1.0/pilotprotocol/bin/pilotctl → pilotprotocol-0.1.2/pilotprotocol/bin/pilot-daemon
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -127,21 +127,43 @@ def run_daemon():
|
|
|
127
127
|
|
|
128
128
|
def run_gateway():
|
|
129
129
|
"""Entry point for pilot-gateway IP traffic bridge.
|
|
130
|
-
|
|
130
|
+
|
|
131
131
|
This is called when the user runs 'pilot-gateway' from the command line.
|
|
132
132
|
All arguments are passed through to the Go binary.
|
|
133
|
-
|
|
133
|
+
|
|
134
134
|
Example:
|
|
135
135
|
$ pilot-gateway --ports 80,3000 <pilot-addr>
|
|
136
136
|
"""
|
|
137
137
|
# Ensure environment is set up
|
|
138
138
|
_ensure_pilot_env()
|
|
139
|
-
|
|
139
|
+
|
|
140
140
|
# Get path to bundled binary
|
|
141
141
|
binary = _get_binary_path("pilot-gateway")
|
|
142
|
-
|
|
142
|
+
|
|
143
143
|
# Execute the binary with all arguments
|
|
144
144
|
exit_code = subprocess.call([str(binary)] + sys.argv[1:])
|
|
145
|
-
|
|
145
|
+
|
|
146
|
+
# Exit with the same code as the binary
|
|
147
|
+
sys.exit(exit_code)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def run_updater():
|
|
151
|
+
"""Entry point for pilot-updater auto-update sidecar.
|
|
152
|
+
|
|
153
|
+
This is called when the user runs 'pilot-updater' from the command line.
|
|
154
|
+
All arguments are passed through to the Go binary.
|
|
155
|
+
|
|
156
|
+
Example:
|
|
157
|
+
$ pilot-updater -install-dir ~/.pilot/bin
|
|
158
|
+
"""
|
|
159
|
+
# Ensure environment is set up
|
|
160
|
+
_ensure_pilot_env()
|
|
161
|
+
|
|
162
|
+
# Get path to bundled binary
|
|
163
|
+
binary = _get_binary_path("pilot-updater")
|
|
164
|
+
|
|
165
|
+
# Execute the binary with all arguments
|
|
166
|
+
exit_code = subprocess.call([str(binary)] + sys.argv[1:])
|
|
167
|
+
|
|
146
168
|
# Exit with the same code as the binary
|
|
147
169
|
sys.exit(exit_code)
|
|
@@ -308,6 +308,10 @@ class Conn:
|
|
|
308
308
|
"""Read up to *size* bytes. Blocks until data arrives."""
|
|
309
309
|
if self._closed:
|
|
310
310
|
raise PilotError("connection closed")
|
|
311
|
+
if size <= 0:
|
|
312
|
+
return b""
|
|
313
|
+
if size > 16 * 1024 * 1024:
|
|
314
|
+
size = 16 * 1024 * 1024 # cap at 16MB
|
|
311
315
|
lib = _get_lib()
|
|
312
316
|
res = lib.PilotConnRead(self._h, size)
|
|
313
317
|
if res.err:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pilotprotocol
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Python SDK for Pilot Protocol - the network stack for AI agents
|
|
5
5
|
Author-email: Alexandru Godoroja <alex@vulturelabs.com>
|
|
6
6
|
Maintainer-email: Alexandru Godoroja <alex@vulturelabs.com>, Teodor Calin <teodor@vulturelabs.com>
|
|
@@ -69,8 +69,8 @@ pip install pilotprotocol
|
|
|
69
69
|
|
|
70
70
|
The installation process will automatically:
|
|
71
71
|
1. Install the Python SDK package
|
|
72
|
-
2. Download and install the Pilot Protocol
|
|
73
|
-
3. Set up
|
|
72
|
+
2. Download and install the Pilot Protocol binaries (`pilotctl`, `pilot-daemon`, `pilot-gateway`, `pilot-updater`)
|
|
73
|
+
3. Set up system services (systemd on Linux, launchd on macOS) for daemon and auto-updater
|
|
74
74
|
4. Configure the default rendezvous server
|
|
75
75
|
|
|
76
76
|
**Platform Support:**
|
|
@@ -82,7 +82,7 @@ The installation process will automatically:
|
|
|
82
82
|
|
|
83
83
|
When you run `pip install pilotprotocol`:
|
|
84
84
|
1. The wheel is downloaded and extracted to your Python environment
|
|
85
|
-
2. Entry points create console scripts: `pilotctl`, `pilot-daemon`, `pilot-gateway`
|
|
85
|
+
2. Entry points create console scripts: `pilotctl`, `pilot-daemon`, `pilot-gateway`, `pilot-updater`
|
|
86
86
|
3. Binaries are bundled in the package at `site-packages/pilotprotocol/bin/`
|
|
87
87
|
4. On first command execution, `~/.pilot/config.json` is automatically created
|
|
88
88
|
|
|
@@ -14,7 +14,7 @@ pilotprotocol = [
|
|
|
14
14
|
|
|
15
15
|
[project]
|
|
16
16
|
name = "pilotprotocol"
|
|
17
|
-
version = "0.1.
|
|
17
|
+
version = "0.1.2"
|
|
18
18
|
description = "Python SDK for Pilot Protocol - the network stack for AI agents"
|
|
19
19
|
readme = "README.md"
|
|
20
20
|
requires-python = ">=3.10"
|
|
@@ -60,6 +60,7 @@ classifiers = [
|
|
|
60
60
|
pilotctl = "pilotprotocol.cli:run_pilotctl"
|
|
61
61
|
pilot-daemon = "pilotprotocol.cli:run_daemon"
|
|
62
62
|
pilot-gateway = "pilotprotocol.cli:run_gateway"
|
|
63
|
+
pilot-updater = "pilotprotocol.cli:run_updater"
|
|
63
64
|
|
|
64
65
|
[project.urls]
|
|
65
66
|
Homepage = "https://pilotprotocol.network"
|
|
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
|
|
File without changes
|
|
File without changes
|