yellowdog-python-examples 7.17.2__tar.gz → 7.17.4__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 (79) hide show
  1. {yellowdog_python_examples-7.17.2/yellowdog_python_examples.egg-info → yellowdog_python_examples-7.17.4}/PKG-INFO +2 -2
  2. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/requirements.txt +1 -1
  3. yellowdog_python_examples-7.17.4/yellowdog_cli/__init__.py +1 -0
  4. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/compare.py +5 -4
  5. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/create.py +1 -0
  6. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/printing.py +3 -0
  7. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4/yellowdog_python_examples.egg-info}/PKG-INFO +2 -2
  8. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_python_examples.egg-info/requires.txt +1 -1
  9. yellowdog_python_examples-7.17.2/yellowdog_cli/__init__.py +0 -1
  10. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/LICENSE +0 -0
  11. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/PYPI_README.md +0 -0
  12. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/README.md +0 -0
  13. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/pyproject.toml +0 -0
  14. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/setup.cfg +0 -0
  15. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/tests/test_create_remove.py +0 -0
  16. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/tests/test_demos.py +0 -0
  17. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/tests/test_dryruns.py +0 -0
  18. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/tests/test_entrypoints.py +0 -0
  19. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/tests/test_gui.py +0 -0
  20. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/tests/test_list.py +0 -0
  21. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/tests/test_objects.py +0 -0
  22. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/tests/test_variable_processing.py +0 -0
  23. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/abort.py +0 -0
  24. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/admin.py +0 -0
  25. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/boost.py +0 -0
  26. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/cancel.py +0 -0
  27. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/cloudwizard.py +0 -0
  28. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/delete.py +0 -0
  29. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/download.py +0 -0
  30. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/follow.py +0 -0
  31. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/format_json.py +0 -0
  32. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/hold.py +0 -0
  33. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/instantiate.py +0 -0
  34. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/jsonnet2json.py +0 -0
  35. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/list.py +0 -0
  36. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/provision.py +0 -0
  37. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/remove.py +0 -0
  38. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/resize.py +0 -0
  39. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/show.py +0 -0
  40. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/shutdown.py +0 -0
  41. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/start.py +0 -0
  42. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/submit.py +0 -0
  43. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/terminate.py +0 -0
  44. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/upload.py +0 -0
  45. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/__init__.py +0 -0
  46. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/args.py +0 -0
  47. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/check_imports.py +0 -0
  48. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/cloudwizard_aws.py +0 -0
  49. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/cloudwizard_aws_types.py +0 -0
  50. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/cloudwizard_azure.py +0 -0
  51. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/cloudwizard_common.py +0 -0
  52. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/cloudwizard_gcp.py +0 -0
  53. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/compact_json.py +0 -0
  54. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/config_types.py +0 -0
  55. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/csv_data.py +0 -0
  56. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/entity_utils.py +0 -0
  57. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/follow_utils.py +0 -0
  58. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/interactive.py +0 -0
  59. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/items.py +0 -0
  60. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/load_config.py +0 -0
  61. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/load_resources.py +0 -0
  62. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/misc_utils.py +0 -0
  63. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/property_names.py +0 -0
  64. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/provision_utils.py +0 -0
  65. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/rich_console_input_fixed.py +0 -0
  66. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/settings.py +0 -0
  67. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/start_hold_common.py +0 -0
  68. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/submit_utils.py +0 -0
  69. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/type_check.py +0 -0
  70. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/upload_utils.py +0 -0
  71. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/validate_properties.py +0 -0
  72. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/variables.py +0 -0
  73. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/wrapper.py +0 -0
  74. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/utils/ydid_utils.py +0 -0
  75. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_cli/version.py +0 -0
  76. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_python_examples.egg-info/SOURCES.txt +0 -0
  77. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_python_examples.egg-info/dependency_links.txt +0 -0
  78. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_python_examples.egg-info/entry_points.txt +0 -0
  79. {yellowdog_python_examples-7.17.2 → yellowdog_python_examples-7.17.4}/yellowdog_python_examples.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yellowdog-python-examples
3
- Version: 7.17.2
3
+ Version: 7.17.4
4
4
  Summary: Python CLI commands using the YellowDog Python SDK
5
5
  Author-email: YellowDog Limited <support@yellowdog.co>
6
6
  Project-URL: Homepage, https://github.com/yellowdog/python-examples
@@ -19,7 +19,7 @@ Requires-Dist: requests
19
19
  Requires-Dist: rich==13.9.4
20
20
  Requires-Dist: tabulate>=0.9.0
21
21
  Requires-Dist: toml
22
- Requires-Dist: yellowdog-sdk>=9.2.0
22
+ Requires-Dist: yellowdog-sdk>=9.2.1
23
23
  Provides-Extra: jsonnet
