forked from Pymmdrza/cryptoFuzz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import os | ||
import sys | ||
import subprocess | ||
import platform | ||
from colorthon import Colors | ||
|
||
red = Colors.RED | ||
green = Colors.GREEN | ||
yellow = Colors.YELLOW | ||
reset = Colors.RESET | ||
|
||
|
||
def subInstall(package_name: str): | ||
if "win" in platform.platform().lower(): | ||
subprocess.check_call([sys.executable, "-m", "pip", "install", package_name]) | ||
elif "linux" in platform.platform().lower(): | ||
subprocess.check_call([sys.executable, "-m", "pip3", "install", package_name]) | ||
elif "mac" in platform.platform().lower(): | ||
subprocess.check_call([sys.executable, "-m", "pip3", "install", package_name]) | ||
else: | ||
raise ValueError("Unsupported OS") | ||
|
||
|
||
def install_deps(): | ||
deps = ["ecdsa", "setuptools", "wheel", "hdwallet"] | ||
for dep in deps: | ||
print(f" {green}Installing{reset}:{yellow} {dep}{reset}") | ||
subInstall(dep) | ||
|
||
def colorthon(): | ||
if "win" in platform.platform().lower(): | ||
print(f"{red}Installing{reset}:{yellow} Colorthon{reset}") | ||
subprocess.run(['pip', 'install', 'colorthon'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) | ||
print(f"{green}Successfully installed{reset}: Colorthon") | ||
|
||
elif "linux" in platform.platform().lower(): | ||
print(f"{red}Installing{reset}:{yellow} Colorthon{reset}") | ||
subprocess.run(['pip3', 'install', 'colorthon'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) | ||
print(f"{green}Successfully installed{reset}: Colorthon") | ||
|
||
elif "mac" in platform.platform().lower(): | ||
print(f"{red}Installing{reset}:{yellow} Colorthon{reset}") | ||
subprocess.run(['pip3', 'install', 'colorthon'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) | ||
print(f"{green}Successfully installed{reset}: Colorthon") | ||
|
||
|
||
|
||
def main(): | ||
colorthon() | ||
install_deps() | ||
print(f"{red}CryptoFuzz{reset} {green}With dependencies have been installed!{reset}") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |