dataframe-textual 3.2.0__tar.gz → 3.2.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.
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/PKG-INFO +1 -1
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/pyproject.toml +1 -1
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/data_frame_table.py +5 -13
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/uv.lock +1 -1
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/.gitignore +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/LICENSE +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/README.md +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/main.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/__init__.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/__main__.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/commands.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/common.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/console_panel.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/data_frame_viewer.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/file_picker_screen.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/help_panel.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/keybindings.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/loading_screen.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/run_command_screen.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/status_bar.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/table_screen.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/text_screen.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/theme_screen.py +0 -0
- {dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/yes_no_screen.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: dataframe-textual
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.1
|
|
4
4
|
Summary: Interactive terminal viewer/editor (TUI) for CSV/TSV, Excel, Parquet, JSONL, etc.
|
|
5
5
|
Project-URL: Homepage, https://github.com/need47/dataframe-textual
|
|
6
6
|
Project-URL: Repository, https://github.com/need47/dataframe-textual.git
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "dataframe-textual"
|
|
7
|
-
version = "3.2.
|
|
7
|
+
version = "3.2.1"
|
|
8
8
|
description = "Interactive terminal viewer/editor (TUI) for CSV/TSV, Excel, Parquet, JSONL, etc."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
{dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/data_frame_table.py
RENAMED
|
@@ -1370,7 +1370,7 @@ class DataFrameTable(DataTable):
|
|
|
1370
1370
|
- The column label width is always the floor (label is never clipped).
|
|
1371
1371
|
- Bar columns are fixed to BAR_COLUMN_WIDTH.
|
|
1372
1372
|
- User-overridden columns (positive width) are fixed to ``max(label, override)``.
|
|
1373
|
-
- URL-only string columns are
|
|
1373
|
+
- URL-only string columns are not capped.
|
|
1374
1374
|
- String columns whose sampled max exceeds COLUMN_WIDTH_CAP are capped at
|
|
1375
1375
|
``max(label_width, COLUMN_WIDTH_CAP)`` and queued for phase 2.
|
|
1376
1376
|
- All other columns (numeric, bool, temporal, short strings, expanded columns)
|
|
@@ -1430,17 +1430,6 @@ class DataFrameTable(DataTable):
|
|
|
1430
1430
|
|
|
1431
1431
|
try:
|
|
1432
1432
|
sample_values = sample_lf.select(col).collect().get_column(col).drop_nulls().to_list()
|
|
1433
|
-
|
|
1434
|
-
# URL columns: leave for Textual auto-sizing so links stay clickable
|
|
1435
|
-
if (
|
|
1436
|
-
is_string
|
|
1437
|
-
and sample_values
|
|
1438
|
-
and any(val.startswith(("https://", "http://")) for val in sample_values)
|
|
1439
|
-
):
|
|
1440
|
-
col_widths[col] = label_width
|
|
1441
|
-
col_ideal_widths[col] = label_width
|
|
1442
|
-
continue
|
|
1443
|
-
|
|
1444
1433
|
max_cell_width = max(
|
|
1445
1434
|
(
|
|
1446
1435
|
measure(self.app.console, str(val[:3]) if isinstance(val, list) else str(val), 1)
|
|
@@ -1454,8 +1443,11 @@ class DataFrameTable(DataTable):
|
|
|
1454
1443
|
|
|
1455
1444
|
ideal_width = max(label_width, max_cell_width)
|
|
1456
1445
|
col_ideal_widths[col] = ideal_width
|
|
1446
|
+
is_url = (
|
|
1447
|
+
is_string and sample_values and any(val.startswith(("https://", "http://")) for val in sample_values)
|
|
1448
|
+
)
|
|
1457
1449
|
|
|
1458
|
-
if is_string and not is_expanded and ideal_width > COLUMN_WIDTH_CAP:
|
|
1450
|
+
if is_string and not is_expanded and not is_url and ideal_width > COLUMN_WIDTH_CAP:
|
|
1459
1451
|
# Cap and queue for phase 2
|
|
1460
1452
|
col_widths[col] = max(label_width, COLUMN_WIDTH_CAP)
|
|
1461
1453
|
capped_cols.append(col)
|
|
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
|
{dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/data_frame_viewer.py
RENAMED
|
File without changes
|
{dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/file_picker_screen.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dataframe_textual-3.2.0 → dataframe_textual-3.2.1}/src/dataframe_textual/run_command_screen.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|