boxd 0.2.17.dev870__tar.gz → 0.2.18.dev892__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.
- {boxd-0.2.17.dev870/src/boxd.egg-info → boxd-0.2.18.dev892}/PKG-INFO +20 -1
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/README.md +19 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/pyproject.toml +1 -1
- boxd-0.2.18.dev892/src/boxd/_generated/api_pb2.py +600 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_generated/api_pb2_grpc.py +45 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_mappers.py +8 -1
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_requests.py +91 -4
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/models.py +16 -4
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/machines.py +122 -14
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/snapshots.py +38 -10
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892/src/boxd.egg-info}/PKG-INFO +20 -1
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/tests/test_mappers.py +12 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/tests/test_namespaces.py +145 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/tests/test_requests.py +33 -0
- boxd-0.2.17.dev870/src/boxd/_generated/api_pb2.py +0 -572
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/LICENSE +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/setup.cfg +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/__init__.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_client.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_credentials.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_generated/__init__.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_streaming.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_transport.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_urls.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/_version_check.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/errors.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/__init__.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/account.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/credentials.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/disks.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/domains.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/orgs.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/teams.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd/resources/vars.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd.egg-info/SOURCES.txt +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd.egg-info/dependency_links.txt +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd.egg-info/requires.txt +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/src/boxd.egg-info/top_level.txt +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/tests/test_credentials.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/tests/test_delete_self.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/tests/test_streaming.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/tests/test_transport.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/tests/test_urls.py +0 -0
- {boxd-0.2.17.dev870 → boxd-0.2.18.dev892}/tests/test_version_check.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: boxd
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.18.dev892
|
|
4
4
|
Summary: Python SDK for the boxd cloud VM platform
|
|
5
5
|
Author: Azin
|
|
6
6
|
License-Expression: MIT
|
|
@@ -266,6 +266,25 @@ holds are always admitted. Takes effect within a second and is not visible or
|
|
|
266
266
|
changeable from inside the machine. A fork inherits its source's allowlist; a
|
|
267
267
|
machine restored from a snapshot starts unrestricted.
|
|
268
268
|
|
|
269
|
+
### Labels
|
|
270
|
+
|
|
271
|
+
Labels are `key=value` tags for grouping and finding machines:
|
|
272
|
+
|
|
273
|
+
```python
|
|
274
|
+
m = boxd.machines.create("job-1", labels={"env": "prod", "run": "nightly"})
|
|
275
|
+
m.labels # {"env": "prod", "run": "nightly"}
|
|
276
|
+
boxd.machines.list(labels={"run": "nightly"}) # every pair must match
|
|
277
|
+
boxd.machines.list(labels=["env=prod", "gpu"]) # "key=value", or "key" = has the key
|
|
278
|
+
boxd.machines.update_labels("job-1", set={"owner": "ana"}, remove=["run"])
|
|
279
|
+
boxd.machines.update_labels("job-1", {"env": "dev"}, replace_all=True) # set the whole set
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Keys are 1-63 characters of lowercase letters, digits, `.`, `_`, `/` and `-`,
|
|
283
|
+
starting and ending with a letter or digit; the `boxd/` prefix is reserved.
|
|
284
|
+
Values are up to 256 characters and may be empty. A machine holds at most 64
|
|
285
|
+
labels. A fork or restore inherits its source's labels, and `labels=` on
|
|
286
|
+
`fork` or `create(from_snapshot=...)` is merged over them.
|
|
287
|
+
|
|
269
288
|
### Sizing
|
|
270
289
|
|
|
271
290
|
There are four sizes: 1 vCPU/4G, 2/8G, 4/16G, 8/32G. Name either dimension and
|
|
@@ -234,6 +234,25 @@ holds are always admitted. Takes effect within a second and is not visible or
|
|
|
234
234
|
changeable from inside the machine. A fork inherits its source's allowlist; a
|
|
235
235
|
machine restored from a snapshot starts unrestricted.
|
|
236
236
|
|
|
237
|
+
### Labels
|
|
238
|
+
|
|
239
|
+
Labels are `key=value` tags for grouping and finding machines:
|
|
240
|
+
|
|
241
|
+
```python
|
|
242
|
+
m = boxd.machines.create("job-1", labels={"env": "prod", "run": "nightly"})
|
|
243
|
+
m.labels # {"env": "prod", "run": "nightly"}
|
|
244
|
+
boxd.machines.list(labels={"run": "nightly"}) # every pair must match
|
|
245
|
+
boxd.machines.list(labels=["env=prod", "gpu"]) # "key=value", or "key" = has the key
|
|
246
|
+
boxd.machines.update_labels("job-1", set={"owner": "ana"}, remove=["run"])
|
|
247
|
+
boxd.machines.update_labels("job-1", {"env": "dev"}, replace_all=True) # set the whole set
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Keys are 1-63 characters of lowercase letters, digits, `.`, `_`, `/` and `-`,
|
|
251
|
+
starting and ending with a letter or digit; the `boxd/` prefix is reserved.
|
|
252
|
+
Values are up to 256 characters and may be empty. A machine holds at most 64
|
|
253
|
+
labels. A fork or restore inherits its source's labels, and `labels=` on
|
|
254
|
+
`fork` or `create(from_snapshot=...)` is merged over them.
|
|
255
|
+
|
|
237
256
|
### Sizing
|
|
238
257
|
|
|
239
258
|
There are four sizes: 1 vCPU/4G, 2/8G, 4/16G, 8/32G. Name either dimension and
|