#!/usr/bin/env python # coding: utf-8 # ## A walkthrough some of Cryptoguard.py options # # ### This provides several of the most common documenting commands for cryptoguard.py # --- # The script was created to be able to run offline (manually saves information in the script itself), however it is running online since it's in the github repo folder. # In[1]: import sys; version = str(sys.version[0]) print('Python Version: ' + version) if version == '2': print('This script requires python3') sys.exit(0) #Only run this once import os;os.chdir('../') # In[2]: import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patch import cryptoguard as cg # In[3]: ####Cryptoguard Version cg.Utils.printVersion() # In[4]: ####Checking the Environment###### cg.envVars.checkVariables() # In[5]: ####Displaying Raw Arguments###### ##cmd: ./cryptoguard.py rawArgs cg.argsUtils.readRawArgs() # In[6]: ####Displaying Different Example Arguments###### ##cmd: ./cryptoguard.py exampleArgs cg.argsUtils.helpfulArgs() # In[7]: ####General Help###### ##cmd: ./cryptoguard.py cg.Utils.help(exit=False) # In[8]: ####Displaying Different Test Types###### ##cmd: ./cryptoguard.py testsHelp cg.TestUtils.helptests() # In[9]: ####Displaying Different Project Types###### ##cmd: ./cryptoguard.py projectType cg.argsUtils.displayProjectTypes() # In[10]: ####Displaying Different Output Types##### ##cmd: ./cryptoguard.py outputType cg.argsUtils.displayOutputTypes() # In[11]: ####Displaying Different Exception Types###### ##cmd: ./cryptoguard.py exceptionType cg.argsUtils.displayExceptionTypes() # In[12]: ####Displaying test Types###### ##cmd: ./cryptoguard.py displayTests cg.TestUtils.getDisplayTests(exit=False) # In[13]: ####General Help###### ##cmd: ./cryptoguard.py buildCmd cg.argsUtils.basicBuildCommand()