cli-helpers 2.14.0__tar.gz → 2.15.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.
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/CHANGELOG +12 -0
- {cli_helpers-2.14.0/cli_helpers.egg-info → cli_helpers-2.15.1}/PKG-INFO +1 -1
- cli_helpers-2.15.1/cli_helpers/__init__.py +1 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/tabulate_adapter.py +12 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/vertical_table_adapter.py +3 -1
- {cli_helpers-2.14.0 → cli_helpers-2.15.1/cli_helpers.egg-info}/PKG-INFO +1 -1
- cli_helpers-2.14.0/cli_helpers/__init__.py +0 -1
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/.github/workflows/codeql.yml +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/.gitignore +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/.travis/install.sh +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/.travis.yml +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/AUTHORS +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/CONTRIBUTING.rst +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/LICENSE +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/MANIFEST.in +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/README.rst +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/appveyor.yml +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/compat.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/config.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/__init__.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/delimited_output_adapter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/json_output_adapter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/output_formatter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/preprocessors.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/tsv_output_adapter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/utils.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers.egg-info/SOURCES.txt +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers.egg-info/dependency_links.txt +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers.egg-info/requires.txt +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers.egg-info/top_level.txt +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/docs/Makefile +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/docs/source/api.rst +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/docs/source/authors.rst +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/docs/source/changelog.rst +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/docs/source/conf.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/docs/source/contributing.rst +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/docs/source/index.rst +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/docs/source/license.rst +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/docs/source/quickstart.rst +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/release.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/requirements-dev.txt +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/setup.cfg +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/setup.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tasks.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/__init__.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/compat.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/config_data/configrc +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/config_data/configspecrc +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/config_data/invalid_configrc +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/config_data/invalid_configspecrc +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/__init__.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/test_delimited_output_adapter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/test_json_output_adapter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/test_output_formatter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/test_preprocessors.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/test_tabulate_adapter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/test_tsv_output_adapter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/test_vertical_table_adapter.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/test_cli_helpers.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/test_config.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/test_utils.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/utils.py +0 -0
- {cli_helpers-2.14.0 → cli_helpers-2.15.1}/tox.ini +0 -0
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Version 2.15.1
|
|
4
|
+
|
|
5
|
+
(released on 2026-07-25)
|
|
6
|
+
|
|
7
|
+
- Better handle empty headers in vertical table output.
|
|
8
|
+
|
|
9
|
+
## Version 2.15.0
|
|
10
|
+
|
|
11
|
+
(released on 2026-05-16)
|
|
12
|
+
|
|
13
|
+
- Add `mysql_heavy` table format.
|
|
14
|
+
|
|
3
15
|
## Version 2.14.0
|
|
4
16
|
|
|
5
17
|
(released on 2026-04-13)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.15.1"
|
|
@@ -92,6 +92,17 @@ tabulate._table_formats["mysql_unicode"] = tabulate.TableFormat(
|
|
|
92
92
|
with_header_hide=None,
|
|
93
93
|
)
|
|
94
94
|
|
|
95
|
+
tabulate._table_formats["mysql_heavy"] = tabulate.TableFormat(
|
|
96
|
+
lineabove=tabulate.Line("┏", "━", "┳", "┓"),
|
|
97
|
+
linebelowheader=tabulate.Line("┣", "━", "╋", "┫"),
|
|
98
|
+
linebetweenrows=None,
|
|
99
|
+
linebelow=tabulate.Line("┗", "━", "┻", "┛"),
|
|
100
|
+
headerrow=tabulate.DataRow("┃", "┃", "┃"),
|
|
101
|
+
datarow=tabulate.DataRow("┃", "┃", "┃"),
|
|
102
|
+
padding=1,
|
|
103
|
+
with_header_hide=None,
|
|
104
|
+
)
|
|
105
|
+
|
|
95
106
|
# "minimal" is the same as "plain", but without headers
|
|
96
107
|
tabulate._table_formats["minimal"] = tabulate._table_formats["plain"]
|
|
97
108
|
|
|
@@ -128,6 +139,7 @@ supported_table_formats = (
|
|
|
128
139
|
"double",
|
|
129
140
|
"mysql",
|
|
130
141
|
"mysql_unicode",
|
|
142
|
+
"mysql_heavy",
|
|
131
143
|
)
|
|
132
144
|
|
|
133
145
|
supported_formats = supported_markup_formats + supported_table_formats
|
{cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/vertical_table_adapter.py
RENAMED
|
@@ -52,7 +52,9 @@ def vertical_table(
|
|
|
52
52
|
:rtype: str
|
|
53
53
|
|
|
54
54
|
"""
|
|
55
|
-
|
|
55
|
+
if data and not headers:
|
|
56
|
+
headers = [" " * len(x) for x in data[0]]
|
|
57
|
+
header_len = max(len(x) for x in headers or [""])
|
|
56
58
|
padded_headers = [x.ljust(header_len) for x in headers]
|
|
57
59
|
formatted_rows = [_format_row(padded_headers, row) for row in data]
|
|
58
60
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.14.0"
|
|
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
|
{cli_helpers-2.14.0 → cli_helpers-2.15.1}/cli_helpers/tabular_output/delimited_output_adapter.py
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
|
{cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/test_delimited_output_adapter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cli_helpers-2.14.0 → cli_helpers-2.15.1}/tests/tabular_output/test_vertical_table_adapter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|