span-table 0.1.0__tar.gz → 0.3.0__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.
- {span_table-0.1.0 → span_table-0.3.0}/PKG-INFO +1 -1
- {span_table-0.1.0 → span_table-0.3.0}/pyproject.toml +1 -1
- span_table-0.3.0/src/span_table/__init__.py +3 -0
- {span_table-0.1.0 → span_table-0.3.0}/src/span_table/cell.py +2 -2
- {span_table-0.1.0 → span_table-0.3.0}/src/span_table/span.py +2 -2
- {span_table-0.1.0 → span_table-0.3.0}/src/span_table/table.py +4 -4
- {span_table-0.1.0 → span_table-0.3.0}/uv.lock +1 -1
- span_table-0.1.0/main.py +0 -6
- span_table-0.1.0/src/span_table/__init__.py +0 -3
- {span_table-0.1.0 → span_table-0.3.0}/.gitignore +0 -0
- {span_table-0.1.0 → span_table-0.3.0}/.python-version +0 -0
- {span_table-0.1.0 → span_table-0.3.0}/LICENSE +0 -0
- {span_table-0.1.0 → span_table-0.3.0}/README.md +0 -0
- {span_table-0.1.0 → span_table-0.3.0}/src/span_table/markup_text.py +0 -0
- {span_table-0.1.0 → span_table-0.3.0}/src/span_table/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: span-table
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: span-table is a lightweight Python helper for rendering ASCII tables with merged cells using Rich-style markup.
|
|
5
5
|
Project-URL: Repository, https://github.com/soamicharan/span-table
|
|
6
6
|
Project-URL: Homepage, https://github.com/soamicharan/span-table
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from
|
|
1
|
+
from span_table.span import (
|
|
2
2
|
get_span_column_count,
|
|
3
3
|
get_span_row_count,
|
|
4
4
|
get_span_char_height,
|
|
@@ -7,7 +7,7 @@ from src.span_table.span import (
|
|
|
7
7
|
from typing import Literal
|
|
8
8
|
from dataclasses import dataclass
|
|
9
9
|
from rich.box import Box
|
|
10
|
-
from
|
|
10
|
+
from span_table.types import SpanType, TableType
|
|
11
11
|
|
|
12
12
|
@dataclass
|
|
13
13
|
class Cell:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from rich.text import Text
|
|
2
|
-
from
|
|
3
|
-
from
|
|
2
|
+
from span_table.types import TableType, SpanType
|
|
3
|
+
from span_table.markup_text import MarkupText
|
|
4
4
|
|
|
5
5
|
def check_span(data: TableType, span: SpanType):
|
|
6
6
|
if not len(span) == 2 or not len(span[0]) == 2 or not len(span[1]) == 2:
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
from rich import box as rich_box
|
|
2
2
|
from rich.text import Text
|
|
3
3
|
|
|
4
|
-
from
|
|
4
|
+
from span_table.span import (
|
|
5
5
|
extend_span,
|
|
6
6
|
check_span,
|
|
7
7
|
convert_cells_to_spans,
|
|
8
8
|
get_output_column_widths,
|
|
9
9
|
get_output_row_heights,
|
|
10
10
|
)
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
11
|
+
from span_table.cell import make_cell, merge_all_cells
|
|
12
|
+
from span_table.markup_text import MarkupText
|
|
13
|
+
from span_table.types import SpanType, TableType
|
|
14
14
|
from typing import Annotated
|
|
15
15
|
|
|
16
16
|
TableMarkupType = Annotated[list[list[MarkupText]], 'Lists of list of markup type objects']
|
span_table-0.1.0/main.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|