bluer-objects 6.248.1__py3-none-any.whl → 6.252.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/file/functions.py +11 -3
- bluer_objects/logger/image.py +2 -1
- {bluer_objects-6.248.1.dist-info → bluer_objects-6.252.1.dist-info}/METADATA +2 -2
- {bluer_objects-6.248.1.dist-info → bluer_objects-6.252.1.dist-info}/RECORD +8 -8
- {bluer_objects-6.248.1.dist-info → bluer_objects-6.252.1.dist-info}/WHEEL +0 -0
- {bluer_objects-6.248.1.dist-info → bluer_objects-6.252.1.dist-info}/licenses/LICENSE +0 -0
- {bluer_objects-6.248.1.dist-info → bluer_objects-6.252.1.dist-info}/top_level.txt +0 -0
bluer_objects/__init__.py
CHANGED
bluer_objects/file/functions.py
CHANGED
|
@@ -117,25 +117,29 @@ def copy(
|
|
|
117
117
|
return False
|
|
118
118
|
|
|
119
119
|
if log:
|
|
120
|
-
logger.info(f"{
|
|
120
|
+
logger.info(f"{source} -copy-> {destination}")
|
|
121
121
|
|
|
122
122
|
return True
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
def delete(
|
|
126
126
|
filename: str,
|
|
127
|
+
log: bool = False,
|
|
127
128
|
) -> bool:
|
|
128
129
|
if not os.path.isfile(filename):
|
|
129
130
|
return True
|
|
130
131
|
|
|
131
132
|
try:
|
|
132
133
|
os.remove(filename)
|
|
133
|
-
|
|
134
|
-
return True
|
|
135
134
|
except:
|
|
136
135
|
crash_report(f"{NAME}: delete({filename}): failed.")
|
|
137
136
|
return False
|
|
138
137
|
|
|
138
|
+
if log:
|
|
139
|
+
logger.info(f"deleted {filename}.")
|
|
140
|
+
|
|
141
|
+
return True
|
|
142
|
+
|
|
139
143
|
|
|
140
144
|
def download(
|
|
141
145
|
url: str,
|
|
@@ -238,6 +242,7 @@ def list_of(
|
|
|
238
242
|
def move(
|
|
239
243
|
source: str,
|
|
240
244
|
destination: str,
|
|
245
|
+
log: bool = True,
|
|
241
246
|
) -> bool:
|
|
242
247
|
try:
|
|
243
248
|
os.makedirs(path(destination), exist_ok=True)
|
|
@@ -248,6 +253,9 @@ def move(
|
|
|
248
253
|
crash_report(f"{NAME}: move({source},{destination}): failed.")
|
|
249
254
|
return False
|
|
250
255
|
|
|
256
|
+
if log:
|
|
257
|
+
logger.info(f"{source} -move-> {destination}")
|
|
258
|
+
|
|
251
259
|
return True
|
|
252
260
|
|
|
253
261
|
|
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:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bluer_objects
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.252.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.252.1`](https://github.com/kamangir/bluer-objects).
|
|
68
68
|
|
|
69
69
|
built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bluer_objects/__init__.py,sha256=
|
|
1
|
+
bluer_objects/__init__.py,sha256=GwAOuxqIr-cXzoiiIhDlQIZudbDbvAMgkI20i49ISis,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
|
|
@@ -78,7 +78,7 @@ bluer_objects/README/utils.py,sha256=moNeJHHxXF_bh0SNb0FbRZnK5MXqO3ZNqwRw0DCRxN4
|
|
|
78
78
|
bluer_objects/file/__init__.py,sha256=c_79ipBkKl6OFDimOev0vnaVdpUk-Bl3oJUapOreMXc,681
|
|
79
79
|
bluer_objects/file/__main__.py,sha256=v2IXWvZeh_B2sGYWzv1CiUY-7HWHXXghZM5M4IPjbu4,1277
|
|
80
80
|
bluer_objects/file/classes.py,sha256=TRgeRP2yxInPkBnywhuB4BsoBcBRA3UmQzX1dI43UxU,872
|
|
81
|
-
bluer_objects/file/functions.py,sha256=
|
|
81
|
+
bluer_objects/file/functions.py,sha256=YBJFaI5l-bY1LSz8S_hMhbCmym6cULZTF5fzP2W4Osk,6604
|
|
82
82
|
bluer_objects/file/load.py,sha256=1zt5xC95HFr89G9lsi3gCJMSvC4Bt0vVeeUEf3NjpOQ,4281
|
|
83
83
|
bluer_objects/file/save.py,sha256=eXl5pM8Q29Jq8skVkZkU6THoqyMd2FkfFIPgO0-NarM,5056
|
|
84
84
|
bluer_objects/graphics/__init__.py,sha256=Dd0kQqN7Ldvp1N9oyIirPZ6W3IdUtfPj2u21Bf4W_MI,213
|
|
@@ -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.252.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
|
175
|
+
bluer_objects-6.252.1.dist-info/METADATA,sha256=I2FAoSIlLSunKcGHee13gsCm_jfLOmGmX9uoLL7DS3Y,3678
|
|
176
|
+
bluer_objects-6.252.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
177
|
+
bluer_objects-6.252.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
|
|
178
|
+
bluer_objects-6.252.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|