yellowdog-python-examples 8.2.0__tar.gz → 8.2.1__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 (80) hide show
  1. {yellowdog_python_examples-8.2.0/yellowdog_python_examples.egg-info → yellowdog_python_examples-8.2.1}/PKG-INFO +3 -3
  2. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/PYPI_README.md +2 -2
  3. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/README.md +2 -2
  4. yellowdog_python_examples-8.2.1/yellowdog_cli/__init__.py +1 -0
  5. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/create.py +12 -0
  6. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1/yellowdog_python_examples.egg-info}/PKG-INFO +3 -3
  7. yellowdog_python_examples-8.2.0/yellowdog_cli/__init__.py +0 -1
  8. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/LICENSE +0 -0
  9. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/pyproject.toml +0 -0
  10. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/requirements.txt +0 -0
  11. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/setup.cfg +0 -0
  12. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/tests/test_create_remove.py +0 -0
  13. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/tests/test_demos.py +0 -0
  14. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/tests/test_dryruns.py +0 -0
  15. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/tests/test_entrypoints.py +0 -0
  16. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/tests/test_gui.py +0 -0
  17. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/tests/test_list.py +0 -0
  18. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/tests/test_objects.py +0 -0
  19. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/tests/test_variable_processing.py +0 -0
  20. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/abort.py +0 -0
  21. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/admin.py +0 -0
  22. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/boost.py +0 -0
  23. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/cancel.py +0 -0
  24. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/cloudwizard.py +0 -0
  25. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/compare.py +0 -0
  26. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/delete.py +0 -0
  27. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/download.py +0 -0
  28. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/finish.py +0 -0
  29. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/follow.py +0 -0
  30. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/format_json.py +0 -0
  31. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/hold.py +0 -0
  32. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/instantiate.py +0 -0
  33. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/jsonnet2json.py +0 -0
  34. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/list.py +0 -0
  35. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/provision.py +0 -0
  36. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/remove.py +0 -0
  37. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/resize.py +0 -0
  38. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/show.py +0 -0
  39. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/shutdown.py +0 -0
  40. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/start.py +0 -0
  41. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/submit.py +0 -0
  42. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/terminate.py +0 -0
  43. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/upload.py +0 -0
  44. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/__init__.py +0 -0
  45. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/args.py +0 -0
  46. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/check_imports.py +0 -0
  47. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/cloudwizard_aws.py +0 -0
  48. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/cloudwizard_aws_types.py +0 -0
  49. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/cloudwizard_azure.py +0 -0
  50. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/cloudwizard_common.py +0 -0
  51. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/cloudwizard_gcp.py +0 -0
  52. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/compact_json.py +0 -0
  53. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/config_types.py +0 -0
  54. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/csv_data.py +0 -0
  55. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/entity_utils.py +0 -0
  56. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/follow_utils.py +0 -0
  57. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/interactive.py +0 -0
  58. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/items.py +0 -0
  59. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/load_config.py +0 -0
  60. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/load_resources.py +0 -0
  61. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/misc_utils.py +0 -0
  62. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/printing.py +0 -0
  63. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/property_names.py +0 -0
  64. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/provision_utils.py +0 -0
  65. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/rich_console_input_fixed.py +0 -0
  66. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/settings.py +0 -0
  67. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/start_hold_common.py +0 -0
  68. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/submit_utils.py +0 -0
  69. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/type_check.py +0 -0
  70. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/upload_utils.py +0 -0
  71. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/validate_properties.py +0 -0
  72. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/variables.py +0 -0
  73. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/wrapper.py +0 -0
  74. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/utils/ydid_utils.py +0 -0
  75. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_cli/version.py +0 -0
  76. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_python_examples.egg-info/SOURCES.txt +0 -0
  77. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_python_examples.egg-info/dependency_links.txt +0 -0
  78. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_python_examples.egg-info/entry_points.txt +0 -0
  79. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/yellowdog_python_examples.egg-info/requires.txt +0 -0
  80. {yellowdog_python_examples-8.2.0 → yellowdog_python_examples-8.2.1}/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: 8.2.0
