Package: dankware
~ Visits ~~ Stats ~🚨 dankware 🚨Python module with various features! Install with the below command!pip install dankwareUpdate to the latest version with the below command!pip install --upgrade dankware🚨 Multithreading 🚨fromdankwareimportmultithreadimporttimea=0defexample():globalaa+=1print(a)time.sleep(5)multithread(example,10)# func: example | threads: 10 | single: 50 seconds | multi: 5 secondsfromdankwareimportmultithreadimporttimenew_list=[1,2,3,4,5]sum=0defexample(num):globalsumsum+=numtime.sleep(5)multithread(example,10,new_list)# input_one: listprint(sum)fromdankwareimportmultithreadimporttimelist1=[1,2,3,4,5]list2=[5,4,3,2,1]defexample(num1,num2):print(num1+num2)time.sleep(5)multithread(example,10,list1,list2)# input_one: list1 | input_two: list2fromdankwareimportmultithreadimporttimenew_list=[1,2,3,4,5]defexample(num1,num2):print(num1*num2)time.sleep(5)multithread(example,10,new_list,5,progress_bar=False)# input_two: 5 | disabled progress bar🚨 Export Registry Keys 🚨importosfromdankwareimportexport_registry_keys,is_admin# [NOTE]: this function requires admin privileges!export_path="D:\\export.reg"registry_root=r'HKEY_CURRENT_USER'registry_path=r'Software\Google\Chrome\PreferenceMACs'#export_path = os.path.join(os.environ['USERPROFILE'], 'Desktop', 'export.reg')export_registry_keys(registry_root,registry_path,recursive=True,export_path=export_path)🚨 Splash Screen 🚨fromdankwareimportsplash_screen,hide_window,show_window# Supports: GIFs / PNGs / JPGs / BMPs / ICOs# hide_window()splash_screen("D:\\splash.gif",duration=5)# runs on main thread# show_window()fromdankwareimportsplash_screenfromconcurrent.futuresimportThreadPoolExecutorThreadPoolExecutor(1).submit(splash_screen,"splash.png",5)# runs on separate thread🚨 Error Traceback 🚨importsysfromdankwareimporterr,clrtry:value=1/0except:print(clr(err(sys.exc_info()),2))try:value=1/0except:print(clr(err(sys.exc_info(),"mini"),2))🚨 Scraping 🚨fromdankwareimportgithub_downloads# full url > https://api.github.com/repos/EssentialsX/Essentials/releases/latestforurlingithub_downloads("EssentialsX/Essentials"):print(url)fromdankwareimportgithub_file_selector# full url > https://api.github.com/repos/EssentialsX/Essentials/releases/latestforurlingithub_file_selector("EssentialsX/Essentials","remove",('AntiBuild','Discord','GeoIP','Protect','XMPP')):print(url)🚨 Generate Random IPs 🚨fromdankwareimportrandom_ipprint(random_ip())🚨 GUI File / Path Selector 🚨fromdankwareimportfile_selectorpath=file_selector()# opens file explorer to select a fileprint(path)fromdankwareimportfolder_selectorpath=folder_selector()# opens file explorer to select a folderprint(path)🚨 Path Extractor 🚨fromdankwareimportget_pathforlocationin["AppData","Desktop","Documents","Personal","Favorites","Local AppData","Pictures","My Pictures","Videos","My Video","Music","My Music"]:path=get_path(location)# extracts path from registryprint(path)🚨 Colour Special Characters 🚨fromdankwareimportclr# default preset = 1# default colour_one = white_bright# default colour_two = red_brightprint(clr("\n> Hey! Long time no see :)"))#print(clr("\n  > Hey! Long time no see :)", colour_one = white_bright, colour_two = red_bright))fromdankwareimportclr,white,magenta# default preset = 1# colour_one = magenta# colour_two = whiteprint(clr("\n> Hey! Long time no see :)",colour_one=magenta,colour_two=white))fromdankwareimportclrprint(clr("\nThis is a string: True | This is an integer: False"))fromdankwareimportclr,green,magenta,white# default colour_one = white_bright# colour_two = greenprint(clr(f"\n>{magenta}Purple{white}thinks he's better than everyone else :(",colour_two=green))fromdankwareimportclr# preset = 2print(clr("\n> Error in sector [7] redirecting... | INTEGRITY_CHECK: SUCCESS",2))fromdankwareimportclr# preset = 3print(clr("\n> Is this a randomly coloured string: TRUE | As you can see it does not colour True/False",3))fromdankwareimportclr,white,white_normal,white_dim,red,red_normal,red_dim# preset = 3print(clr("\n> This is a randomly coloured string based on the input colours!",3,colours=(white_bright,white_normal,white_dim,red_bright,red_normal,red_dim)))🚨 Banners 🚨banner='''888                   888888                   888           s i r . d a n k ' s888                   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  Y8b888  888 .d888888 888  888 888888K  888  888  888 .d888888 888    88888888Y88b 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) ♦️fromdankwareimportclr# preset = 4print(clr(banner,4))♦️ Align Banner (console center) ♦️fromdankwareimportalignprint(align(banner))# also works with single text line (even coloured)♦️ Align Coloured Banner ♦️fromdankwareimportalign,clrprint(clr(align(banner),4))# OR (preferably not) print(align(clr(banner,4)))🚨 Gradient Reworked [ Originally By @venaxyt ] 🚨fromdankwareimportfadebanner='''888 d8b                   888v e n a x y t ' s      888 Y8P                   888888                       888.d88b.  888d888 8888b.   .d88888 888  .d88b.  88888b.  888888d88P"88b 888P"      "88b d88" 888 888 d8P  Y8b 888 "88b 888888  888 888    .d888888 888  888 888 88888888 888  888 888Y88b 888 888    888  888 Y88b 888 888 Y8b.     888  888 Y88b."Y88888 888    "Y888888  "Y88888 888  "Y8888  888  888  "Y888888Y8b d88P"Y88P"'''♦️ Black To White ♦️print(fade(banner,"black2white"))print(fade(banner,"black2white-v"))♦️ Yellow To Red ♦️print(fade(banner,"yellow2red"))print(fade(banner,"yellow2red-v"))♦️ Green To Yellow ♦️print(fade(banner,"green2yellow"))print(fade(banner,"green2yellow-v"))♦️ Green To Cyan ♦️print(fade(banner,"green2cyan"))print(fade(banner,"green2cyan-v"))♦️ Blue To Cyan ♦️print(fade(banner,"blue2cyan"))print(fade(banner,"blue2cyan-v"))♦️ Blue To Pink ♦️print(fade(banner,"blue2pink"))print(fade(banner,"blue2pink-v"))♦️ Pink To Red ♦️print(fade(banner,"pink2red"))print(fade(banner,"pink2red-v"))♦️ Random ♦️print(fade(banner,"random"))🚨 Also check out 🚨🚨 Wallpapers 🚨♦️ Style 1 ♦️♦️ Style 2 ♦️♦️ Style 3 ♦️♦️ Style 4 ♦️🚨 Stats 🚨🚨 Star History 🚨