flexablelib 2.0.8__tar.gz → 2.0.9__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.
- {flexablelib-2.0.8 → flexablelib-2.0.9}/CHANGELOG.md +7 -0
- {flexablelib-2.0.8/flexablelib.egg-info → flexablelib-2.0.9}/PKG-INFO +2 -2
- {flexablelib-2.0.8 → flexablelib-2.0.9}/README.md +1 -1
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/style_compositions.py +22 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9/flexablelib.egg-info}/PKG-INFO +2 -2
- {flexablelib-2.0.8 → flexablelib-2.0.9}/package.json +1 -1
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_styles.py +28 -3
- {flexablelib-2.0.8 → flexablelib-2.0.9}/LICENSE +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/MANIFEST.in +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/__init__.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/_speedups.c +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/_width_tables.h +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/cells.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/colors.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/columns.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/fast.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/merges.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/options.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/readers.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/table.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/table_strings.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/text_width.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/utils.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib/writers.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib.egg-info/SOURCES.txt +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib.egg-info/dependency_links.txt +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib.egg-info/requires.txt +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/flexablelib.egg-info/top_level.txt +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/setup.cfg +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/setup.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_cells.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_columns.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_excel.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_features.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_issues.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_merge_edge_matrix.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_merges.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_readme_examples.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_text_width.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_two_pass_measurement.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tests/test_upstream_issues.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tools/benchmark.py +0 -0
- {flexablelib-2.0.8 → flexablelib-2.0.9}/tools/generate_width_tables.py +0 -0
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.0.9] - 2026-10-28
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- New ``blocks`` style: background-colour cells only — no outer/inner borders
|
|
9
|
+
and no junctions. Column gaps are a single space spacer; cell margin kept so
|
|
10
|
+
ANSI / Excel fills read as solid blocks.
|
|
11
|
+
|
|
5
12
|
## [2.0.8] - 2026-10-28
|
|
6
13
|
|
|
7
14
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flexablelib
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.9
|
|
4
4
|
Summary: Flexible console and HTML tables for Python
|
|
5
5
|
Home-page: https://github.com/Opus-Perpetuus/flexablelib
|
|
6
6
|
Download-URL:
|
|
@@ -355,7 +355,7 @@ flexablelib/ # GitHub repository
|
|
|
355
355
|
├── docs/ issue history and design notes
|
|
356
356
|
├── logos/ brand assets — see logos/README.md
|
|
357
357
|
├── ARCHITECTURE.md how it all fits together
|
|
358
|
-
├── style_examples.md all
|
|
358
|
+
├── style_examples.md all 43 styles rendered
|
|
359
359
|
├── package.json canonical version number; drives the release
|
|
360
360
|
└── setup.py reads the version from package.json
|
|
361
361
|
```
|
|
@@ -306,7 +306,7 @@ flexablelib/ # GitHub repository
|
|
|
306
306
|
├── docs/ issue history and design notes
|
|
307
307
|
├── logos/ brand assets — see logos/README.md
|
|
308
308
|
├── ARCHITECTURE.md how it all fits together
|
|
309
|
-
├── style_examples.md all
|
|
309
|
+
├── style_examples.md all 43 styles rendered
|
|
310
310
|
├── package.json canonical version number; drives the release
|
|
311
311
|
└── setup.py reads the version from package.json
|
|
312
312
|
```
|
|
@@ -130,6 +130,9 @@ Compositions = namedtuple(
|
|
|
130
130
|
|
|
131
131
|
# Other
|
|
132
132
|
'dashes',
|
|
133
|
+
|
|
134
|
+
# Fill-only (background colours, no border glyphs)
|
|
135
|
+
'blocks',
|
|
133
136
|
]
|
|
134
137
|
)
|
|
135
138
|
|
|
@@ -868,5 +871,24 @@ __style_compositions = Compositions(
|
|
|
868
871
|
lines_with_indicator=[],
|
|
869
872
|
align_indicator_margin=0,
|
|
870
873
|
always_center_indicator=False
|
|
874
|
+
),
|
|
875
|
+
# Background-colour blocks only: no outer/inner border glyphs, no junctions.
|
|
876
|
+
# Columns are separated by a single space (invisible spacer), not a rule.
|
|
877
|
+
blocks=TableComposition(
|
|
878
|
+
superior_header_line=None,
|
|
879
|
+
inferior_header_line=None,
|
|
880
|
+
superior_header_line_no_header=None,
|
|
881
|
+
table_body_line=None,
|
|
882
|
+
table_end_line=None,
|
|
883
|
+
vertical_header_lines=SeparatorLine(None, INVISIBLE_SEPARATOR, None, None),
|
|
884
|
+
vertical_table_body_lines=SeparatorLine(None, INVISIBLE_SEPARATOR, None, None),
|
|
885
|
+
margin=CELL_MARGIN,
|
|
886
|
+
align_sensitive=False,
|
|
887
|
+
align_indicator=None,
|
|
888
|
+
centered_indicator_on_sides=False,
|
|
889
|
+
left_and_right_when_centered=False,
|
|
890
|
+
lines_with_indicator=[],
|
|
891
|
+
align_indicator_margin=0,
|
|
892
|
+
always_center_indicator=False
|
|
871
893
|
)
|
|
872
894
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flexablelib
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.9
|
|
4
4
|
Summary: Flexible console and HTML tables for Python
|
|
5
5
|
Home-page: https://github.com/Opus-Perpetuus/flexablelib
|
|
6
6
|
Download-URL:
|
|
@@ -355,7 +355,7 @@ flexablelib/ # GitHub repository
|
|
|
355
355
|
├── docs/ issue history and design notes
|
|
356
356
|
├── logos/ brand assets — see logos/README.md
|
|
357
357
|
├── ARCHITECTURE.md how it all fits together
|
|
358
|
-
├── style_examples.md all
|
|
358
|
+
├── style_examples.md all 43 styles rendered
|
|
359
359
|
├── package.json canonical version number; drives the release
|
|
360
360
|
└── setup.py reads the version from package.json
|
|
361
361
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
The style catalogue (``style_compositions.py``).
|
|
3
3
|
|
|
4
|
-
Styles are data, not code:
|
|
4
|
+
Styles are data, not code: 43 ``TableComposition`` namedtuples. Nothing in the
|
|
5
5
|
package validates them, so a malformed entry only shows up when a table is
|
|
6
6
|
rendered with it. The smoke test below renders the same table in every style
|
|
7
7
|
and checks the data survived.
|
|
@@ -33,10 +33,10 @@ def build_table(style_name):
|
|
|
33
33
|
# The catalogue itself
|
|
34
34
|
# +-------------------------------------------------------------------------+
|
|
35
35
|
|
|
36
|
-
def
|
|
36
|
+
def test_the_catalogue_holds_43_styles():
|
|
37
37
|
# A canary: adding a style is meant to be purely additive, and the README,
|
|
38
38
|
# ARCHITECTURE.md and style_examples.md all quote this number.
|
|
39
|
-
assert len(ALL_STYLES) ==
|
|
39
|
+
assert len(ALL_STYLES) == 43
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
def test_style_names_are_unique():
|
|
@@ -187,3 +187,28 @@ def test_the_style_name_setter_works_from_any_directory(monkeypatch, tmp_path):
|
|
|
187
187
|
def test_style_examples_is_present_at_the_repository_root():
|
|
188
188
|
# Guards the fixture that makes the setter above usable in the suite.
|
|
189
189
|
assert os.path.isfile(os.path.join(REPO_ROOT, 'style_examples.md'))
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
def test_blocks_style_is_in_the_catalogue():
|
|
193
|
+
assert 'blocks' in ALL_STYLES
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def test_blocks_style_has_no_border_glyphs():
|
|
197
|
+
"""blocks is fill-only: no box-drawing / ascii rule characters."""
|
|
198
|
+
table = build_table('blocks')
|
|
199
|
+
rendered = str(table)
|
|
200
|
+
for glyph in '┌┐└┘├┤┬┴┼│─═╪╧╤╞╡╒╘╛║╔╗╚╝┊┄╍+|':
|
|
201
|
+
assert glyph not in rendered, (glyph, rendered)
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
def test_blocks_style_keeps_cell_padding_for_background_fills():
|
|
205
|
+
import os
|
|
206
|
+
os.environ['FORCE_COLOR'] = '1'
|
|
207
|
+
os.environ.pop('NO_COLOR', None)
|
|
208
|
+
table = build_table('blocks')
|
|
209
|
+
table.use_colors = True
|
|
210
|
+
table.header_color = 'bold white on blue'
|
|
211
|
+
table.column_colors = {'Name': 'black on green'}
|
|
212
|
+
rendered = str(table)
|
|
213
|
+
assert '\x1b[' in rendered or '\033[' in rendered or '[' in rendered
|
|
214
|
+
assert '42m' in rendered or '44m' in rendered # green or blue bg
|
|
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
|