request-vm-on-golem 0.1.9__tar.gz → 0.1.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.
Files changed (17) hide show
  1. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/PKG-INFO +23 -10
  2. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/README.md +22 -9
  3. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/pyproject.toml +1 -1
  4. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/config.py +1 -1
  5. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/__init__.py +0 -0
  6. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/cli/__init__.py +0 -0
  7. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/cli/commands.py +0 -0
  8. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/db/__init__.py +0 -0
  9. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/db/sqlite.py +0 -0
  10. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/errors.py +0 -0
  11. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/provider/__init__.py +0 -0
  12. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/provider/client.py +0 -0
  13. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/run.py +0 -0
  14. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/ssh/__init__.py +0 -0
  15. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/ssh/manager.py +0 -0
  16. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/utils/logging.py +0 -0
  17. {request_vm_on_golem-0.1.9 → request_vm_on_golem-0.1.12}/requestor/utils/spinner.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: request-vm-on-golem
3
- Version: 0.1.9
3
+ Version: 0.1.12
4
4
  Summary: VM on Golem Requestor CLI - Create and manage virtual machines on the Golem Network
5
5
  Keywords: golem,vm,cloud,decentralized,cli
6
6
  Author: Phillip Jensen
@@ -46,14 +46,14 @@ graph TB
46
46
  SSH[SSH Manager]
47
47
  PC[Provider Client]
48
48
  end
49
-
49
+
50
50
  subgraph Provider
51
51
  API[Provider API]
52
52
  VM[VM Manager]
53
53
  Proxy[SSH Proxy]
54
54
  RT[Resource Tracker]
55
55
  end
56
-
56
+
57
57
  CLI --> PC
58
58
  PC --> API
59
59
  SSH --> Proxy
@@ -71,7 +71,7 @@ sequenceDiagram
71
71
  participant SSH
72
72
  participant Provider
73
73
  participant VM
74
-
74
+
75
75
  User->>CLI: Create VM Command
76
76
  CLI->>SSH: Generate SSH Key
77
77
  SSH-->>CLI: Key Pair
@@ -84,6 +84,7 @@ sequenceDiagram
84
84
  ```
85
85
 
86
86
  When you create a VM:
87
+
87
88
  1. The requestor generates an SSH key pair or uses your system's existing keys
88
89
  2. The provider receives the public key and injects it during VM creation via cloud-init
89
90
  3. The provider allocates a dedicated port and configures SSH forwarding
@@ -98,7 +99,7 @@ sequenceDiagram
98
99
  participant DB
99
100
  participant Proxy
100
101
  participant VM
101
-
102
+
102
103
  User->>CLI: SSH Command
103
104
  CLI->>DB: Get VM Details
104
105
  DB-->>CLI: Connection Info
@@ -108,6 +109,7 @@ sequenceDiagram
108
109
  ```
109
110
 
110
111
  The SSH connection process:
112
+
111
113
  1. The CLI retrieves stored VM details from the local database
112
114
  2. The provider's proxy system forwards your SSH connection to the VM
113
115
  3. All traffic is securely routed through the allocated port
@@ -135,6 +137,7 @@ golem vm providers
135
137
  ```
136
138
 
137
139
  Example output:
140
+
138
141
  ```
139
142
  ────────────────────────────────────────────────
140
143
  🌍 Available Providers (3 total)
@@ -153,6 +156,7 @@ golem vm create my-webserver --provider-id provider-1 --cpu 2 --memory 4 --stora
153
156
  ```
154
157
 
155
158
  The system will:
159
+
156
160
  1. Verify provider availability
157
161
  2. Check resource requirements
158
162
  3. Set up SSH access
@@ -160,6 +164,7 @@ The system will:
160
164
  5. Save connection details locally
161
165
 
162
166
  Example output:
167
+
163
168
  ```
164
169
  ────────────────────────────────────────────────
165
170
  🎉 VM Deployed Successfully!
@@ -185,11 +190,13 @@ Example output:
185
190
  ### Managing VMs
186
191
 
187
192
  List your VMs:
193
+
188
194
  ```bash
189
195
  golem vm list
190
196
  ```
191
197
 
192
198
  Example output:
