Skip to content

Commit f8bfd87

Browse files
committed
Renamed Styles to PresetStyle and dynamic list generator
1 parent 31a1c04 commit f8bfd87

File tree

8 files changed

+406
-393
lines changed

8 files changed

+406
-393
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Module for converting 2D Python lists to a fancy ASCII/Unicode tables
1010
- [table2ascii](#table2ascii)
1111
- [📥 Installation](#-installation)
1212
- [🧑‍💻 Usage](#-usage)
13-
- [🎨 Styles](#-styles)
13+
- [🎨 Preset styles](#-preset-styles)
1414
- [⚙️ Options](#️-options)
1515
- [👨‍🎨 Use cases](#-use-cases)
1616
- [Discord messages and embeds](#discord-messages-and-embeds)
@@ -92,13 +92,13 @@ print(output)
9292
```
9393

9494
```py
95-
from table2ascii import table2ascii, Styles
95+
from table2ascii import table2ascii, PresetStyle
9696

9797
output = table2ascii(
9898
header=["First", "Second", "Third", "Fourth"],
9999
body=[["10", "30", "40", "35"], ["20", "10", "20", "5"]],
100100
column_widths=[10] * 4,
101-
style=Styles.ascii_box
101+
style=PresetStyle.ascii_box
102102
)
103103

104104
print(output)
@@ -114,7 +114,7 @@ print(output)
114114
"""
115115
```
116116

117-
## 🎨 Styles
117+
## 🎨 Preset styles
118118

119119
See a list of all preset styles [here](/style_list).
120120

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def run(self):
5959

6060
setup(
6161
name="table2ascii",
62-
version="0.1.0",
62+
version="0.1.1",
6363
author="Jonah Lawrence",
6464
author_email="jonah@freshidea.com",
6565
description="Convert 2D Python lists into Unicode/Ascii tables",

0 commit comments

Comments
 (0)