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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: span-table
3
- Version: 0.1.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,6 +1,6 @@
1
1
  [project]
2
2
  name = "span-table"
3
- version = "0.1.0"
3
+ version = "0.3.0"
4
4
  description = "span-table is a lightweight Python helper for rendering ASCII tables with merged cells using Rich-style markup."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
@@ -0,0 +1,3 @@
1
+ from span_table.table import span_table
2
+
3
+ __all__ = ["span_table"]
@@ -1,4 +1,4 @@
1
- from src.span_table.span import (
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 src.span_table.types import SpanType, TableType
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 src.span_table.types import TableType, SpanType
3
- from src.span_table.markup_text import MarkupText
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 src.span_table.span import (
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 src.span_table.cell import make_cell, merge_all_cells
12
- from src.span_table.markup_text import MarkupText
13
- from src.span_table.types import SpanType, TableType
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']
@@ -70,7 +70,7 @@ wheels = [
70
70
 
71
71
  [[package]]
72
72
  name = "span-table"
73
- version = "0.1.0"
73
+ version = "0.2.0"
74
74
  source = { editable = "." }
75
75
  dependencies = [
76
76
  { name = "rich" },
span_table-0.1.0/main.py DELETED
@@ -1,6 +0,0 @@
1
- def main():
2
- print("Hello from span-table!")
3
-
4
-
5
- if __name__ == "__main__":
6
- main()
@@ -1,3 +0,0 @@
1
- from table import span_table
2
-
3
- __all__ = ["span_table"]
File without changes
File without changes
File without changes
File without changes