199
+
193
200
  ```
194
201
  ────────────────────────────────────────────────
195
202
  📋 Your VMs (2 total)
@@ -201,6 +208,7 @@ my-database ● stopped 192.168.1.101 4 CPU, 8GB RAM
201
208
  ```
202
209
 
203
210
  Other commands:
211
+
204
212
  ```bash
205
213
  # SSH into a VM
206
214
  golem vm ssh my-webserver
@@ -220,9 +228,10 @@ golem vm destroy my-webserver
220
228
  The requestor uses a hierarchical configuration system:
221
229
 
222
230
  1. Environment Variables:
231
+
223
232
  ```bash
224
233
  # Discovery Service
225
- export GOLEM_REQUESTOR_DISCOVERY_URL="http://discovery.golem.network:7465"
234
+ export GOLEM_REQUESTOR_DISCOVERY_URL="http://discovery.golem.network:9001"
226
235
 
227
236
  # Base Directory (default: ~/.golem)
228
237
  export GOLEM_REQUESTOR_BASE_DIR="/path/to/golem/dir"
@@ -237,6 +246,7 @@ export GOLEM_REQUESTOR_FORCE_LOCALHOST="true" # Optional: Force localhost in
237
246
  ```
238
247
 
239
248
  2. Directory Structure:
249
+
240
250
  ```
241
251
  ~/.golem/
242
252
  ├── ssh/ # SSH keys
@@ -250,6 +260,7 @@ export GOLEM_REQUESTOR_FORCE_LOCALHOST="true" # Optional: Force localhost in
250
260
  ### SSH Key Management
251
261
 
252
262
  The system intelligently handles SSH keys:
263
+
253
264
  1. Uses existing system SSH keys if available
254
265
  2. Generates and manages Golem-specific keys if needed
255
266
  3. Ensures proper key permissions (0600 for private, 0644 for public)
@@ -258,14 +269,16 @@ The system intelligently handles SSH keys:
258
269
  ### State Management
259
270
 
260
271
  Local state is maintained in SQLite:
261
- - VM details and configuration
262
- - Provider information
263
- - Connection parameters
264
- - VM status tracking
272
+
273
+ - VM details and configuration
274
+ - Provider information
275
+ - Connection parameters
276
+ - VM status tracking
265
277
 
266
278
  ### Provider Integration
267
279
 
268
280
  The requestor communicates with providers through:
281
+
269
282
  1. Discovery service for provider location
270
283
  2. Direct API calls for VM management
271
284
  3. SSH proxy system for secure access
@@ -12,14 +12,14 @@ graph TB
12
12
  SSH[SSH Manager]
13
13
  PC[Provider Client]
14
14
  end
15
-
15
+
16
16
  subgraph Provider
17
17
  API[Provider API]
18
18
  VM[VM Manager]
19
19
  Proxy[SSH Proxy]
20
20
  RT[Resource Tracker]
21
21
  end
22
-
22
+
23
23
  CLI --> PC
24
24
  PC --> API
25
25
  SSH --> Proxy
@@ -37,7 +37,7 @@ sequenceDiagram
37
37
  participant SSH
38
38
  participant Provider
39
39
  participant VM
40
-
40
+
41
41
  User->>CLI: Create VM Command
42
42
  CLI->>SSH: Generate SSH Key
43
43
  SSH-->>CLI: Key Pair
@@ -50,6 +50,7 @@ sequenceDiagram
50
50
  ```
51
51
 
52
52
  When you create a VM:
53
+
53
54
  1. The requestor generates an SSH key pair or uses your system's existing keys
54
55
  2. The provider receives the public key and injects it during VM creation via cloud-init
55
56
  3. The provider allocates a dedicated port and configures SSH forwarding
@@ -64,7 +65,7 @@ sequenceDiagram
64
65
  participant DB
65
66
  participant Proxy
66
67
  participant VM
67
-
68
+
68
69
  User->>CLI: SSH Command
69
70
  CLI->>DB: Get VM Details
70
71
  DB-->>CLI: Connection Info
@@ -74,6 +75,7 @@ sequenceDiagram
74
75
  ```
75
76
 
76
77
  The SSH connection process:
78
+
77
79
  1. The CLI retrieves stored VM details from the local database
78
80
  2. The provider's proxy system forwards your SSH connection to the VM
79
81
  3. All traffic is securely routed through the allocated port
