bluer-sbc 8.9.1__py3-none-any.whl → 8.16.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-sbc might be problematic. Click here for more details.

@@ -10,5 +10,5 @@ function bluer_sbc_adafruit_rgb_matrix() {
10
10
  return
11
11
  fi
12
12
 
13
- abcli_log_error "@sbc: adafruit_rgb_matrix: $task: command not found."
13
+ bluer_ai_log_error "@sbc: adafruit_rgb_matrix: $task: command not found."
14
14
  }
bluer_sbc/.abcli/grove.sh CHANGED
@@ -23,7 +23,7 @@ function bluer_sbc_grove() {
23
23
  filepath="Seeed_Python_SSD1315/examples"
24
24
  filename="image"
25
25
  else
26
- abcli_log_error "@sbc: grove: $task: $what: hardware not found."
26
+ bluer_ai_log_error "@sbc: grove: $task: $what: hardware not found."
27
27
  return
28
28
  fi
29
29
 
@@ -39,5 +39,5 @@ function bluer_sbc_grove() {
39
39
  return
40
40
  fi
41
41
 
42
- abcli_log_error "@sbc: grove: $task: command not found."
42
+ bluer_ai_log_error "@sbc: grove: $task: command not found."
43
43
  }
@@ -10,5 +10,5 @@ function bluer_sbc_scroll_phat_hd() {
10
10
  return
11
11
  fi
12
12
 
13
- abcli_log_error "@sbc: scroll_phat_hd: $task: command not found."
13
+ bluer_ai_log_error "@sbc: scroll_phat_hd: $task: command not found."
14
14
  }
@@ -11,7 +11,7 @@ function bluer_sbc_session() {
11
11
 
12
12
  abcli_log "@sbc: session @ $abcli_object_name started ..."
13
13
 
14
- abcli_mlflow_tags_set \
14
+ bluer_objects_mlflow_tags_set \
15
15
  $abcli_object_name \
16
16
  session,host=$abcli_hostname,$BLUER_SBC_SESSION_OBJECT_TAGS
17
17
 
@@ -10,5 +10,5 @@ function bluer_sbc_unicorn_16x16() {
10
10
  return
11
11
  fi
12
12
 
13
- abcli_log_error "@sbc: unicorn_16x16: $task: command not found."
13
+ bluer_ai_log_error "@sbc: unicorn_16x16: $task: command not found."
14
14
  }
bluer_sbc/__init__.py CHANGED
@@ -4,7 +4,7 @@ ICON = "🌀"
4
4
 
5
5
  DESCRIPTION = f"{ICON} AI for single board computers."
6
6
 
7
- VERSION = "8.9.1"
7
+ VERSION = "8.16.1"
8
8
 
9
9
  REPO_NAME = "bluer-sbc"
10
10
 
bluer_sbc/algo/diff.py CHANGED
@@ -41,9 +41,7 @@ class Diff:
41
41
  try:
42
42
  self.last_diff = float(
43
43
  np.percentile(
44
- np.abs(
45
- image_scaled.astype(np.float) - self.previous.astype(np.float)
46
- ),
44
+ np.abs(image_scaled.astype(float) - self.previous.astype(float)),
47
45
  90,
48
46
  )
49
47
  / 255
@@ -7,7 +7,7 @@ from bluer_options.logger import crash_report
7
7
  from bluer_options.timer import Timer
8
8
  from bluer_objects import file
9
9
  from bluer_objects import objects
10
- from bluer_objects.storage import instance as storage
10
+ from bluer_objects.storage import upload
11
11
  from bluer_objects.graphics.signature import add_signature
12
12
  from bluer_ai import VERSION as abcli_VERSION
13
13
  from bluer_ai.modules import terraform
@@ -119,7 +119,10 @@ class Session:
119
119
  self.frame_filename = filename
120
120
 
121
121
  if self.auto_upload:
122
- storage.upload_file(self.frame_filename)
122
+ upload(
123
+ object_name=abcli_object_name,
124
+ filename=self.frame_filename,
125
+ )
123
126
 
124
127
  def check_keys(self):
125
128
  for key in hardware.key_buffer:
@@ -235,7 +238,6 @@ class Session:
235
238
  " | ".join(
236
239
  (["*"] if self.new_frame else [])
237
240
  + (["^"] if self.auto_upload else [])
238
- + ([f">{self.outbound_queue}"] if self.outbound_queue else [])
239
241
  + hardware.signature()
240
242
  + [
241
243
  "diff: {:.03f} - {}".format(
@@ -294,14 +296,12 @@ class Session:
294
296
  for enabled, step_ in zip(
295
297
  [
296
298
  "keys" in steps,
297
- "messages" in steps,
298
299
  "timers" in steps,
299
300
  "seed" in steps,
300
301
  "imager" in steps,
301
302
  ],
302
303
  [
303
304
  self.check_keys,
304
- self.check_messages,
305
305
  self.check_timers,
306
306
  self.check_seed,
307
307
  self.check_imager,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bluer_sbc
3
- Version: 8.9.1
3
+ Version: 8.16.1
4
4
  Summary: 🌀 AI for single board computers.
5
5
  Home-page: https://github.com/kamangir/bluer-sbc
6
6
  Author: Arash Abadpour (Kamangir)
@@ -50,7 +50,7 @@ pip install bluer_sbc
50
50
 
51
51
  [![pylint](https://github.com/kamangir/bluer-sbc/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/bluer-sbc/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/bluer-sbc/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/bluer-sbc/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/bluer-sbc/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/bluer-sbc/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/bluer-sbc.svg)](https://pypi.org/project/bluer-sbc/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/bluer-sbc)](https://pypistats.org/packages/bluer-sbc)
52
52
 
53
- built by 🌀 [`bluer_options-5.35.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`bluer_sbc-8.9.1`](https://github.com/kamangir/bluer-sbc).
53
+ built by 🌀 [`bluer_options-5.48.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`bluer_sbc-8.16.1`](https://github.com/kamangir/bluer-sbc).
54
54
 
55
55
 
56
56
 
@@ -1,5 +1,5 @@
1
1
  bluer_sbc/README.py,sha256=PX_NHt0J5kkaF38D3g0wljQWCG3L7w5C9hkRd4SP680,1179
2
- bluer_sbc/__init__.py,sha256=PUDbR8_vYYh6MgDIJasRmD52KuJrQSf6nUyGJwupXxI,290
2
+ bluer_sbc/__init__.py,sha256=sGhA5lZdoE-tmPDuCsaF_MobG6CLJhQG0fBR_ueSf-k,291
3
3
  bluer_sbc/__main__.py,sha256=JV8oYpZDQbvcDpKJtbjU0hDeMJkzsDLGlhIWLmRpDQ4,348
4
4
  bluer_sbc/config.env,sha256=_0-DQI3JZ5lvC1750KepY4ug6apI0I5EhcbZ3JD1yZs,652
5
5
  bluer_sbc/env.py,sha256=w1kYRW06SUm4AzyrqWX1SDRahR8eHWmWHEV1WQ3k1rs,1554
@@ -9,17 +9,17 @@ bluer_sbc/sample.env,sha256=bHyZQzzuFB6oKmxPbn9kyhdmkRtBobv6jEpq2gpxtwI,22
9
9
  bluer_sbc/urls.py,sha256=Bjdewssljt0LIefjixBem9JN0kkghPvmrIETj3GdXbY,17
10
10
  bluer_sbc/.abcli/abcli.sh,sha256=Q_YRZUeFjN4UT9zT8lzrNIQSuORPie4Cp5CW5O2pX5w,290
11
11
  bluer_sbc/.abcli/actions.sh,sha256=iULqTxrLdeJFjf6RFClPECb4Vv6J7-zSGPKyZpL4QIw,221
12
- bluer_sbc/.abcli/adafruit_rgb_matrix.sh,sha256=sfWujC_M4NV5FbieDXKsqc4RcAO2k5QtnKkldQSdeMw,379
12
+ bluer_sbc/.abcli/adafruit_rgb_matrix.sh,sha256=DwPJeuDXYa_F0r4nIWNeBYVtodyHYT2tV9JxPbWxhAM,382
13
13
  bluer_sbc/.abcli/alias.sh,sha256=0J8ChbWxoRSA-nkVpzweNaEKEqhT6X6ah32o5I69Hyk,72
14
14
  bluer_sbc/.abcli/blue_sbc.sh,sha256=--uBD7ZAtI2HBrCoFxmhFTzxoCF_lrLAeL9HKgKDqX4,192
15
15
  bluer_sbc/.abcli/camera.sh,sha256=zy7umdJzle47r7u6-amUcss8BUhmZG65aAkK5kAiiS0,444
16
- bluer_sbc/.abcli/grove.sh,sha256=zYf4tTmHmRU4XL5Mk-ipR22Eb-szVl9fhWS6Ch8zkcM,1165
16
+ bluer_sbc/.abcli/grove.sh,sha256=pXBiEJ8CXDwR3vYXkXCWLnd9nexqgwMFTF3oSoPqzHI,1171
17
17
  bluer_sbc/.abcli/hat.sh,sha256=ggMb9XOFA3t3sBTGalQK4x7yNuAgK3jA6UkFDWAnndM,449
18
18
  bluer_sbc/.abcli/lepton.sh,sha256=e7bzeYC8JpZMTTWkIfIscPfsoGYPb1ONWaTdDrglfRc,327
19
- bluer_sbc/.abcli/scroll_phat_hd.sh,sha256=Rh5zP5p8_OOvs4OOBN8J-lho2ypsqjRLdxotL3Ke4Bo,328
20
- bluer_sbc/.abcli/session.sh,sha256=rc4a9SHbCq4GHElT9mvE9Rq4kbBRVO9fgjL8ETfmI9E,1072
19
+ bluer_sbc/.abcli/scroll_phat_hd.sh,sha256=AUD38PfNMCA-88GjHa-xV4OM7IS8mg5ECNFjAzLJ8AQ,331
20
+ bluer_sbc/.abcli/session.sh,sha256=5D5xoG4gDy8oeQ4tqCiDuXsrJt1bWeOwyGnAFmYPCDM,1080
21
21
  bluer_sbc/.abcli/sparkfun_top_phat.sh,sha256=F8dV3MjghNU1MMzCXRnQ0kaorr2BOswLBt8Sry5Youo,686
22
- bluer_sbc/.abcli/unicorn_16x16.sh,sha256=zBmMC4MjjTtI5o2FrA2Hr2E83anemCOd8UPEkGdAFho,327
22
+ bluer_sbc/.abcli/unicorn_16x16.sh,sha256=_cvgK1tT51BqN12HxEx_9FXWTNvPISd4T7pPmA2Jxfo,330
23
23
  bluer_sbc/.abcli/install/adafruit_rgb_matrix.sh,sha256=jQ1Hw9TCBarQhisOGkSqUuifFxQ5SMHtJT-ecK2CnXs,446
24
24
  bluer_sbc/.abcli/install/grove.sh,sha256=hxzij4n9aaFEKWsK_lEDHnyjiVOGk0n0E9N26KgXEhc,842
25
25
  bluer_sbc/.abcli/install/lepton.sh,sha256=j4Ht9pOGP__NVjEHued-dFwXQ50hMjYAXC_VxnFoE9A,999
@@ -33,7 +33,7 @@ bluer_sbc/.abcli/tests/camera.sh,sha256=VjamlnMfnzpLtiSGtMOarHmyHo1bO6GgpHN2iAIo
33
33
  bluer_sbc/.abcli/tests/help.sh,sha256=-R5VCGB3DUhnLYGqMY_mR0J7ab_AVY9T4RuOBxh4H_U,1453
34
34
  bluer_sbc/.abcli/tests/version.sh,sha256=mLLaswbuyDiyUZVj3gOLrdp2kK_TTOUoAeRHc4mwFOc,144
35
35
  bluer_sbc/algo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- bluer_sbc/algo/diff.py,sha256=hWkpvUCDY6d9xXNhArJbtMhu5gw8RL4FjkRf35fR63E,2242
36
+ bluer_sbc/algo/diff.py,sha256=ZCUkRgip-Uss86r--RuEwyYtFjpukM3fbY_yovXwgNw,2190
37
37
  bluer_sbc/hardware/__init__.py,sha256=_8mhjisGA1ACrN4l0uxOexVqgi4T0qx64dW6lFeukfQ,1509
38
38
  bluer_sbc/hardware/adafruit_rgb_matrix.py,sha256=4xFRghBXJWkDDOhPvO-Yt6xY61D451KKxjrUL8ZxXQ8,803
39
39
  bluer_sbc/hardware/display.py,sha256=bRjemItjmF3tJcWxP3e2lVB5Ul8br3_3PcJhfrBT7mY,3057
@@ -73,10 +73,10 @@ bluer_sbc/imager/lepton/classes.py,sha256=CnWEwaBZC2hAFuYkv32SAu7GaIK1A-PiLEppAg
73
73
  bluer_sbc/imager/lepton/python2.py,sha256=1jAHHzmda_bmqKj0b0X-2KONW5s9umxKaTY4ZieoaCI,1600
74
74
  bluer_sbc/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
75
75
  bluer_sbc/session/__main__.py,sha256=O2Tv6HgE8Bos7ASIViYludpWVi6EEc9XRoP8jYC2-2Q,534
76
- bluer_sbc/session/classes.py,sha256=o-dz8Uma52Yxpd-oJEMVnonr0OgMm34I70_WJbuKvLM,9005
76
+ bluer_sbc/session/classes.py,sha256=QCey32u06Whknr-bwnnw3Fv2_-Epdr_b4mDTHjoke9k,8913
77
77
  bluer_sbc/session/functions.py,sha256=eRJKSczRjKn3Fo2jv8_4EMAZwfJBj5cIPg2WqHkC2Q8,481
78
- bluer_sbc-8.9.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
79
- bluer_sbc-8.9.1.dist-info/METADATA,sha256=khXUc_VYIww51v2B9miDMmlSilhYuIV6U_OCiN7WDM0,2718
80
- bluer_sbc-8.9.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
81
- bluer_sbc-8.9.1.dist-info/top_level.txt,sha256=DsLDHFiTeAj2mctGVmCSgWUhzCznWSQoUmQ1VyEmnT0,10
82
- bluer_sbc-8.9.1.dist-info/RECORD,,
78
+ bluer_sbc-8.16.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
79
+ bluer_sbc-8.16.1.dist-info/METADATA,sha256=aT88aNiKV6ubI2XnQ-LctYU2Xwa1L2JygNZyGnLlJeQ,2720
80
+ bluer_sbc-8.16.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
81
+ bluer_sbc-8.16.1.dist-info/top_level.txt,sha256=DsLDHFiTeAj2mctGVmCSgWUhzCznWSQoUmQ1VyEmnT0,10
82
+ bluer_sbc-8.16.1.dist-info/RECORD,,