Python module with various features.
Project description
dankware
Python module with various features!
Multithreading
from dankware import multithread
import time
a = 0
def example():
global a
a += 1
print(a)
time.sleep(5)
multithread(example, 10)
Banners
banner = '''
888 888
888 888 s i r . d a n k ' s
888 888
.d88888 8888b. 88888b. 888 888 888 888 888 8888b. 888d888 .d88b.
d88" 888 "88b 888 "88b 888 .88P 888 888 888 "88b 888P" d8P Y8b
888 888 .d888888 888 888 888888K 888 888 888 .d888888 888 88888888
Y88b 888 888 888 888 888 888 "88b Y88b 888 d88P 888 888 888 Y8b.
"Y88888 "Y888888 888 888 888 888 "Y8888888P" "Y888888 888 "Y8888
'''
Colourize Banner (random)
from dankware import clr_banner
print(clr_banner(banner))
Align Banner (console center)
from dankware import align_banner
print(align_banner(banner))
Align Coloured Banner
from dankware import align_banner, clr_banner
print(align_banner(banner, clr_banner(banner)))
Gradient Reworked [ Originally By @venaxyt ]
from dankware import fade
banner = '''
888 d8b 888
v e n a x y t ' s 888 Y8P 888
888 888
.d88b. 888d888 8888b. .d88888 888 .d88b. 88888b. 888888
d88P"88b 888P" "88b d88" 888 888 d8P Y8b 888 "88b 888
888 888 888 .d888888 888 888 888 88888888 888 888 888
Y88b 888 888 888 888 Y88b 888 888 Y8b. 888 888 Y88b.
"Y88888 888 "Y888888 "Y88888 888 "Y8888 888 888 "Y888
888
Y8b d88P
"Y88P"
'''
Black
print(fade(banner, "black"))
print(fade(banner, "black", "V"))
Red
print(fade(banner, "red"))
print(fade(banner, "red", "V"))
Green
print(fade(banner, "green"))
print(fade(banner, "green", "V"))
Cyan
from dankware import fade
print(fade(banner, "cyan"))
print(fade(banner, "cyan", "V"))
Blue
print(fade(banner, "blue"))
print(fade(banner, "blue", "V"))
Purple
print(fade(banner, "purple"))
print(fade(banner, "purple", "V"))
Pink
print(fade(banner, "pink", "V"))
Random
print(fade(banner, "random", "V"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dankware-1.5.tar.gz
(6.3 kB
view hashes)
Built Distribution
dankware-1.5-py3-none-any.whl
(5.9 kB
view hashes)