Skip to content

stephenxxxx/skunkworks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skunk Works

                         _..._ ___
                       .:::::::.  `"-._.-''.
                  ,   /:::::::::\     ':    \                     _._
                  \:-::::::::::::\     :.    |     /|.-'         /:::\ 
                   \::::::::\:::::|    ':     |   |  /           |:::|
                    `:::::::|:::::\     ':    |   `\ |    __     |\::/\ 
                       -:::-|::::::|    ':    |  .`\ .\_.'  `.__/      |
                            |::::::\    ':.   |   \ ';:: /.-._   ,    /
                            |:::::::|    :.   /   ,`\;:: \'./0)  |_.-/
                            ;:::::::|    ':  |    \.`;::.   ``   |  |
                             \::::::/    :'  /     _\::::'      /  /
                              \::::|   :'   /    ,=:;::/           |
                               \:::|   :'  |    (='` //        /   |
                                \::\   `:  /     '--' |       /\   |
  GITHUB.COM/SKUNK-INK           \:::.  `:_|.-"`"-.    \__.-'/::\  |
░▒█▀▀▀█░▒█░▄▀░▒█░▒█░▒█▄░▒█░▒█░▄▀  '::::.:::...:::. '.       /:::|  |
░░▀▀▀▄▄░▒█▀▄░░▒█░▒█░▒█▒█▒█░▒█▀▄░   '::/::::::::::::. '-.__.:::::|  |
░▒█▄▄▄█░▒█░▒█░░▀▄▄▀░▒█░░▀█░▒█░▒█     |::::::::::::\::..../::::::| /
                                     |:::::::::::::|::::/::::::://
  ░▒█░░▒█░▒█▀▀▀█░▒█▀▀▄░▒█░▄▀░▒█▀▀▀█  \:::::::::::::|'::/::::::::/
  ░▒█▒█▒█░▒█░░▒█░▒█▄▄▀░▒█▀▄░░░▀▀▀▄▄  /\::::::::::::/  /:::::::/:|
  ░▒▀▄▀▄▀░▒█▄▄▄█░▒█░▒█░▒█░▒█░▒█▄▄▄█ |::';:::::::::/   |::::::/::;
                    CODE REPOSITORY |:::/`-:::::;;-._ |:::::/::/
                                    |:::|  `-::::\   `|::::/::/
                                    |:::|     \:::\   \:::/::/
                                   /:::/       \:::\   \:/\:/
                                  (_::/         \:::;__ \\_\\___
                                  (_:/           \::):):)\:::):):)
                                   `"             `""""`  `""""""`   

The Repository

Python

Install the skunkworks-repo package using PIP:

pip install skunkworks-repo

Handshake Wrapper

Source Code: api.py

For more information on using the Handshake API, visit the Handshake API Docs

# Import
from handshake import api
# Use default ip and port

hsd = api.hsd('api-key')
hsw = api.hsw('api-key')
# Or specify

hsd = api.hsd('api-key', '0.0.0.0', 14037)
hsw = api.hsw('api-key', '0.0.0.0', 14039)
# Then use

response = hsd.getInfo()
print(response)

response = hsw.resetAuthToken('primary', 'secret123')
print(response)


Skunkworks UI

Source Code: cli.py | style.py

# Import

from skunkworks_ui.cli import Menu
from skunkworks_ui.style import *
# Use the `style` module to stylize text
# ex. font(text, color, background, style)

styledText = font('Skunkworks UI', 'green', 'white', 'bold')
print(styledText)
# Use the `cli` module to construct a comman-line menu
# ex. Menu(title, options)

menu_title = 'Skunkworks UI'

menu_options = {
                '1': 'Bold blue text',
                '2': 'Red text, white Background',
                'Q': 'Quit'
                }

menu = Menu(menu_title, menu_options)
menu.display()
user_input = menu.get_input()
# Use the `cli` and `style` modules to create menu themes

menu_title = green_font(title('Skunkworks UI'))

menu_options = { 
                cyan_font('1'): 'Bold blue text',
                cyan_font('2'): 'Red text, white Background',
                cyan_font('Q'): 'Quit'
              }

menu = Menu(menu_title, menu_options)
menu.display()
user_input = menu.get_input(prompt('Select an option : '))
# Then add menu logic

if user_input.lower() == '1':
    print(font('Bold blue text', 'blue', bold=True))
elif user_input.lower() == '2':
    print(font('Red text, white Background', 'red', 'white'))
elif user_input.lower() == 'q':
    menu.quit()

About

The Skunk Works Code Repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%