bluer-objects 6.246.1__py3-none-any.whl → 6.250.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.
Potentially problematic release.
This version of bluer-objects might be problematic. Click here for more details.
- bluer_objects/__init__.py +1 -1
- bluer_objects/logger/image.py +2 -1
- bluer_objects/markdown.py +8 -6
- {bluer_objects-6.246.1.dist-info → bluer_objects-6.250.1.dist-info}/METADATA +2 -2
- {bluer_objects-6.246.1.dist-info → bluer_objects-6.250.1.dist-info}/RECORD +8 -8
- {bluer_objects-6.246.1.dist-info → bluer_objects-6.250.1.dist-info}/WHEEL +0 -0
- {bluer_objects-6.246.1.dist-info → bluer_objects-6.250.1.dist-info}/licenses/LICENSE +0 -0
- {bluer_objects-6.246.1.dist-info → bluer_objects-6.250.1.dist-info}/top_level.txt +0 -0
bluer_objects/__init__.py
CHANGED
bluer_objects/logger/image.py
CHANGED
|
@@ -15,7 +15,7 @@ LOG_IMAGE_GRID_ROWS = 3
|
|
|
15
15
|
|
|
16
16
|
def log_image_grid(
|
|
17
17
|
items: Union[
|
|
18
|
-
|
|
18
|
+
List[Dict[str, Any]],
|
|
19
19
|
pd.DataFrame,
|
|
20
20
|
],
|
|
21
21
|
filename: str,
|
|
@@ -36,6 +36,7 @@ def log_image_grid(
|
|
|
36
36
|
items += [{"pass": True}]
|
|
37
37
|
if shuffle:
|
|
38
38
|
random.shuffle(items)
|
|
39
|
+
|
|
39
40
|
items = items[: rows * cols]
|
|
40
41
|
|
|
41
42
|
if relative_path:
|
bluer_objects/markdown.py
CHANGED
|
@@ -12,6 +12,7 @@ NAME = module.name(__file__, NAME)
|
|
|
12
12
|
def generate_table(
|
|
13
13
|
items: List[str],
|
|
14
14
|
cols: int = 3,
|
|
15
|
+
log: bool = True,
|
|
15
16
|
) -> List[str]:
|
|
16
17
|
if not items:
|
|
17
18
|
return []
|
|
@@ -22,13 +23,14 @@ def generate_table(
|
|
|
22
23
|
|
|
23
24
|
row_count = int(math.ceil(len(items) / cols))
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
if log:
|
|
27
|
+
logger.info(
|
|
28
|
+
"{}.generate_table(): {} item(s), {} row(s)".format(
|
|
29
|
+
NAME,
|
|
30
|
+
len(items),
|
|
31
|
+
row_count,
|
|
32
|
+
)
|
|
30
33
|
)
|
|
31
|
-
)
|
|
32
34
|
|
|
33
35
|
return [
|
|
34
36
|
"| {} |".format(" | ".join(cols * [" "])),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bluer_objects
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.250.1
|
|
4
4
|
Summary: 🌀 Object management in Bash.
|
|
5
5
|
Home-page: https://github.com/kamangir/bluer-objects
|
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
|
@@ -64,6 +64,6 @@ pip install bluer-objects
|
|
|
64
64
|
|
|
65
65
|
[](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml) [](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml) [](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml) [](https://pypi.org/project/bluer-objects/) [](https://pypistats.org/packages/bluer-objects)
|
|
66
66
|
|
|
67
|
-
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.
|
|
67
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.250.1`](https://github.com/kamangir/bluer-objects).
|
|
68
68
|
|
|
69
69
|
built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
bluer_objects/__init__.py,sha256=
|
|
1
|
+
bluer_objects/__init__.py,sha256=5iH-nut3h-05CX06ZJue_1kjA1TNn6ga9nYI8FSExkE,315
|
|
2
2
|
bluer_objects/__main__.py,sha256=Yqfov833_hJuRne19WrGhT5DWAPtdffpoMxeSXS7EGw,359
|
|
3
3
|
bluer_objects/config.env,sha256=RjcpnbKfRqNyGLRB4z7M_OG9z2pOM032ck__53JqXqo,216
|
|
4
4
|
bluer_objects/env.py,sha256=iw4QvaImqnavlsHwfkUScNHc7afDEJQKJSsHTtVJE78,2019
|
|
5
|
-
bluer_objects/markdown.py,sha256=
|
|
5
|
+
bluer_objects/markdown.py,sha256=23dvQTR0wY_SSeCw4EgYwCBBY0Oe9C1I9njqn0KvcaQ,1000
|
|
6
6
|
bluer_objects/objects.py,sha256=EYzA1vKngY2c_gdMKnUfrKVUcf-5wpFKgBFaVJA4cLE,1626
|
|
7
7
|
bluer_objects/path.py,sha256=9uspZqObI29NerVDF30uILLaouDtloASh0Mywyq2_ew,3946
|
|
8
8
|
bluer_objects/sample.env,sha256=pk6q6VaCMTqAQmtk0WGzSLIW3bOQkS_sVqhzW59Of34,162
|
|
@@ -108,7 +108,7 @@ bluer_objects/host/__init__.py,sha256=Ko43SWnZNsGKuIPU_l0w17pYrxCgVHQx3_zEoUNaHZ
|
|
|
108
108
|
bluer_objects/host/__main__.py,sha256=J0MO2sUzrI_t_X4VVYyM6n41ND0yhhSXOmZSkDAC4rg,1751
|
|
109
109
|
bluer_objects/host/functions.py,sha256=ADups78hYZDAnC6FlIICQ48WkFd4sPnRMWA0D6X-FV4,1663
|
|
110
110
|
bluer_objects/logger/__init__.py,sha256=2aGNbx-qBXU3IlX9BDqtrFfN25lO_uarEg22cE3-3dU,102
|
|
111
|
-
bluer_objects/logger/image.py,sha256=
|
|
111
|
+
bluer_objects/logger/image.py,sha256=wHpE6jCqKGmcjXU61vCMKbBeir7DAxH6nKx5kb_1Vv0,2617
|
|
112
112
|
bluer_objects/logger/matrix.py,sha256=cPKQIhd347MH_9LaB-Ym7Mix1pqampG9MIgkeh08KA4,5757
|
|
113
113
|
bluer_objects/metadata/__init__.py,sha256=B8cmMOMMO53mTwD2LJUFbSjvangSkpLqhR3oVIBsoBI,260
|
|
114
114
|
bluer_objects/metadata/__main__.py,sha256=UAZBsf3AMUo-OHIgg4gS5_OowDOIO2T_zjismL3AfkI,2272
|
|
@@ -171,8 +171,8 @@ bluer_objects/tests/test_web_is_accessible.py,sha256=2Y20NAEDMblg0MKnhnqcfw3XVKE
|
|
|
171
171
|
bluer_objects/web/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
172
172
|
bluer_objects/web/__main__.py,sha256=xf2Ob54FI8JEokfGhFmiyOBdD9nBactwqmZvsKsdioU,624
|
|
173
173
|
bluer_objects/web/functions.py,sha256=KNufAFOc6N3BYf83lN2rUpKUdsnzb2anWyp9koFRVUo,172
|
|
174
|
-
bluer_objects-6.
|
|
175
|
-
bluer_objects-6.
|
|
176
|
-
bluer_objects-6.
|
|
177
|
-
bluer_objects-6.
|
|
178
|
-
bluer_objects-6.
|
|
174
|
+
bluer_objects-6.250.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
|
175
|
+
bluer_objects-6.250.1.dist-info/METADATA,sha256=zVn2L9sd5sqzQpxyVTRTYt-1D1ce4uwV5HHm-zRCRCo,3678
|
|
176
|
+
bluer_objects-6.250.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
177
|
+
bluer_objects-6.250.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
|
|
178
|
+
bluer_objects-6.250.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|