loopstring 0.2.1__py3-none-any.whl → 0.3.0__py3-none-any.whl
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.
- loopstring/__init__.py +2 -2
- loopstring/loopstring.py +36 -2
- {loopstring-0.2.1.dist-info → loopstring-0.3.0.dist-info}/METADATA +1 -1
- loopstring-0.3.0.dist-info/RECORD +6 -0
- loopstring-0.2.1.dist-info/RECORD +0 -6
- {loopstring-0.2.1.dist-info → loopstring-0.3.0.dist-info}/WHEEL +0 -0
- {loopstring-0.2.1.dist-info → loopstring-0.3.0.dist-info}/top_level.txt +0 -0
loopstring/__init__.py
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
from .loopstring import FG, BG, FORMAT, BOXES, SYMBOLS, DIVIDERS, MULTI_INPUT_MATRICES, MATRICES, WRITEDOWN
|
|
1
|
+
from .loopstring import FG, BG, FORMAT, BOXES, SYMBOLS, TITLES, DIVIDERS, MULTI_INPUT_MATRICES, MATRICES, WRITEDOWN
|
|
2
2
|
|
|
3
|
-
__all__ = ['FG', 'BG', 'FORMAT', 'BOXES', 'SYMBOLS', 'DIVIDERS', 'MULTI_INPUT_MATRICES', 'MATRICES', 'WRITEDOWN']
|
|
3
|
+
__all__ = ['FG', 'BG', 'FORMAT', 'BOXES', 'SYMBOLS', 'TITLES', 'DIVIDERS', 'MULTI_INPUT_MATRICES', 'MATRICES', 'WRITEDOWN']
|
loopstring/loopstring.py
CHANGED
|
@@ -121,7 +121,7 @@ class SYMBOLS:
|
|
|
121
121
|
|
|
122
122
|
SCALES = '⚖'
|
|
123
123
|
|
|
124
|
-
class
|
|
124
|
+
class TITLES:
|
|
125
125
|
@staticmethod
|
|
126
126
|
def draw_divider(text, style="box"):
|
|
127
127
|
if style == "box":
|
|
@@ -144,7 +144,41 @@ class DIVIDERS:
|
|
|
144
144
|
return(f"◂ {text} ▸")
|
|
145
145
|
elif style == "science":
|
|
146
146
|
return(f"⚗⚛ {text} ⚛⚗")
|
|
147
|
+
elif style == "line":
|
|
148
|
+
return(f"── {text} ──")
|
|
147
149
|
|
|
150
|
+
class DIVIDERS:
|
|
151
|
+
@staticmethod
|
|
152
|
+
def draw_divider(length, style="box"):
|
|
153
|
+
if style == "stripes":
|
|
154
|
+
return("▌" * length)
|
|
155
|
+
elif style == "server":
|
|
156
|
+
return("╽╿" * length)
|
|
157
|
+
elif style == "pixel":
|
|
158
|
+
return("▀▄" * length)
|
|
159
|
+
elif style == "shade":
|
|
160
|
+
return(("░▒▓█") + ("█" * length) + ("█▓▒░"))
|
|
161
|
+
elif style == "angle_bracket":
|
|
162
|
+
return("❭" * length)
|
|
163
|
+
elif style == "grass":
|
|
164
|
+
return("v" * length)
|
|
165
|
+
elif style == "full_block":
|
|
166
|
+
return("█" * length)
|
|
167
|
+
elif style == "dotted_line":
|
|
168
|
+
return("⁞" * length)
|
|
169
|
+
elif style == "square_wave":
|
|
170
|
+
return("⎍" * length)
|
|
171
|
+
elif style == "light_shade":
|
|
172
|
+
return("░" * length)
|
|
173
|
+
elif style == "medium_shade":
|
|
174
|
+
return("▒" * length)
|
|
175
|
+
elif style == "dark_shade":
|
|
176
|
+
return("▓" * length)
|
|
177
|
+
elif style == "line":
|
|
178
|
+
return("─" * length)
|
|
179
|
+
elif style == "cloud":
|
|
180
|
+
return("C" + ("⁐" * length) + "Ↄ")
|
|
181
|
+
|
|
148
182
|
class MULTI_INPUT_MATRICES:
|
|
149
183
|
@staticmethod
|
|
150
184
|
def draw_matrix(text1, text2, text3, matrixType="square"):
|
|
@@ -226,7 +260,7 @@ class WRITEDOWN:
|
|
|
226
260
|
elif processed_line.startswith("## "):
|
|
227
261
|
processed_line = "\033[36m" + "\033[1m" + "▷ " + processed_line[3:]
|
|
228
262
|
elif processed_line.startswith("### "):
|
|
229
|
-
processed_line = "\033[
|
|
263
|
+
processed_line = "\033[36m" + "‣ " + processed_line[4:]
|
|
230
264
|
# 3. Parse * Bullet points -> Green Bullet Indent
|
|
231
265
|
elif processed_line.startswith("* "):
|
|
232
266
|
processed_line = " " + "\033[32m" + "• " + "\033[37m" + processed_line[2:]
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
loopstring/__init__.py,sha256=lYEc9EUytLj2KNIzEtotp2raUpmy4EMxl8EXySy0clc,241
|
|
2
|
+
loopstring/loopstring.py,sha256=K8KZWaMspabRXYqjjBleT0KuicOgpUzPybLJbZIdtlw,13299
|
|
3
|
+
loopstring-0.3.0.dist-info/METADATA,sha256=4Wj8cV_ZiOpgL92elfJ8PB1Nq7gaydz0-rMIDKBFt1U,1493
|
|
4
|
+
loopstring-0.3.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
5
|
+
loopstring-0.3.0.dist-info/top_level.txt,sha256=2ydcZBVjxIoTy9e7zFiQFH3LMMAGVBh6iPbdCfKdtqo,11
|
|
6
|
+
loopstring-0.3.0.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
loopstring/__init__.py,sha256=_4rPW6rXN9uDUaL8EYIvrW74V5NsswNlWCb53MZlafk,223
|
|
2
|
-
loopstring/loopstring.py,sha256=Jd2Zsxy5NVEr7os-dlsNDqVh28zWjk_5ZSIfFTRNdQQ,12122
|
|
3
|
-
loopstring-0.2.1.dist-info/METADATA,sha256=KMVYCIiQ5GBBcEyZHR3nbyI1Ug32o7r1EaW8zkgjxVU,1493
|
|
4
|
-
loopstring-0.2.1.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
5
|
-
loopstring-0.2.1.dist-info/top_level.txt,sha256=2ydcZBVjxIoTy9e7zFiQFH3LMMAGVBh6iPbdCfKdtqo,11
|
|
6
|
-
loopstring-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|