blue-assistant 4.43.1__py3-none-any.whl → 4.46.1__py3-none-any.whl
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.
- blue_assistant/__init__.py +1 -1
- blue_assistant/script/repository/blue_amo/classes.py +1 -1
- blue_assistant/script/repository/generic/classes.py +21 -3
- {blue_assistant-4.43.1.dist-info → blue_assistant-4.46.1.dist-info}/METADATA +2 -2
- {blue_assistant-4.43.1.dist-info → blue_assistant-4.46.1.dist-info}/RECORD +8 -8
- {blue_assistant-4.43.1.dist-info → blue_assistant-4.46.1.dist-info}/LICENSE +0 -0
- {blue_assistant-4.43.1.dist-info → blue_assistant-4.46.1.dist-info}/WHEEL +0 -0
- {blue_assistant-4.43.1.dist-info → blue_assistant-4.46.1.dist-info}/top_level.txt +0 -0
blue_assistant/__init__.py
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
from typing import Dict, List
|
1
2
|
import os
|
2
3
|
|
3
4
|
from blueness import module
|
@@ -25,11 +26,28 @@ class GenericScript:
|
|
25
26
|
f"../{self.name}",
|
26
27
|
"metadata.yaml",
|
27
28
|
)
|
29
|
+
self.metadata: Dict
|
28
30
|
success, self.metadata = file.load_yaml(metadata_filename)
|
31
|
+
assert success, f"cannot load {self.name}/metadata.yaml"
|
29
32
|
|
30
|
-
|
33
|
+
logger.info("loaded {} node(s)".format(len(self.nodes)))
|
31
34
|
|
32
|
-
|
35
|
+
logger.info("loaded {} variable(s)".format(len(self.vars)))
|
36
|
+
if verbose:
|
37
|
+
for var_name, var_value in self.vars.items():
|
38
|
+
logger.info("{}: {}".format(var_name, var_value))
|
39
|
+
|
40
|
+
@property
|
41
|
+
def script(self) -> str:
|
42
|
+
return self.metadata.get("script", {})
|
43
|
+
|
44
|
+
@property
|
45
|
+
def nodes(self) -> str:
|
46
|
+
return self.metadata.get("script", {}).get("nodes", [])
|
47
|
+
|
48
|
+
@property
|
49
|
+
def vars(self) -> str:
|
50
|
+
return self.metadata.get("script", {}).get("vars", {})
|
33
51
|
|
34
52
|
def run(
|
35
53
|
self,
|
@@ -46,6 +64,6 @@ class GenericScript:
|
|
46
64
|
|
47
65
|
return post_to_object(
|
48
66
|
object_name,
|
49
|
-
"
|
67
|
+
"script",
|
50
68
|
self.script,
|
51
69
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: blue_assistant
|
3
|
-
Version: 4.
|
3
|
+
Version: 4.46.1
|
4
4
|
Summary: 🧠 An AI Assistant.
|
5
5
|
Home-page: https://github.com/kamangir/blue-assistant
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
@@ -65,4 +65,4 @@ graph LR
|
|
65
65
|
|
66
66
|
[](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [](https://pypi.org/project/blue-assistant/) [](https://pypistats.org/packages/blue-assistant)
|
67
67
|
|
68
|
-
built by 🌀 [`blue_options-4.207.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.
|
68
|
+
built by 🌀 [`blue_options-4.207.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.46.1`](https://github.com/kamangir/blue-assistant).
|
@@ -1,5 +1,5 @@
|
|
1
1
|
blue_assistant/README.py,sha256=q6EWCy7zojQESGDF-2xEoXS1Bl0wRJTe2jw_1QM_WYw,600
|
2
|
-
blue_assistant/__init__.py,sha256=
|
2
|
+
blue_assistant/__init__.py,sha256=2crVJo5raQnwN079oeoh9eqWGZ5kXO8K8mLcMtkvKS8,310
|
3
3
|
blue_assistant/__main__.py,sha256=URtal70XZc0--3FDTYWcLtnGOqBYjMX9gt-L1k8hDXI,361
|
4
4
|
blue_assistant/config.env,sha256=es6XIU6yOA69IV0WXtLru5uTM5Dvvmq-q6BJmcE8NyY,36
|
5
5
|
blue_assistant/env.py,sha256=TG2YL5jn7qJApHIGi7IuXvqcPFT771zXKJHomGC63Z4,189
|
@@ -28,13 +28,13 @@ blue_assistant/script/__main__.py,sha256=LAbStVfkw1-kCa7GcutCmimwLB37dTx1hG4LNU-
|
|
28
28
|
blue_assistant/script/load.py,sha256=9hzXmHzJ9t8VcWna-oZbo7GWYDUnHou5LUMWD9l0HmA,555
|
29
29
|
blue_assistant/script/repository/__init__.py,sha256=iuiwMKpqTjL4iaVnj4bS5Nev_MgiWKJmeJgZFlM5-lU,483
|
30
30
|
blue_assistant/script/repository/blue_amo/__init__.py,sha256=WjL9GIlN-DBnbUMJ8O_FxTp0rcVGlsIS3H9YtXEefTk,76
|
31
|
-
blue_assistant/script/repository/blue_amo/classes.py,sha256=
|
31
|
+
blue_assistant/script/repository/blue_amo/classes.py,sha256=8pG1yvpffAlg9GZ468DTpa8Cjs5nbGdMrnigJRvVq3A,1033
|
32
32
|
blue_assistant/script/repository/generic/__init__.py,sha256=kLffGsQMQAFJTw6IZBE5eBxvshP1x9wwHHR4hsDJblo,75
|
33
|
-
blue_assistant/script/repository/generic/classes.py,sha256=
|
33
|
+
blue_assistant/script/repository/generic/classes.py,sha256=2Op0rWgCy05WgVsEOt35bUzzBFL3IlPi_8zwMov4Vvo,1709
|
34
34
|
blue_assistant/script/repository/moon_datasets/__init__.py,sha256=aCtmP2avh3yKAJ668S3GsLR9vbBOm5zt9FSFCqy_tAs,86
|
35
35
|
blue_assistant/script/repository/moon_datasets/classes.py,sha256=9LFbLAo06Jux9lWBRNOv_8QaXznPgqTqxmcZBWaWPDI,357
|
36
|
-
blue_assistant-4.
|
37
|
-
blue_assistant-4.
|
38
|
-
blue_assistant-4.
|
39
|
-
blue_assistant-4.
|
40
|
-
blue_assistant-4.
|
36
|
+
blue_assistant-4.46.1.dist-info/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
37
|
+
blue_assistant-4.46.1.dist-info/METADATA,sha256=p4h03p5tr9WcIIrKfKZBd0pgCZxZ5EYONpF8Mw4DyC0,2438
|
38
|
+
blue_assistant-4.46.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
39
|
+
blue_assistant-4.46.1.dist-info/top_level.txt,sha256=ud0BkBbdOVze13bNqHuhZj1rwCztaBtDf5ChEYzASOs,15
|
40
|
+
blue_assistant-4.46.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|