-
Notifications
You must be signed in to change notification settings - Fork 0
/
CommandDefinition.py
108 lines (95 loc) · 5.65 KB
/
CommandDefinition.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import MegaStorage
import Functions
def menuDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tMenu shows available commands and functions for manipulating and displaying different aspects of data.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: menu\n")
def newsDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tNews brings you the latest news by searching web.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: news\n")
def extractDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tExtract gets data from web and saves it which is then used by the program to display appropriate results.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: extract\n")
def companyDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tCompany shows details about a particular company.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: company")
print("\t\tStock Analyzer> Company: upper\n")
def comparedef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tCompare allows user to compare between different aspects of any two companies of any sector.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: compare")
print("\t\tStock Analyzer> Company Symbol [1]: upper")
print("\t\tStock Analyzer> Company Symbol [2]: radhi\n")
def sortDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tSort displays data of selected sector with respect to the selected factor in a particular order.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: sort")
print("\t\tStock Analyzer> Factor: price \\ eps \\ pe \\ share \\ dividend \\ cash \\ bonus \\ growth")
print("\t\tStock Analyzer> Sector: Others \\ Finance \\ Trading \\ Hydropower \\ Investment \\ Mutual Fund \\ Microfinance \\")
print("\t\t\t\t\tLife Insurance \\ Commercial Bank \\ Hotel and Tourism \\ Development Bank \\")
print("\t\t\t\t\tNon-Life Insurance \\ Manufacturing and Products \\ All\n")
def rangeDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tRange selects company within the given range of selected factor and sector.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: range")
print("\t\tStock Analyzer> Sector: Others \\ Finance \\ Trading \\ Hydropower \\ Investment \\ Mutual Fund \\ Microfinance \\")
print("\t\t\t\t\tLife Insurance \\ Commercial Bank \\ Hotel and Tourism \\ Development Bank \\")
print("\t\t\t\t\tNon-Life Insurance \\ Manufacturing and Products \\ All")
print("\t\tStock Analyzer> Factor: price \\ eps \\ pe \\ share \\ dividend \\ cash \\ bonus \\ growth")
print("\t\tStock Analyzer> Factor> Enter lower limit [Factor]: @")
print("\t\tStock Analyzer> Factor> Enter upper limit [Factor]: @\n")
def reportDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tReport generates share report based on candle stick pattern and predicts future outcome.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: report \\ report sector \\ report bullish \\ report bearish\n")
def technicalDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tTechnical generates technical report regarding various technical aspects of mentioned stock.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: technical")
print("\t\tStock Analyzer> Company: @\n")
def dividendDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tDividend shows stocks that have declared or proposed cash or/and share dividend.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: dividend\n")
def summaryDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tSummary gives an overview of the market considering volume and price of stocks.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: summary\n")
def resetDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tReset deletes all the existing files and then creates brand new files (not recommended).")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: reset")
print("\t\tReset Files (Y/N) :\t@\n")
def exitDef():
Functions.lineMaker("-", "\n\t", 116, "\n")
print(f"{MegaStorage.bold}\t\tDescription:{MegaStorage.normal}")
print("\t\tExit terminates all ongoing program processes and then closes the program.")
print(f"{MegaStorage.bold}\n\t\tFormat:{MegaStorage.normal}")
print("\t\tStock Analyzer: exit\n")