listpick 0.1.14.3__tar.gz → 0.1.14.4__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 listpick might be problematic. Click here for more details.
- {listpick-0.1.14.3/src/listpick.egg-info → listpick-0.1.14.4}/PKG-INFO +1 -1
- {listpick-0.1.14.3 → listpick-0.1.14.4}/setup.py +1 -1
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/listpick_app.py +20 -15
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/table_to_list_of_lists.py +15 -8
- {listpick-0.1.14.3 → listpick-0.1.14.4/src/listpick.egg-info}/PKG-INFO +1 -1
- {listpick-0.1.14.3 → listpick-0.1.14.4}/.gitignore +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/CHANGELOG.md +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/LICENSE.txt +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/README.md +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/TODO.md +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/assets/aria2tui_screenshot.png +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/assets/file_compare.png +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/assets/lpfman.png +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/data_generation/list_files.toml +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/data_generation/list_files_empty.toml +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/data_generation/video_duplicates.toml +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/data_generation/video_mediainfo.toml +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/input_files/polynomials.tsv +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/input_guides/gnuplot_graph.md +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/picker/auxiallary_files/2024-25_Premier_League.pkl +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/picker/footer_string_example.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/picker/picker_example.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/picker/template.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/examples/picker/wikipedia_table.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/listpick.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/requirements.txt +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/setup.cfg +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/__init__.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/__main__.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/ui/__init__.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/ui/build_help.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/ui/footer.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/ui/git-bugreport-2025-08-16-1438.txt +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/ui/help_screen.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/ui/input_field.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/ui/keys.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/ui/pane_stuff.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/ui/picker_colours.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/__init__.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/clipboard_operations.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/config.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/dump.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/filtering.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/generate_data.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/options_selectors.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/paste_operations.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/picker_log.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/search_and_filter_utils.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/searching.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/sorting.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick/utils/utils.py +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick.egg-info/SOURCES.txt +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick.egg-info/dependency_links.txt +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick.egg-info/entry_points.txt +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick.egg-info/requires.txt +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/src/listpick.egg-info/top_level.txt +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/tests/kitty_control.sh +0 -0
- {listpick-0.1.14.3 → listpick-0.1.14.4}/tests/sorting_dates.csv +0 -0
|
@@ -16,7 +16,7 @@ with open("README.md", "r", encoding = "utf-8") as fh:
|
|
|
16
16
|
|
|
17
17
|
setuptools.setup(
|
|
18
18
|
name = "listpick",
|
|
19
|
-
version = "0.1.14.
|
|
19
|
+
version = "0.1.14.4",
|
|
20
20
|
author = "Grim",
|
|
21
21
|
author_email = "grimandgreedy@protonmail.com",
|
|
22
22
|
description = "Listpick is a powerful TUI data tool for creating TUI apps or viewing/comparing tabulated data.",
|
|
@@ -573,10 +573,6 @@ class Picker:
|
|
|
573
573
|
# If a sort is passed
|
|
574
574
|
if len(self.indexed_items) > 0:
|
|
575
575
|
sort_items(self.indexed_items, sort_method=self.columns_sort_method[self.sort_column], sort_column=self.sort_column, sort_reverse=self.sort_reverse[self.sort_column]) # Re-sort self.items based on new column
|
|
576
|
-
# if len(self.items[0]) == 1:
|
|
577
|
-
# self.number_columns = False
|
|
578
|
-
|
|
579
|
-
|
|
580
576
|
|
|
581
577
|
h, w = self.stdscr.getmaxyx()
|
|
582
578
|
|
|
@@ -677,7 +673,14 @@ class Picker:
|
|
|
677
673
|
# Update current column index
|
|
678
674
|
self.selected_column = new_index
|
|
679
675
|
|
|
680
|
-
def test_screen_size(self):
|
|
676
|
+
def test_screen_size(self) -> bool:
|
|
677
|
+
"""
|
|
678
|
+
Determine if the terminal is large enough to display the picker.
|
|
679
|
+
If the terminal is too small then display a message saying so.
|
|
680
|
+
|
|
681
|
+
Returns: True if terminal is large enough to display the Picker.
|
|
682
|
+
|
|
683
|
+
"""
|
|
681
684
|
self.logger.debug("function: test_screen_size()")
|
|
682
685
|
h, w = self.stdscr.getmaxyx()
|
|
683
686
|
## Terminal too small to display Picker
|
|
@@ -689,9 +692,10 @@ class Picker:
|
|
|
689
692
|
return False
|
|
690
693
|
return True
|
|
691
694
|
|
|
692
|
-
def splash_screen(self, message=""):
|
|
693
|
-
self.logger.info(f"function: splash_screen({message})")
|
|
695
|
+
def splash_screen(self, message="") -> None:
|
|
694
696
|
""" Display a splash screen with a message. Useful when loading a large data set. """
|
|
697
|
+
|
|
698
|
+
self.logger.info(f"function: splash_screen({message})")
|
|
695
699
|
h, w =self.stdscr.getmaxyx()
|
|
696
700
|
self.stdscr.bkgd(' ', curses.color_pair(2))
|
|
697
701
|
try:
|
|
@@ -854,14 +858,6 @@ class Picker:
|
|
|
854
858
|
except:
|
|
855
859
|
pass
|
|
856
860
|
|
|
857
|
-
# Draw:
|
|
858
|
-
# 1. standard row
|
|
859
|
-
# 2. highlights l0
|
|
860
|
-
# 3. selected
|
|
861
|
-
# 4. above-selected highlights l1
|
|
862
|
-
# 5. cursor
|
|
863
|
-
# 6. top-level highlights l2
|
|
864
|
-
## Display rows and highlights
|
|
865
861
|
|
|
866
862
|
def sort_highlights(highlights):
|
|
867
863
|
"""
|
|
@@ -921,6 +917,15 @@ class Picker:
|
|
|
921
917
|
except:
|
|
922
918
|
pass
|
|
923
919
|
|
|
920
|
+
# Draw:
|
|
921
|
+
# 1. standard row
|
|
922
|
+
# 2. highlights l0
|
|
923
|
+
# 3. selected
|
|
924
|
+
# 4. above-selected highlights l1
|
|
925
|
+
# 5. cursor
|
|
926
|
+
# 6. top-level highlights l2
|
|
927
|
+
## Display rows and highlights
|
|
928
|
+
|
|
924
929
|
l0_highlights, l1_highlights, l2_highlights = sort_highlights(self.highlights)
|
|
925
930
|
|
|
926
931
|
|
|
@@ -144,11 +144,14 @@ def table_to_list(
|
|
|
144
144
|
import pandas as pd
|
|
145
145
|
ef = pd.ExcelFile(input_arg)
|
|
146
146
|
sheets = ef.sheet_names
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
sheet_number = min(0, max(sheet_number, len(sheets)-1))
|
|
148
|
+
df = pd.read_excel(input_arg, engine='odf', sheet_name=sheet_number)
|
|
149
|
+
# if sheet_number < len(sheets):
|
|
150
|
+
# df = pd.read_excel(input_arg, sheet_name=sheet_number)
|
|
151
|
+
# else:
|
|
152
|
+
# df = pd.read_excel(input_arg)
|
|
151
153
|
table_data = df.values.tolist()
|
|
154
|
+
table_data = [[x if not pd.isna(x) else "" for x in row] for row in table_data]
|
|
152
155
|
try:
|
|
153
156
|
header = list(df.columns)
|
|
154
157
|
except:
|
|
@@ -160,11 +163,15 @@ def table_to_list(
|
|
|
160
163
|
import pandas as pd
|
|
161
164
|
ef = pd.ExcelFile(input_arg)
|
|
162
165
|
sheets = ef.sheet_names
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
sheet_number = min(0, max(sheet_number, len(sheets)-1))
|
|
167
|
+
df = pd.read_excel(input_arg, engine='odf', sheet_name=sheet_number)
|
|
168
|
+
# if sheet_number < len(sheets):
|
|
169
|
+
# df = pd.read_excel(input_arg, engine='odf', sheet_name=sheet_number)
|
|
170
|
+
# else:
|
|
171
|
+
# df = pd.read_excel(input_arg, engine='odf')
|
|
167
172
|
table_data = df.values.tolist()
|
|
173
|
+
table_data = [[x if not pd.isna(x) else "" for x in row] for row in table_data]
|
|
174
|
+
|
|
168
175
|
try:
|
|
169
176
|
header = list(df.columns)
|
|
170
177
|
except:
|
|
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
|
{listpick-0.1.14.3 → listpick-0.1.14.4}/examples/picker/auxiallary_files/2024-25_Premier_League.pkl
RENAMED
|
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
|