24
24
  Requires-Dist: jsonnet; extra == "jsonnet"
25
25
  Provides-Extra: cloudwizard
@@ -4,4 +4,4 @@ requests
4
4
  rich == 13.9.4
5
5
  tabulate >= 0.9.0
6
6
  toml
7
- yellowdog-sdk >= 9.2.0
7
+ yellowdog-sdk >= 9.2.1
@@ -0,0 +1 @@
1
+ __version__ = "7.17.4"
@@ -31,6 +31,7 @@ from yellowdog_cli.utils.wrapper import ARGS_PARSER, CLIENT, main_wrapper
31
31
  from yellowdog_cli.utils.ydid_utils import YDIDType, get_ydid_type
32
32
 
33
33
  NONE_STRING = "NONE"
34
+ EMPTY_STRING = ""
34
35
  UNKNOWN_STRING = "NOT YET KNOWN"
35
36
 
36
37
 
@@ -211,7 +212,7 @@ class WorkerPools:
211
212
  return PropertyMatch(
212
213
  property_name="Worker Tag(s)",
213
214
  task_group_values=(
214
- NONE_STRING
215
+ EMPTY_STRING
215
216
  if task_group.runSpecification.workerTags is None
216
217
  else ", ".join(task_group.runSpecification.workerTags)
217
218
  ),
@@ -443,7 +444,7 @@ class WorkerPools:
443
444
  ),
444
445
  match=(
445
446
  MatchType.YES
446
- if task_group.runSpecification.namespaces is None
447
+ if task_group.runSpecification.namespaces in [None, []]
447
448
  or worker_pool.namespace in task_group.runSpecification.namespaces
448
449
  else MatchType.NO
449
450
  ),
@@ -478,7 +479,7 @@ class WorkerPools:
478
479
  return PropertyMatch(
479
480
  property_name="RAM (GB)",
480
481
  task_group_values=(
481
- NONE_STRING
482
+ EMPTY_STRING
482
483
  if task_group.runSpecification.ram is None
483
484
  else self._doublerange_str(task_group.runSpecification.ram)
484
485
  ),
@@ -519,7 +520,7 @@ class WorkerPools:
519
520
  return PropertyMatch(
520
521
  property_name="vCPUs Count",
521
522
  task_group_values=(
522
- NONE_STRING
523
+ EMPTY_STRING
523
524
  if task_group.runSpecification.vcpus is None
524
525
  else self._doublerange_str(task_group.runSpecification.vcpus)
525
526
  ),
@@ -834,6 +834,7 @@ def _get_model_object(class_name: str, resource: Dict, **kwargs):
834
834
  Return a populated YellowDog model object for the resource.
835
835
  Discard unexpected keywords.
836
836
  """
837
+
837
838
  def _patch_aws_fleet_enums():
838
839
  if isinstance(model_object, AwsFleetComputeSource):
839
840
  try:
@@ -997,6 +997,9 @@ def sorted_objects(
997
997
  except TypeError:
998
998
  return objects
999
999
 
1000
+ if isinstance(objects[0], Task): # Sort tasks by their task number
1001
+ return sorted(objects, key=lambda x: int(x.id.split(":")[-1]), reverse=reverse)
1002
+
1000
1003
  try:
1001
1004
  return sorted(objects, key=lambda x: x.name, reverse=reverse)
1002
1005
  except:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yellowdog-python-examples
3
- Version: 7.17.2
3
+ Version: 7.17.4
4
4
  Summary: Python CLI commands using the YellowDog Python SDK
5
5
  Author-email: YellowDog Limited <support@yellowdog.co>
6
6
  Project-URL: Homepage, https://github.com/yellowdog/python-examples
@@ -19,7 +19,7 @@ Requires-Dist: requests
19
19
  Requires-Dist: rich==13.9.4
20
20
  Requires-Dist: tabulate>=0.9.0
21
21
  Requires-Dist: toml
22
- Requires-Dist: yellowdog-sdk>=9.2.0
22
+ Requires-Dist: yellowdog-sdk>=9.2.1
23
23
  Provides-Extra: jsonnet
24
24
  Requires-Dist: jsonnet; extra == "jsonnet"
25
25
  Provides-Extra: cloudwizard
@@ -4,7 +4,7 @@ requests
4
4
  rich==13.9.4
5
5
  tabulate>=0.9.0
6
6
  toml
7
- yellowdog-sdk>=9.2.0
7
+ yellowdog-sdk>=9.2.1
8
8
 
9
9
  [cloudwizard]
10
10
  boto3
@@ -1 +0,0 @@
1
- __version__ = "7.17.2"