diamondprint 1.0.1__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.
@@ -0,0 +1,3 @@
1
+ MIT License
2
+
3
+ Created by Graham.
@@ -0,0 +1,2 @@
1
+ include README.md
2
+ include LICENSE
@@ -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,2 @@
1
+ # DiamondPrint
2
+ A full terminal FX engine: rainbow, glitch, typewriter, ASCII art, animations, waveforms, sparkle, fire, matrix rain, waterfalls, and more.
@@ -0,0 +1,5 @@
1
+ from .textfx import *
2
+ from .pro import *
3
+ from .ascii import *
4
+ from .blocks import *
5
+ from .screensaver import *
@@ -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))
@@ -0,0 +1,5 @@
1
+ def chain(*effects):
2
+ def runner(text):
3
+ for fx in effects:
4
+ fx(text)
5
+ return runner
@@ -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)
@@ -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,19 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.cfg
6
+ diamondprint/__init__.py
7
+ diamondprint/ascii.py
8
+ diamondprint/blocks.py
9
+ diamondprint/pro.py
10
+ diamondprint/screensaver.py
11
+ diamondprint/textfx.py
12
+ diamondprint.egg-info/PKG-INFO
13
+ diamondprint.egg-info/SOURCES.txt
14
+ diamondprint.egg-info/dependency_links.txt
15
+ diamondprint.egg-info/top_level.txt
16
+ tests/test_ascii.py
17
+ tests/test_blocks.py
18
+ tests/test_pro.py
19
+ tests/test_textfx.py
@@ -0,0 +1 @@
1
+ diamondprint
@@ -0,0 +1,12 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "diamondprint"
7
+ version = "1.0.1"
8
+ description = "Advanced terminal print effects: rainbow, typewriter, glitch, ASCII art, animations, and more."
9
+ authors = [{ name = "Graham" }]
10
+ readme = "README.md"
11
+ requires-python = ">=3.10"
12
+ license = { text = "MIT" }
@@ -0,0 +1,19 @@
1
+ [metadata]
2
+ name = diamondprint
3
+ version = 1.0.0
4
+ description = Advanced terminal print effects.
5
+ long_description = file: README.md
6
+ long_description_content_type = text/markdown
7
+ license = MIT
8
+
9
+ [options]
10
+ packages = find:
11
+ python_requires = >=3.10
12
+
13
+ [options.packages.find]
14
+ where = .
15
+
16
+ [egg_info]
17
+ tag_build =
18
+ tag_date = 0
19
+
@@ -0,0 +1 @@
1
+ def test_ascii(): assert True
@@ -0,0 +1 @@
1
+ def test_blocks(): assert True
@@ -0,0 +1 @@
1
+ def test_pro(): assert True
@@ -0,0 +1 @@
1
+ def test_textfx(): assert True