You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-1Lines changed: 40 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,11 @@ Module for converting 2D Python lists to a fancy ASCII/Unicode tables
10
10
-[table2ascii](#table2ascii)
11
11
-[📥 Installation](#-installation)
12
12
-[🧑💻 Usage](#-usage)
13
+
-[Convert lists to ASCII tables](#convert-lists-to-ascii-tables)
14
+
-[Set first or last column headings](#set-first-or-last-column-headings)
15
+
-[Set column widths and alignments](#set-column-widths-and-alignments)
16
+
-[Use a preset style](#use-a-preset-style)
17
+
-[Define a custom style](#define-a-custom-style)
13
18
-[🎨 Preset styles](#-preset-styles)
14
19
-[⚙️ Options](#️-options)
15
20
-[👨🎨 Use cases](#-use-cases)
@@ -25,7 +30,7 @@ Module for converting 2D Python lists to a fancy ASCII/Unicode tables
25
30
26
31
## 🧑💻 Usage
27
32
28
-
Convert Python lists to ASCII tables
33
+
### Convert lists to ASCII tables
29
34
30
35
```py
31
36
from table2ascii import table2ascii
@@ -50,6 +55,8 @@ print(output)
50
55
"""
51
56
```
52
57
58
+
### Set first or last column headings
59
+
53
60
```py
54
61
from table2ascii import table2ascii
55
62
@@ -68,6 +75,8 @@ print(output)
68
75
"""
69
76
```
70
77
78
+
### Set column widths and alignments
79
+
71
80
```py
72
81
from table2ascii import table2ascii, Alignment
73
82
@@ -91,6 +100,8 @@ print(output)
91
100
"""
92
101
```
93
102
103
+
### Use a preset style
104
+
94
105
```py
95
106
from table2ascii import table2ascii, PresetStyle
96
107
@@ -114,6 +125,34 @@ print(output)
114
125
"""
115
126
```
116
127
128
+
### Define a custom style
129
+
130
+
Check [`TableStyle`](https://github.com/DenverCoder1/table2ascii/blob/main/table2ascii/table_style.py) for more info and [`PresetStyle`](https://github.com/DenverCoder1/table2ascii/blob/main/table2ascii/preset_style.py) for examples.
0 commit comments