bluer-options 5.155.1__tar.gz → 5.159.1__tar.gz
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-options might be problematic. Click here for more details.
- {bluer_options-5.155.1/bluer_options.egg-info → bluer_options-5.159.1}/PKG-INFO +1 -1
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/list.sh +7 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/__init__.py +1 -1
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/host/functions.py +3 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/list/__main__.py +5 -1
- {bluer_options-5.155.1 → bluer_options-5.159.1/bluer_options.egg-info}/PKG-INFO +1 -1
- {bluer_options-5.155.1 → bluer_options-5.159.1}/LICENSE +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/MANIFEST.in +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/README.md +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/alias.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/assert.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/bluer_options.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/bool.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/browse.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/code.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/env/backup.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/env/dot/cat.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/env/dot/cp.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/env/dot/edit.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/env/dot/load.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/env/dot/seed.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/env/dot.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/env.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/eval.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/generic_task.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/help.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/install.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/logging.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/open.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/options.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/pause.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/plugins.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/pylint.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/pytest.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/repeat.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/seed.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/sleep.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/source.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/string.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/terminal.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/test.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/wait.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/.bash/watch.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/__main__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/assets/example1.sh +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/config.env +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/elapsed_timer.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/env/__init__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/env/functions.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/help/__init__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/help/__main__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/help/functions.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/help/parsing.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/host/__init__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/host/__main__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/list/__init__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/logger/__init__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/logger/config.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/options/__init__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/options/__main__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/options/classes.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/string/__init__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/string/__main__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/string/constants.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/string/functions.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/terminal/__init__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/terminal/__main__.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/terminal/functions.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/timer.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options/urls.py +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options.egg-info/SOURCES.txt +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options.egg-info/dependency_links.txt +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options.egg-info/requires.txt +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/bluer_options.egg-info/top_level.txt +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/pyproject.toml +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/requirements.txt +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/setup.cfg +0 -0
- {bluer_options-5.155.1 → bluer_options-5.159.1}/setup.py +0 -0
|
@@ -85,6 +85,13 @@ function bluer_ai_list_resize() {
|
|
|
85
85
|
"${@:3}"
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
function bluer_ai_list_reverse() {
|
|
89
|
+
python3 -m bluer_options.list \
|
|
90
|
+
reverse \
|
|
91
|
+
--items "$1" \
|
|
92
|
+
"${@:2}"
|
|
93
|
+
}
|
|
94
|
+
|
|
88
95
|
function bluer_ai_list_sort() {
|
|
89
96
|
python3 -m bluer_options.list \
|
|
90
97
|
sort \
|
|
@@ -36,6 +36,9 @@ def get_name_() -> str:
|
|
|
36
36
|
if is_jupyter():
|
|
37
37
|
return "Jupyter-Notebook"
|
|
38
38
|
|
|
39
|
+
if is_github_workflow():
|
|
40
|
+
return "github-workflow"
|
|
41
|
+
|
|
39
42
|
try:
|
|
40
43
|
if is_rpi():
|
|
41
44
|
# https://www.raspberrypi-spy.co.uk/2012/09/getting-your-raspberry-pi-serial-number-using-python/
|
|
@@ -7,7 +7,9 @@ from bluer_options.logger.config import logger
|
|
|
7
7
|
|
|
8
8
|
NAME = module.name(__file__, NAME)
|
|
9
9
|
|
|
10
|
-
LIST_OF_TASKS =
|
|
10
|
+
LIST_OF_TASKS = (
|
|
11
|
+
"filter|in|intersect|item|len|log|next|nonempty|prev|resize|reverse|sort"
|
|
12
|
+
)
|
|
11
13
|
|
|
12
14
|
parser = argparse.ArgumentParser(NAME)
|
|
13
15
|
parser.add_argument(
|
|
@@ -146,6 +148,8 @@ elif args.task == "prev":
|
|
|
146
148
|
print(prev_item)
|
|
147
149
|
elif args.task == "resize":
|
|
148
150
|
print(delim.join(list_of_items[: args.count] if args.count >= 0 else list_of_items))
|
|
151
|
+
elif args.task == "reverse":
|
|
152
|
+
print(delim.join(list_of_items[::-1]))
|
|
149
153
|
elif args.task == "sort":
|
|
150
154
|
if args.unique:
|
|
151
155
|
list_of_items = list(set(list_of_items))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|