bluer-objects 6.250.1__py3-none-any.whl → 6.255.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.

@@ -223,7 +223,19 @@ def process_title(
223
223
  if filename_name != "README":
224
224
  title_pieces.append(filename_name)
225
225
 
226
- return True, ["# {}".format(": ".join(title_pieces))]
226
+ return True, [
227
+ "# {}".format(
228
+ ": ".join(
229
+ [
230
+ piece.replace(
231
+ "_",
232
+ "-",
233
+ )
234
+ for piece in title_pieces
235
+ ]
236
+ )
237
+ )
238
+ ]
227
239
 
228
240
 
229
241
  def process_variable(template_line: str):
bluer_objects/__init__.py CHANGED
@@ -4,7 +4,7 @@ ICON = "🌀"
4
4
 
5
5
  DESCRIPTION = f"{ICON} Object management in Bash."
6
6
 
7
- VERSION = "6.250.1"
7
+ VERSION = "6.255.1"
8
8
 
9
9
  REPO_NAME = "bluer-objects"
10
10
 
@@ -117,25 +117,29 @@ def copy(
117
117
  return False
118
118
 
119
119
  if log:
120
- logger.info(f"{NAME}: {source} -> {destination}")
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bluer_objects
3
- Version: 6.250.1
3
+ Version: 6.255.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
  [![pylint](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/bluer-objects.svg)](https://pypi.org/project/bluer-objects/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/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.250.1`](https://github.com/kamangir/bluer-objects).
67
+ built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.255.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=5iH-nut3h-05CX06ZJue_1kjA1TNn6ga9nYI8FSExkE,315
1
+ bluer_objects/__init__.py,sha256=Z4iwLgZZkCeP0QTdzqmBxPs8N-mob7qU0OmO_OcQ0TQ,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
@@ -74,11 +74,11 @@ bluer_objects/.abcli/web/where_am_i.sh,sha256=QPBXFo6Ni4pZEoOx0rtuJUxk6tOlp0ESMy
74
74
  bluer_objects/README/__init__.py,sha256=JwxdTVAK3LeUaw7rMJujOFIXZA59HaLCtxpsR1C-vpo,1311
75
75
  bluer_objects/README/functions.py,sha256=myga8anMnsIZuFP5vTaVuz8p1rvDD_n7GR966q8E_j8,5813
76
76
  bluer_objects/README/items.py,sha256=go4BpNhpdjiRIHf6EHDR5x9YlnboIgkvg7KvCt5rbVU,1508
77
- bluer_objects/README/utils.py,sha256=moNeJHHxXF_bh0SNb0FbRZnK5MXqO3ZNqwRw0DCRxN4,8007
77
+ bluer_objects/README/utils.py,sha256=WsEm0ad-gpMGMJ6X11W2nXYY5fBokOGPGNFvzjYZc5o,8241
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=H4cgKtCTpbY3dR7kAOvbAbq8xSEHR9s6MQ_3W-Pb6Ng,6441
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
@@ -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.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,,
174
+ bluer_objects-6.255.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
175
+ bluer_objects-6.255.1.dist-info/METADATA,sha256=rB31zp3kzAZbxvQkZ1nmWEPD1F2xi3BDyPlDZAOkx5c,3678
176
+ bluer_objects-6.255.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
177
+ bluer_objects-6.255.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
178
+ bluer_objects-6.255.1.dist-info/RECORD,,