boxd 0.2.17.dev870__tar.gz → 0.2.17.dev888__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 (44) hide show
  1. {boxd-0.2.17.dev870/src/boxd.egg-info → boxd-0.2.17.dev888}/PKG-INFO +20 -1
  2. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/README.md +19 -0
  3. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/pyproject.toml +1 -1
  4. boxd-0.2.17.dev888/src/boxd/_generated/api_pb2.py +600 -0
  5. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_generated/api_pb2_grpc.py +45 -0
  6. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_mappers.py +3 -0
  7. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_requests.py +91 -4
  8. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/models.py +6 -0
  9. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/machines.py +101 -8
  10. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888/src/boxd.egg-info}/PKG-INFO +20 -1
  11. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/tests/test_mappers.py +12 -0
  12. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/tests/test_namespaces.py +105 -0
  13. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/tests/test_requests.py +33 -0
  14. boxd-0.2.17.dev870/src/boxd/_generated/api_pb2.py +0 -572
  15. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/LICENSE +0 -0
  16. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/setup.cfg +0 -0
  17. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/__init__.py +0 -0
  18. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_client.py +0 -0
  19. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_credentials.py +0 -0
  20. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_generated/__init__.py +0 -0
  21. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_streaming.py +0 -0
  22. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_transport.py +0 -0
  23. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_urls.py +0 -0
  24. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/_version_check.py +0 -0
  25. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/errors.py +0 -0
  26. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/__init__.py +0 -0
  27. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/account.py +0 -0
  28. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/credentials.py +0 -0
  29. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/disks.py +0 -0
  30. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/domains.py +0 -0
  31. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/orgs.py +0 -0
  32. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/snapshots.py +0 -0
  33. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/teams.py +0 -0
  34. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd/resources/vars.py +0 -0
  35. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd.egg-info/SOURCES.txt +0 -0
  36. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd.egg-info/dependency_links.txt +0 -0
  37. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd.egg-info/requires.txt +0 -0
  38. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/src/boxd.egg-info/top_level.txt +0 -0
  39. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/tests/test_credentials.py +0 -0
  40. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/tests/test_delete_self.py +0 -0
  41. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/tests/test_streaming.py +0 -0
  42. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/tests/test_transport.py +0 -0
  43. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/tests/test_urls.py +0 -0
  44. {boxd-0.2.17.dev870 → boxd-0.2.17.dev888}/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.17.dev870
3
+ Version: 0.2.17.dev888
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "boxd"
3
- version = "0.2.17.dev870"
3
+ version = "0.2.17.dev888"
4
4
  description = "Python SDK for the boxd cloud VM platform"
5
5
  readme = "README.md"
6
6
  license = "MIT"