3
+ Version: 8.2.1
4
4
  Summary: Python CLI commands using the YellowDog Python SDK
5
5
  Author-email: YellowDog Limited <support@yellowdog.co>
6
6
  License-Expression: Apache-2.0
@@ -44,7 +44,7 @@ Dynamic: license-file
44
44
 
45
45
  ## Overview
46
46
 
47
- This is a set of Python CLI commands for interacting with the YellowDog Platform, providing examples of usage of the [YellowDog Python SDK](https://docs.yellowdog.co/api/python/index.html).
47
+ This is a set of Python CLI commands for interacting with the YellowDog Platform, providing examples of usage of the [YellowDog Python SDK](https://docs.yellowdog.ai/sdk/python/index.html).
48
48
 
49
49
  The commands support:
50
50
 
@@ -68,4 +68,4 @@ The commands support:
68
68
  - **Terminating** Compute Requirements with the **`yd-terminate`** command
69
69
  - **Uploading** files to the YellowDog Object Store with the **`yd-upload`** command
70
70
 
71
- Please see the documenation in the [GitHub repository](https://github.com/yellowdog/python-examples) for more details.
71
+ Please see the documentation in the [GitHub repository](https://github.com/yellowdog/python-examples) for more details.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Overview
4
4
 
5
- This is a set of Python CLI commands for interacting with the YellowDog Platform, providing examples of usage of the [YellowDog Python SDK](https://docs.yellowdog.co/api/python/index.html).
5
+ This is a set of Python CLI commands for interacting with the YellowDog Platform, providing examples of usage of the [YellowDog Python SDK](https://docs.yellowdog.ai/sdk/python/index.html).
6
6
 
7
7
  The commands support:
8
8
 
@@ -26,4 +26,4 @@ The commands support:
26
26
  - **Terminating** Compute Requirements with the **`yd-terminate`** command
27
27
  - **Uploading** files to the YellowDog Object Store with the **`yd-upload`** command
28
28
 
29
- Please see the documenation in the [GitHub repository](https://github.com/yellowdog/python-examples) for more details.
29
+ Please see the documentation in the [GitHub repository](https://github.com/yellowdog/python-examples) for more details.
@@ -140,7 +140,7 @@
140
140
 
141
141
  # Overview
142
142
 
143
- This repository contains a set of command line utilities for driving the YellowDog Platform, written in Python. The scripts use the **[YellowDog Python SDK](https://docs.yellowdog.co/#/sdk)**, the code for which can be found [on GitHub](https://github.com/yellowdog/yellowdog-sdk-python-public).
143
+ This repository contains a set of command line utilities for driving the YellowDog Platform, written in Python. The scripts use the **[YellowDog Python SDK](https://docs.yellowdog.ai/sdk/python/index.html)**, the code for which can be found [on GitHub](https://github.com/yellowdog/yellowdog-sdk-python-public).
144
144
 
145
145
 
146
146
  *(Note: these utilities are intended to be a helpful starting point for experimenting with the YellowDog Platform. They are not assured to be of production quality nor do they represent a standard or recommended method for using YellowDog.)*
@@ -597,7 +597,7 @@ To specify the file containing the JSON document, either populate the `workRequi
597
597
 
598
598
  ## Property Inheritance
599
599
 
600
- Work Requirement specification can be simplified substantially by the property inheritance features in `yd-submit`. In general, properties that are set at a higher level in the hierarchy are inherited at lower levels, unless explicitly overridden.
600
+ Work Requirement specifications can be simplified substantially by the property inheritance features in `yd-submit`. In general, properties that are set at a higher level in the hierarchy are inherited at lower levels, unless explicitly overridden.
601
601
 
602
602
  This means that a property set in the `workRequirement` section of the TOML file can be inherited successively by the Work Requirement, Task Groups, and Tasks in the JSON document (assuming the property is available at each level). Hence, Tasks inherit from Task Groups, which inherit from the Work Requirement in the JSON document, which inherits from the `workRequirement` properties in the TOML file.
603
603
 
@@ -0,0 +1 @@
1
+ __version__ = "8.2.1"
@@ -48,6 +48,7 @@ from yellowdog_client.model.exceptions import InvalidRequestException
48
48
 
49
49
  from yellowdog_cli.utils.entity_utils import (
50
50
  clear_application_caches,
51
+ clear_compute_requirement_template_cache,
51
52
  clear_compute_source_template_cache,
52
53
  clear_group_caches,
53
54
  clear_image_caches,
@@ -130,6 +131,7 @@ from yellowdog_cli.utils.wrapper import ARGS_PARSER, CLIENT, CONFIG_COMMON, main
130
131
  from yellowdog_cli.utils.ydid_utils import YDIDType, get_ydid_type
131
132
 
132
133
  CLEAR_CST_CACHE: bool = False # Track whether the CST cache needs to be cleared
134
+ CLEAR_CRT_CACHE: bool = False # Track whether the CRT cache needs to be cleared
133
135
  CLEAR_IMAGE_FAMILY_CACHE: bool = (
134
136
  False # Track whether the image caches need to be cleared
135
137
  )
@@ -391,6 +393,8 @@ def create_compute_requirement_template(resource: Dict):
391
393
  template = CLIENT.compute_client.add_compute_requirement_template(
392
394
  compute_template
393
395
  )
396
+ global CLEAR_CRT_CACHE
397
+ CLEAR_CRT_CACHE = True
394
398
  print_log(f"Created Compute Requirement Template '{name}' ({template.id})")
395
399
  if ARGS_PARSER.quiet:
396
400
  print(template.id)
@@ -729,6 +733,10 @@ def create_allowance(resource: Dict):
729
733
  template_name_or_id = resource.get(PROP_SOURCE_CREATED_FROM, None)
730
734
  if template_name_or_id is not None:
731
735
  if get_ydid_type(template_name_or_id) != YDIDType.COMPUTE_SOURCE_TEMPLATE:
736
+ global CLEAR_CST_CACHE
737
+ if CLEAR_CST_CACHE: # Update the CST cache if required
738
+ clear_compute_source_template_cache()
739
+ CLEAR_CST_CACHE = False
732
740
  template_id = find_compute_source_template_id_by_name(
733
741
  client=CLIENT, name=template_name_or_id
734
742
  )
@@ -750,6 +758,10 @@ def create_allowance(resource: Dict):
750
758
  get_ydid_type(template_name_or_id)
751
759
  != YDIDType.COMPUTE_REQUIREMENT_TEMPLATE
752
760
  ):
761
+ global CLEAR_CRT_CACHE
762
+ if CLEAR_CRT_CACHE: # Update the CRT cache if required
763
+ clear_compute_requirement_template_cache()
764
+ CLEAR_CRT_CACHE = False
753
765
  template_id = find_compute_requirement_template_id_by_name(
754
766
  client=CLIENT, name=template_name_or_id
755
767
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yellowdog-python-examples
3
- Version: 8.2.0
3
+ Version: 8.2.1
4
4
  Summary: Python CLI commands using the YellowDog Python SDK
5
5
  Author-email: YellowDog Limited <support@yellowdog.co>
6
6
  License-Expression: Apache-2.0
@@ -44,7 +44,7 @@ Dynamic: license-file
44
44
 
45
45
  ## Overview
46
46
 
47
- This is a set of Python CLI commands for interacting with the YellowDog Platform, providing examples of usage of the [YellowDog Python SDK](https://docs.yellowdog.co/api/python/index.html).
47
+ This is a set of Python CLI commands for interacting with the YellowDog Platform, providing examples of usage of the [YellowDog Python SDK](https://docs.yellowdog.ai/sdk/python/index.html).
48
48
 
49
49
  The commands support:
50
50
 
@@ -68,4 +68,4 @@ The commands support:
68
68
  - **Terminating** Compute Requirements with the **`yd-terminate`** command
69
69
  - **Uploading** files to the YellowDog Object Store with the **`yd-upload`** command
70
70
 
71
- Please see the documenation in the [GitHub repository](https://github.com/yellowdog/python-examples) for more details.
71
+ Please see the documentation in the [GitHub repository](https://github.com/yellowdog/python-examples) for more details.
@@ -1 +0,0 @@
1
- __version__ = "8.2.0"