bluer-sbc 8.47.1__py3-none-any.whl → 8.57.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.

@@ -0,0 +1,45 @@
1
+ #! /usr/bin/env bash
2
+
3
+ # internal function to bluer_ai_seed.
4
+ # seed is NOT local
5
+ function bluer_ai_seed_headless_ubuntu_rpi() {
6
+ local target=$1
7
+
8
+ seed="${seed}sudo systemctl disable unattended-upgrades$delim"
9
+ seed="${seed}sudo apt remove unattended-upgrades$delim"
10
+ seed="${seed}sudo apt update$delim"
11
+ seed="${seed}sudo apt upgrade$delim"
12
+ seed="${seed}sudo apt install -y wireless-tools$delim"
13
+ seed="${seed}sudo apt install -y python3-venv$delim_section"
14
+
15
+ seed="${seed}sudo mkdir -p /etc/systemd/system/getty@tty1.service.d$delim"
16
+ seed="$seed$(bluer_ai_seed add_file $abcli_path_git/bluer-sbc/bluer_sbc/ROS/override.conf /etc/systemd/system/getty@tty1.service.d/override.conf)$delim"
17
+ seed="${seed}sudo systemctl daemon-reexec$delim"
18
+ seed="${seed}sudo systemctl restart getty@tty1$delim_section"
19
+
20
+ bluer_ai_seed add_ssh_key
21
+
22
+ bluer_ai_seed add_repo
23
+
24
+ seed="${seed}mkdir -pv ~/storage/temp/ignore/$delim"
25
+ seed="${seed}touch ~/storage/temp/ignore/headless$delim_section"
26
+
27
+ bluer_ai_seed add_bluer_ai_env
28
+
29
+ seed="${seed}pip install --upgrade pip --no-input$delim"
30
+ seed="${seed}pip3 install -e .$delim"
31
+ seed="${seed}pip3 install opencv-python-headless$delim_section"
32
+
33
+ bluer_ai_seed add_repo repo=bluer-objects
34
+ seed="${seed}pip3 install -e .$delim_section"
35
+ seed="${seed}$(bluer_ai_seed add_file $abcli_path_git/bluer-objects/.env \$HOME/git/bluer-objects/.env)$delim_section"
36
+
37
+ bluer_ai_seed add_repo repo=bluer-sbc
38
+ seed="${seed}pip3 install -e .$delim_section"
39
+ seed="${seed}$(bluer_ai_seed add_file $abcli_path_git/bluer-sbc/.env \$HOME/git/bluer-sbc/.env)$delim_section"
40
+
41
+ bluer_ai_seed add_repo repo=bluer-ugv
42
+ seed="${seed}pip3 install -e .$delim_section"
43
+
44
+ seed="${seed}source \$HOME/git/bluer-ai/bluer_ai/.abcli/bluer_ai.sh$delim_section"
45
+ }
@@ -0,0 +1,26 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_sbc_ROS_session() {
4
+ local options=$2
5
+ local do_dryrun=$(bluer_ai_option_int "$options" dryrun 0)
6
+ local do_upload=$(bluer_ai_option_int "$options" upload 1)
7
+
8
+ bluer_ai_log "@sbc.ROS: session @ $abcli_object_name started ..."
9
+
10
+ bluer_objects_mlflow_tags_set \
11
+ $abcli_object_name \
12
+ session,ROS,host=$abcli_hostname,$BLUER_SBC_SESSION_OBJECT_TAGS
13
+
14
+ bluer_ai_eval dryrun=$do_dryrun \
15
+ python3 -m bluer_sbc.ROS \
16
+ ${task}_session \
17
+ "${@:3}"
18
+ local status="$?"
19
+
20
+ [[ "$do_upload" == 1 ]] &&
21
+ bluer_objects_upload - $abcli_object_name
22
+
23
+ bluer_ai_log "@sbc.ROS: session ended."
24
+
25
+ return $status
26
+ }
@@ -0,0 +1,15 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_sbc_ROS() {
4
+ local task=$1
5
+
6
+ local function_name=bluer_sbc_ROS_$task
7
+ if [[ $(type -t $function_name) == "function" ]]; then
8
+ $function_name "${@:2}"
9
+ return
10
+ fi
11
+
12
+ python3 -m bluer_sbc.ROS "$@"
13
+ }
14
+
15
+ bluer_ai_source_caller_suffix_path /ROS
@@ -6,6 +6,7 @@ function test_bluer_sbc_seed() {
6
6
  local target
7
7
  for target in \
8
8
  headless_rpi \
9
+ headless_ubuntu_rpi \
9
10
  jetson \
10
11
  rpi; do
11
12
  bluer_ai_eval ,$options \
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.47.1"
7
+ VERSION = "8.57.1"
8
8
 
9
9
  REPO_NAME = "bluer-sbc"
10
10
 
@@ -30,8 +30,6 @@ elif BLUER_SBC_HARDWARE_KIND == "sparkfun-top-phat":
30
30
  )
