Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Update ui wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorixx committed Aug 6, 2024
1 parent d222e96 commit 000d513
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
numpy~=1.24.4
numpy-stl~=3.1.1
requests~=2.32.3
requests~=2.32.3
colorama~=0.4.6
art~=6.2
42 changes: 38 additions & 4 deletions skyline_wizard.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import argparse
from art import tprint
import colorama
from colorama import Back, Fore

from core import process_github_stats

Expand All @@ -24,17 +27,48 @@ def cli_mode(parsed):


def ui_mode():
print("Welcome to github-skyline generator By doctorixx \n")
print("Enter github username")
colorama.init()

print(Fore.BLUE)
tprint("github-skyline")
print(Fore.RESET)

print(Fore.BLACK + Back.MAGENTA, end="")
print("Welcome to github-skyline generator By doctorixx", end="")
print(Fore.RESET + Back.RESET, "\n")

print(Fore.BLACK + Back.WHITE, end="")
print("Enter github username", end="")
print(Fore.RESET + Back.RESET)
username = input("> ")
print("Enter year")
print()

print(Fore.BLACK + Back.WHITE, end="")
print("Enter year", end="")
print(Fore.RESET + Back.RESET)
year = input("> ")
print()

filename = f"{username}-{year}.stl"
print(Fore.YELLOW, end="")
print("[/] Generation started")
print(Fore.RESET, end="")
process_github_stats(username, year, filename)

print(Fore.GREEN, end="")
print("[+] Generation completed")
print(f"[+] Saved to file {filename}")
print(Fore.RESET, end="")

print(Fore.GREEN, end="")
print(f"[+] Saved to file ", end="")
print(Fore.LIGHTGREEN_EX + Back.RESET, end="")
print(filename, end="")
print(Fore.RESET + Back.RESET)

print(Fore.CYAN, end="")
print("Press enter to exit...")
print(Fore.RESET, end="")

input()


Expand Down

0 comments on commit 000d513

Please sign in to comment.