diamondprint 1.0.1__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.
@@ -0,0 +1,5 @@
1
+ from .textfx import *
2
+ from .pro import *
3
+ from .ascii import *
4
+ from .blocks import *
5
+ from .screensaver import *
diamondprint/ascii.py ADDED
@@ -0,0 +1,10 @@
1
+ def ascii_box(text):
2
+ width=len(text)+4
3
+ print("+"+"-"*(width-2)+"+")
4
+ print("| "+text+" |")
5
+ print("+"+"-"*(width-2)+"+")
6
+
7
+ def ascii_banner(text):
8
+ print("#"*(len(text)+6))
9
+ print("## "+text+" ##")
10
+ print("#"*(len(text)+6))
diamondprint/blocks.py ADDED
@@ -0,0 +1,5 @@
1
+ def chain(*effects):
2
+ def runner(text):
3
+ for fx in effects:
4
+ fx(text)
5
+ return runner
diamondprint/pro.py ADDED
@@ -0,0 +1,25 @@
1
+ import sys, time, random
2
+
3
+ def sparkle(text):
4
+ for ch in text:
5
+ sys.stdout.write(ch + random.choice(["*", "+", ".", ""]))
6
+ sys.stdout.flush(); time.sleep(0.01)
7
+ print()
8
+
9
+ def fire(text):
10
+ for i in range(3):
11
+ print("\033[91m" + text + "\033[0m")
12
+ time.sleep(0.05)
13
+ print("\033[93m" + text + "\033[0m")
14
+ time.sleep(0.05)
15
+
16
+ def matrix(text, lines=20):
17
+ import random
18
+ for _ in range(lines):
19
+ print("".join(random.choice("01") for _ in range(len(text))))
20
+ time.sleep(0.03)
21
+
22
+ def waterfall(text, lines=15):
23
+ for i in range(lines):
24
+ print(text[:i])
25
+ time.sleep(0.03)
@@ -0,0 +1,7 @@
1
+ import time, random
2
+
3
+ def screensaver(text="DIAMONDPRINT", cycles=50):
4
+ for _ in range(cycles):
5
+ indent=" " * random.randint(0, 40)
6
+ print(indent + text)
7
+ time.sleep(0.05)
diamondprint/textfx.py ADDED
@@ -0,0 +1,41 @@
1
+ import sys, time, random
2
+
3
+ COLORS = [
4
+ "\033[91m","\033[93m","\033[92m",
5
+ "\033[96m","\033[94m","\033[95m"
6
+ ]
7
+ RESET = "\033[0m"
8
+
9
+ def rainbow(text):
10
+ print("".join(COLORS[i % len(COLORS)] + ch for i, ch in enumerate(text)) + RESET)
11
+
12
+ def typewrite(text, delay=0.03):
13
+ for ch in text:
14
+ sys.stdout.write(ch); sys.stdout.flush(); time.sleep(delay)
15
+ print()
16
+
17
+ def backwards(text): print(text[::-1])
18
+ def spaced(text): print(" ".join(text))
19
+
20
+ def glitch(text):
21
+ print("".join(random.choice("@#$%&!?") if random.random()<0.15 else ch for ch in text))
22
+
23
+ def wave(text):
24
+ for i in range(12):
25
+ print(" " * abs((i % 6) - 3) + text)
26
+ time.sleep(0.05)
27
+
28
+ def rainbow_type(text, delay=0.03):
29
+ for i, ch in enumerate(text):
30
+ sys.stdout.write(COLORS[i % len(COLORS)] + ch + RESET)
31
+ sys.stdout.flush(); time.sleep(delay)
32
+ print()
33
+
34
+ def chaotic(text):
35
+ out=[]
36
+ for ch in text:
37
+ color=random.choice(COLORS)
38
+ if random.random()<0.1: ch=random.choice("@#$%&!?")
39
+ if random.random()<0.2: ch+=" "
40
+ out.append(color+ch+RESET)
41
+ print("".join(out))
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.4
2
+ Name: diamondprint
3
+ Version: 1.0.1
4
+ Summary: Advanced terminal print effects: rainbow, typewriter, glitch, ASCII art, animations, and more.
5
+ Author: Graham
6
+ License: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Dynamic: license-file
11
+
12
+ # DiamondPrint
13
+ A full terminal FX engine: rainbow, glitch, typewriter, ASCII art, animations, waveforms, sparkle, fire, matrix rain, waterfalls, and more.
@@ -0,0 +1,11 @@
1
+ diamondprint/__init__.py,sha256=GMVofvgrU9UxdEJWyJO-SejrdcS7q1_eNfFjJhLgng0,116
2
+ diamondprint/ascii.py,sha256=vscJyKJDUITVl2U4o7x4HpUx5rQ09FYn10AJtc8u5T4,256
3
+ diamondprint/blocks.py,sha256=0OdFKIh9y-MT_tBVin9Pjmx9Jp4H2iJEGrTSbe7pcY4,114
4
+ diamondprint/pro.py,sha256=oEepHh9BO6cJM_uoXjXhvCg-emxZ7kypKH95q5C_tHQ,670
5
+ diamondprint/screensaver.py,sha256=mbh-_kFN2EUrzw7XizIRe1Eoc1tbjTEuqKED0nDLQvM,202
6
+ diamondprint/textfx.py,sha256=VV1Om5xiG_wY7X1eKtPzU1zEFqAquzfDTuImn2tUpoY,1153
7
+ diamondprint-1.0.1.dist-info/licenses/LICENSE,sha256=I6tFBbFKtaRY5i-_5Pg9-nue0lI4ZM5dZmwX-iyiGrc,33
8
+ diamondprint-1.0.1.dist-info/METADATA,sha256=nCk_bEyyhkvCo3Qad7XmBHdMz52EK8FQ67P2xC0I2V8,465
9
+ diamondprint-1.0.1.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
10
+ diamondprint-1.0.1.dist-info/top_level.txt,sha256=v5lza8Z7aD85G36uvAPy4y92YouptmEVpPD7yF033nc,13
11
+ diamondprint-1.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (83.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ MIT License
2
+
3
+ Created by Graham.
@@ -0,0 +1 @@
1
+ diamondprint