Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing 'lightcyan' command to the 'init.py' and added test code (preview & help) #41

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion huepy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .huepy import *

__all__ = ['bad', 'bg', 'black', 'blue', 'bold', 'cyan', 'good', 'green',
'grey', 'info', 'italic', 'lblue', 'lightblue', 'lcyan', 'lgreen',
'grey', 'info', 'italic', 'lblue', 'lightblue', 'lcyan', 'lightcyan', 'lgreen',
'lightgreen', 'lpurple', 'lightpurple', 'lred', 'lightred','orange',
'purple', 'que', 'red', 'run','strike', 'under', 'white', 'yellow']

Expand Down
49 changes: 49 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/usr/bin/python3

from huepy import *

def Preview():
print("")
print(bold(" AVAILABLE COLORS ")+bold(" AVAILABLE STYLES ")+bold(" AVAILABLE MODES"))
print("")
print(white(" ████████████████████ ")+bold(" Bold Text ")+info(under("Info")+ " Sign!"))
print(grey(" ████████████████████ ")+" "+bg("BackGround")+" "+que(under("Que")+ " Sign!"))
print(black(" ████████████████████ ")+" "+under("Under Line")+" "+run(under("Run")+ " Sign!"))
print(green(" ████████████████████ ")+" "+strike("Strike Through")+" "+bad(under("Bad")+ " Sign!"))
print(lightgreen(" ████████████████████ ")+italic(" Italic Text ")+good(under("Good")+ " Sign!"))
print(cyan(" ████████████████████ ")+bold(under("Bold Underline")))
print(lightcyan(" ████████████████████ ")+bold(strike("Bold Strike")))
print(red(" ████████████████████ ")+bold(italic("Bold Italic")))
print(blue(" ████████████████████"))
print(lightblue(" ████████████████████"))
print(purple(" ████████████████████"))
print(lightpurple(" ████████████████████"))
print(orange(" ████████████████████"))
print(yellow(" ████████████████████"))


def Help():
Preview()
print("""
Colors : white, grey, black, green, lightgreen, lgreen, cyan, lightcyan, lcyan
red, blue, lightblue, lblue, purple, lightpurple, lpurple, orange, yellow

print(red("This is Red Colored Text"))

print(lightcyan("This is Red Colored Text"))
or
print(lcyan("This is Red Colored Text"))

Styles : bold, bg, under, strike, italic

print(bold("Some Text"))
print(bold(italic("Some more Text")))

Modes : info, que, run, bad, good

print(bad("An error occured!"))
""")


if __name__ == "__main__":
Help()