@@ -101,6 +103,7 @@ golem vm providers
101
103
  ```
102
104
 
103
105
  Example output:
106
+
104
107
  ```
105
108
  ────────────────────────────────────────────────
106
109
  🌍 Available Providers (3 total)
@@ -119,6 +122,7 @@ golem vm create my-webserver --provider-id provider-1 --cpu 2 --memory 4 --stora
119
122
  ```
120
123
 
121
124
  The system will:
125
+
122
126
  1. Verify provider availability
123
127
  2. Check resource requirements
124
128
  3. Set up SSH access
@@ -126,6 +130,7 @@ The system will:
126
130
  5. Save connection details locally
127
131
 
128
132
  Example output:
133
+
129
134
  ```
130
135
  ────────────────────────────────────────────────
131
136
  🎉 VM Deployed Successfully!
@@ -151,11 +156,13 @@ Example output:
151
156
  ### Managing VMs
152
157
 
153
158
  List your VMs:
159
+
154
160
  ```bash
155
161
  golem vm list
156
162
  ```
157
163
 
158
164
  Example output:
165
+
159
166
  ```
160
167
  ────────────────────────────────────────────────
161
168
  📋 Your VMs (2 total)
@@ -167,6 +174,7 @@ my-database ● stopped 192.168.1.101 4 CPU, 8GB RAM
167
174
  ```
168
175
 
169
176
  Other commands:
177
+
170
178
  ```bash
171
179
  # SSH into a VM
172
180
  golem vm ssh my-webserver
@@ -186,9 +194,10 @@ golem vm destroy my-webserver
186
194
  The requestor uses a hierarchical configuration system:
187
195
 
188
196
  1. Environment Variables:
197
+
189
198
  ```bash
190
199
  # Discovery Service
191
- export GOLEM_REQUESTOR_DISCOVERY_URL="http://discovery.golem.network:7465"
200
+ export GOLEM_REQUESTOR_DISCOVERY_URL="http://discovery.golem.network:9001"
192
201
 
193
202
  # Base Directory (default: ~/.golem)
194
203
  export GOLEM_REQUESTOR_BASE_DIR="/path/to/golem/dir"
@@ -203,6 +212,7 @@ export GOLEM_REQUESTOR_FORCE_LOCALHOST="true" # Optional: Force localhost in
203
212
  ```
204
213
 
205
214
  2. Directory Structure:
215
+
206
216
  ```
207
217
  ~/.golem/
208
218
  ├── ssh/ # SSH keys
@@ -216,6 +226,7 @@ export GOLEM_REQUESTOR_FORCE_LOCALHOST="true" # Optional: Force localhost in
216
226
  ### SSH Key Management
217
227
 
218
228
  The system intelligently handles SSH keys:
229
+
219
230
  1. Uses existing system SSH keys if available
220
231
  2. Generates and manages Golem-specific keys if needed
221
232
  3. Ensures proper key permissions (0600 for private, 0644 for public)
@@ -224,14 +235,16 @@ The system intelligently handles SSH keys:
224
235
  ### State Management
225
236
 
226
237
  Local state is maintained in SQLite:
227
- - VM details and configuration
228
- - Provider information
229
- - Connection parameters
230
- - VM status tracking
238
+
239
+ - VM details and configuration
240
+ - Provider information
241
+ - Connection parameters
242
+ - VM status tracking
231
243
 
232
244
  ### Provider Integration
233
245
 
234
246
  The requestor communicates with providers through:
247
+
235
248
  1. Discovery service for provider location
236
249
  2. Direct API calls for VM management
237
250
  3. SSH proxy system for secure access
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "request-vm-on-golem"
3
- version = "0.1.9"
3
+ version = "0.1.12"
4
4
  description = "VM on Golem Requestor CLI - Create and manage virtual machines on the Golem Network"
5
5
  authors = ["Phillip Jensen <phillip+vm-on-golem@golemgrid.com>"]
6
6
  readme = "README.md"
@@ -22,7 +22,7 @@ class RequestorConfig(BaseSettings):
22
22
 
23
23
  # Discovery Service
24
24
  discovery_url: str = Field(
25
- default="http://195.201.39.101:7465",
25
+ default="http://195.201.39.101:9001",
26
26
  description="URL of the discovery service"
27
27
  )
28
28