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.
- diamondprint-1.0.1/LICENSE +3 -0
- diamondprint-1.0.1/MANIFEST.in +2 -0
- diamondprint-1.0.1/PKG-INFO +13 -0
- diamondprint-1.0.1/README.md +2 -0
- diamondprint-1.0.1/diamondprint/__init__.py +5 -0
- diamondprint-1.0.1/diamondprint/ascii.py +10 -0
- diamondprint-1.0.1/diamondprint/blocks.py +5 -0
- diamondprint-1.0.1/diamondprint/pro.py +25 -0
- diamondprint-1.0.1/diamondprint/screensaver.py +7 -0
- diamondprint-1.0.1/diamondprint/textfx.py +41 -0
- diamondprint-1.0.1/diamondprint.egg-info/PKG-INFO +13 -0
- diamondprint-1.0.1/diamondprint.egg-info/SOURCES.txt +19 -0
- diamondprint-1.0.1/diamondprint.egg-info/dependency_links.txt +1 -0
- diamondprint-1.0.1/diamondprint.egg-info/top_level.txt +1 -0
- diamondprint-1.0.1/pyproject.toml +12 -0
- diamondprint-1.0.1/setup.cfg +19 -0
- diamondprint-1.0.1/tests/test_ascii.py +1 -0
- diamondprint-1.0.1/tests/test_blocks.py +1 -0
- diamondprint-1.0.1/tests/test_pro.py +1 -0
- diamondprint-1.0.1/tests/test_textfx.py +1 -0
|
@@ -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,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,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
|
+
|
|
@@ -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
|