31
31
  elif BLUER_SBC_HARDWARE_KIND == "unicorn_16x16":
32
32
  from bluer_sbc.hardware.unicorn_16x16 import Unicorn_16x16 as Hardware_Class
33
- else:
34
- raise NameError(f"bluer-sbc: {BLUER_SBC_HARDWARE_KIND}: hardware not found.")
35
33
 
36
34
  hardware = Hardware_Class()
37
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bluer_sbc
3
- Version: 8.47.1
3
+ Version: 8.57.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)
@@ -49,7 +49,7 @@ pip install bluer_sbc
49
49
 
50
50
  [![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)
51
51
 
52
- built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_sbc-8.47.1`](https://github.com/kamangir/bluer-sbc).
52
+ built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_sbc-8.57.1`](https://github.com/kamangir/bluer-sbc).
53
53
 
54
54
 
55
55
  built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
@@ -1,5 +1,5 @@
1
1
  bluer_sbc/README.py,sha256=PX_NHt0J5kkaF38D3g0wljQWCG3L7w5C9hkRd4SP680,1179
2
- bluer_sbc/__init__.py,sha256=QatKpyH8vvwYocnhTjrMjd3W55mFP4-4hCLDRIXQmPs,291
2
+ bluer_sbc/__init__.py,sha256=r-vRPY_XvKuDqLKNO7RTIANJ7Pgl2CWTUvSSp6YP3Qg,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
@@ -7,6 +7,7 @@ bluer_sbc/host.py,sha256=RacmqxPRBQrL--JHx_Q-KyuEjEZ1kSFu4fa5pCA0CHQ,209
7
7
  bluer_sbc/logger.py,sha256=4euXgNprDpQSuR45RXy0kWQ1LvCL_dwOi2v37hVBWvk,99
8
8
  bluer_sbc/sample.env,sha256=bHyZQzzuFB6oKmxPbn9kyhdmkRtBobv6jEpq2gpxtwI,22
9
9
  bluer_sbc/urls.py,sha256=Bjdewssljt0LIefjixBem9JN0kkghPvmrIETj3GdXbY,17
10
+ bluer_sbc/.abcli/ROS.sh,sha256=JofKmvS5hbzffieNT2RgcuP93511AzYY-ldVEK7i_yM,303
10
11
  bluer_sbc/.abcli/abcli.sh,sha256=Q_YRZUeFjN4UT9zT8lzrNIQSuORPie4Cp5CW5O2pX5w,290
11
12
  bluer_sbc/.abcli/actions.sh,sha256=P4d9lOzxdvkISZ0M3lZKH9JlmrcWTJ_HeEQAhIRLvC8,224
12
13
  bluer_sbc/.abcli/adafruit_rgb_matrix.sh,sha256=DwPJeuDXYa_F0r4nIWNeBYVtodyHYT2tV9JxPbWxhAM,382
@@ -21,6 +22,8 @@ bluer_sbc/.abcli/seed.sh,sha256=75cd8YCA7JGXgohVk-N9CjxCLjZpIoAWYGy_QJ9wHlA,1639
21
22
  bluer_sbc/.abcli/session.sh,sha256=dZlqkVrEqxXuxOG11oouyDf3nKmpQFurxTovMFuK5OQ,1098
22
23
  bluer_sbc/.abcli/sparkfun_top_phat.sh,sha256=F8dV3MjghNU1MMzCXRnQ0kaorr2BOswLBt8Sry5Youo,686
23
24
  bluer_sbc/.abcli/unicorn_16x16.sh,sha256=_cvgK1tT51BqN12HxEx_9FXWTNvPISd4T7pPmA2Jxfo,330
25
+ bluer_sbc/.abcli/ROS/seed.sh,sha256=SNr_e4rPKihUACoBeEVaH3AHb8eAURyX581qBB4VJPE,1841
26
+ bluer_sbc/.abcli/ROS/session.sh,sha256=BvPcl4Ta1F-7K26LBwsz8vp6ZQtQ-4DeAORKiDdX4aQ,701
24
27
  bluer_sbc/.abcli/install/adafruit_rgb_matrix.sh,sha256=YwUKVwwNtmETTomaPUi5O01_Bhoo9IZGdkv3ohGYyTY,452
25
28
  bluer_sbc/.abcli/install/grove.sh,sha256=4ceAMdU62p-_Y3gSF_ZLjqZqCnZ3ka_mKQVKu-bvdPI,848
26
29
  bluer_sbc/.abcli/install/lepton.sh,sha256=ziLRm872Y-SIRSqXFdSPap596hWFNOSJGz6oFLY4nMw,1005
@@ -32,11 +35,11 @@ bluer_sbc/.abcli/install/unicorn_16x16.sh,sha256=zt6VN6c6cLQ59m7GiUNdV7aPTfO8CRo
32
35
  bluer_sbc/.abcli/tests/README.sh,sha256=0hp3y_URdsFtnYw5Ujty6xy5SNhNHGEVPqpQoYxu0WA,142
33
36
  bluer_sbc/.abcli/tests/camera.sh,sha256=NRr-RbyNORMSHYxNu6VUpVzHIJ2Qy-5NQr2qh54kqUg,1013
34
37
  bluer_sbc/.abcli/tests/help.sh,sha256=6HZ6FN_AvAaxOweMMmj5STnRO_V6E6JeF_IWqy6IF40,1425
35
- bluer_sbc/.abcli/tests/seed.sh,sha256=1j3ForzIefZTBUdx5U8BEurTArFE8N8GjWO21jgEhbE,305
38
+ bluer_sbc/.abcli/tests/seed.sh,sha256=2FxgOe2WxSGKqKaigqxl28LCG4psIPVWE6I7oh9XjR4,335
36
39
  bluer_sbc/.abcli/tests/version.sh,sha256=odDOmAFlzH7KtsAYWOmyLsQ6GAws6XadNlZ6H-NZuzc,147
37
40
  bluer_sbc/algo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
41
  bluer_sbc/algo/diff.py,sha256=ZCUkRgip-Uss86r--RuEwyYtFjpukM3fbY_yovXwgNw,2190
39
- bluer_sbc/hardware/__init__.py,sha256=_8mhjisGA1ACrN4l0uxOexVqgi4T0qx64dW6lFeukfQ,1509
42
+ bluer_sbc/hardware/__init__.py,sha256=EW_u4fRXPVpAO47EaLZn0Vxo_rfE9a1O4cPdl_w6vOI,1421
40
43
  bluer_sbc/hardware/adafruit_rgb_matrix.py,sha256=4xFRghBXJWkDDOhPvO-Yt6xY61D451KKxjrUL8ZxXQ8,803
41
44
  bluer_sbc/hardware/display.py,sha256=bRjemItjmF3tJcWxP3e2lVB5Ul8br3_3PcJhfrBT7mY,3057
42
45
  bluer_sbc/hardware/grove.py,sha256=PW4IosMcsMBh_ffuWHbD9AUkNT7Oyc6MTflwRnEZ_T4,2670
@@ -77,8 +80,8 @@ bluer_sbc/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
77
80
  bluer_sbc/session/__main__.py,sha256=O2Tv6HgE8Bos7ASIViYludpWVi6EEc9XRoP8jYC2-2Q,534
78
81
  bluer_sbc/session/classes.py,sha256=QCey32u06Whknr-bwnnw3Fv2_-Epdr_b4mDTHjoke9k,8913
79
82
  bluer_sbc/session/functions.py,sha256=eRJKSczRjKn3Fo2jv8_4EMAZwfJBj5cIPg2WqHkC2Q8,481
80
- bluer_sbc-8.47.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
81
- bluer_sbc-8.47.1.dist-info/METADATA,sha256=wtcNEeR0cy7tkp6xgc_9-3tN16Ig1-nvw7Z1g4M8Fhg,2703
82
- bluer_sbc-8.47.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
- bluer_sbc-8.47.1.dist-info/top_level.txt,sha256=DsLDHFiTeAj2mctGVmCSgWUhzCznWSQoUmQ1VyEmnT0,10
84
- bluer_sbc-8.47.1.dist-info/RECORD,,
83
+ bluer_sbc-8.57.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
84
+ bluer_sbc-8.57.1.dist-info/METADATA,sha256=sSn20leGgSVDCmGtOtVz9x0grIUwT_RWa1mDJGjOLqY,2703
85
+ bluer_sbc-8.57.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
86
+ bluer_sbc-8.57.1.dist-info/top_level.txt,sha256=DsLDHFiTeAj2mctGVmCSgWUhzCznWSQoUmQ1VyEmnT0,10
87
+ bluer_sbc-8.57.1.dist-info/RECORD,,