foo-py 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. agents.py +10690 -0
  2. app.py +16234 -0
  3. boogr/__init__.py +563 -0
  4. boogr/default_icon.ico +0 -0
  5. boogr/enums.py +381 -0
  6. boogr/minion.py +175 -0
  7. boogr/resources/ico/BooIcon.ico +0 -0
  8. boogr/resources/ico/Booger.ico +0 -0
  9. boogr/resources/ico/Save.ico +0 -0
  10. boogr/resources/ico/adobe.ico +0 -0
  11. boogr/resources/ico/atk.ico +0 -0
  12. boogr/resources/ico/b.ico +0 -0
  13. boogr/resources/ico/batch.ico +0 -0
  14. boogr/resources/ico/black_sigma.ico +0 -0
  15. boogr/resources/ico/boo.ico +0 -0
  16. boogr/resources/ico/boogr.ico +0 -0
  17. boogr/resources/ico/browse.ico +0 -0
  18. boogr/resources/ico/chart.ico +0 -0
  19. boogr/resources/ico/copy.ico +0 -0
  20. boogr/resources/ico/csv.ico +0 -0
  21. boogr/resources/ico/dataedit.ico +0 -0
  22. boogr/resources/ico/doc.ico +0 -0
  23. boogr/resources/ico/e_logo.ico +0 -0
  24. boogr/resources/ico/error.ico +0 -0
  25. boogr/resources/ico/euler_circle.ico +0 -0
  26. boogr/resources/ico/excel.ico +0 -0
  27. boogr/resources/ico/file_browse.ico +0 -0
  28. boogr/resources/ico/filter.ico +0 -0
  29. boogr/resources/ico/folder_browse.ico +0 -0
  30. boogr/resources/ico/info.ico +0 -0
  31. boogr/resources/ico/input.ico +0 -0
  32. boogr/resources/ico/koolaid.ico +0 -0
  33. boogr/resources/ico/machinelearning.ico +0 -0
  34. boogr/resources/ico/message.ico +0 -0
  35. boogr/resources/ico/pdf.ico +0 -0
  36. boogr/resources/ico/pi.ico +0 -0
  37. boogr/resources/ico/setting.ico +0 -0
  38. boogr/resources/ico/sword_ninja.ico +0 -0
  39. boogr/resources/ico/textfile.ico +0 -0
  40. boogr/resources/ico/webcam.ico +0 -0
  41. boogr/resources/img/atk.png +0 -0
  42. boogr/resources/img/boogr.png +0 -0
  43. boogr/resources/img/button/Authority.png +0 -0
  44. boogr/resources/img/button/BOC.png +0 -0
  45. boogr/resources/img/button/DERA.png +0 -0
  46. boogr/resources/img/button/DWH.png +0 -0
  47. boogr/resources/img/button/EMD.png +0 -0
  48. boogr/resources/img/button/OAR.png +0 -0
  49. boogr/resources/img/button/OECA.png +0 -0
  50. boogr/resources/img/button/OGC.png +0 -0
  51. boogr/resources/img/button/OMS.png +0 -0
  52. boogr/resources/img/button/ORD.png +0 -0
  53. boogr/resources/img/button/OW.png +0 -0
  54. boogr/resources/img/button/RCRA.png +0 -0
  55. boogr/resources/img/button/TSCA.png +0 -0
  56. boogr/resources/img/button/WIFIA.png +0 -0
  57. boogr/resources/img/button/access.png +0 -0
  58. boogr/resources/img/button/add.png +0 -0
  59. boogr/resources/img/button/adobe.png +0 -0
  60. boogr/resources/img/button/airline.png +0 -0
  61. boogr/resources/img/button/analytics.png +0 -0
  62. boogr/resources/img/button/appropriation.png +0 -0
  63. boogr/resources/img/button/atk.ico +0 -0
  64. boogr/resources/img/button/atk.png +0 -0
  65. boogr/resources/img/button/attachment.png +0 -0
  66. boogr/resources/img/button/bfy.png +0 -0
  67. boogr/resources/img/button/bluetooth.png +0 -0
  68. boogr/resources/img/button/browse.png +0 -0
  69. boogr/resources/img/button/budget.png +0 -0
  70. boogr/resources/img/button/calculator.png +0 -0
  71. boogr/resources/img/button/calendar.png +0 -0
  72. boogr/resources/img/button/cancel.png +0 -0
  73. boogr/resources/img/button/categoricalgrants.png +0 -0
  74. boogr/resources/img/button/chart.png +0 -0
  75. boogr/resources/img/button/chrome.png +0 -0
  76. boogr/resources/img/button/close.png +0 -0
  77. boogr/resources/img/button/columndelete.png +0 -0
  78. boogr/resources/img/button/columnedit.png +0 -0
  79. boogr/resources/img/button/columninsert.png +0 -0
  80. boogr/resources/img/button/commandline.png +0 -0
  81. boogr/resources/img/button/commute.png +0 -0
  82. boogr/resources/img/button/compass.png +0 -0
  83. boogr/resources/img/button/contracts.png +0 -0
  84. boogr/resources/img/button/controlpanel.png +0 -0
  85. boogr/resources/img/button/csv.png +0 -0
  86. boogr/resources/img/button/database.png +0 -0
  87. boogr/resources/img/button/databaseadd.png +0 -0
  88. boogr/resources/img/button/databasedelete.png +0 -0
  89. boogr/resources/img/button/databaserefresh.png +0 -0
  90. boogr/resources/img/button/databasesql.png +0 -0
  91. boogr/resources/img/button/databaseverify.png +0 -0
  92. boogr/resources/img/button/datagrid.png +0 -0
  93. boogr/resources/img/button/delete.png +0 -0
  94. boogr/resources/img/button/division.png +0 -0
  95. boogr/resources/img/button/document.png +0 -0
  96. boogr/resources/img/button/documentadd.png +0 -0
  97. boogr/resources/img/button/documentation.png +0 -0
  98. boogr/resources/img/button/documentdelete.png +0 -0
  99. boogr/resources/img/button/documentedit.png +0 -0
  100. boogr/resources/img/button/documenterror.png +0 -0
  101. boogr/resources/img/button/documentsearch.png +0 -0
  102. boogr/resources/img/button/edge.png +0 -0
  103. boogr/resources/img/button/edit.png +0 -0
  104. boogr/resources/img/button/efy.png +0 -0
  105. boogr/resources/img/button/environment.png +0 -0
  106. boogr/resources/img/button/ev.png +0 -0
  107. boogr/resources/img/button/excel.png +0 -0
  108. boogr/resources/img/button/expenses.png +0 -0
  109. boogr/resources/img/button/export.png +0 -0
  110. boogr/resources/img/button/file.png +0 -0
  111. boogr/resources/img/button/file_word.png +0 -0
  112. boogr/resources/img/button/fileadd.png +0 -0
  113. boogr/resources/img/button/filebrowse.png +0 -0
  114. boogr/resources/img/button/filecopy.png +0 -0
  115. boogr/resources/img/button/filedelete.png +0 -0
  116. boogr/resources/img/button/fileedit.png +0 -0
  117. boogr/resources/img/button/filereader.png +0 -0
  118. boogr/resources/img/button/filesearch.png +0 -0
  119. boogr/resources/img/button/filetransfer.png +0 -0
  120. boogr/resources/img/button/fileverify.png +0 -0
  121. boogr/resources/img/button/filewriter.png +0 -0
  122. boogr/resources/img/button/filter.png +0 -0
  123. boogr/resources/img/button/first.png +0 -0
  124. boogr/resources/img/button/folder.png +0 -0
  125. boogr/resources/img/button/folderbrowse.png +0 -0
  126. boogr/resources/img/button/foldercompress.png +0 -0
  127. boogr/resources/img/button/foldercopy.png +0 -0
  128. boogr/resources/img/button/folderdownload.png +0 -0
  129. boogr/resources/img/button/folderopen.png +0 -0
  130. boogr/resources/img/button/fte.png +0 -0
  131. boogr/resources/img/button/function.png +0 -0
  132. boogr/resources/img/button/gmail.png +0 -0
  133. boogr/resources/img/button/go.png +0 -0
  134. boogr/resources/img/button/google.png +0 -0
  135. boogr/resources/img/button/grants.png +0 -0
  136. boogr/resources/img/button/guidance.png +0 -0
  137. boogr/resources/img/button/home.png +0 -0
  138. boogr/resources/img/button/id.png +0 -0
  139. boogr/resources/img/button/image.png +0 -0
  140. boogr/resources/img/button/import.png +0 -0
  141. boogr/resources/img/button/information.png +0 -0
  142. boogr/resources/img/button/internet.png +0 -0
  143. boogr/resources/img/button/justice.png +0 -0
  144. boogr/resources/img/button/last.png +0 -0
  145. boogr/resources/img/button/ledger.png +0 -0
  146. boogr/resources/img/button/left.png +0 -0
  147. boogr/resources/img/button/levels.png +0 -0
  148. boogr/resources/img/button/logout.png +0 -0
  149. boogr/resources/img/button/lust.png +0 -0
  150. boogr/resources/img/button/menu.png +0 -0
  151. boogr/resources/img/button/metrics.png +0 -0
  152. boogr/resources/img/button/mpg.png +0 -0
  153. boogr/resources/img/button/next.png +0 -0
  154. boogr/resources/img/button/no.png +0 -0
  155. boogr/resources/img/button/oil.png +0 -0
  156. boogr/resources/img/button/ok.png +0 -0
  157. boogr/resources/img/button/omb.png +0 -0
  158. boogr/resources/img/button/onenote.png +0 -0
  159. boogr/resources/img/button/oust.png +0 -0
  160. boogr/resources/img/button/outlay.png +0 -0
  161. boogr/resources/img/button/outlook.png +0 -0
  162. boogr/resources/img/button/pause.png +0 -0
  163. boogr/resources/img/button/payroll.png +0 -0
  164. boogr/resources/img/button/pdf.png +0 -0
  165. boogr/resources/img/button/percentage.png +0 -0
  166. boogr/resources/img/button/play.png +0 -0
  167. boogr/resources/img/button/plusminus.png +0 -0
  168. boogr/resources/img/button/previous.png +0 -0
  169. boogr/resources/img/button/print.png +0 -0
  170. boogr/resources/img/button/recertification.png +0 -0
  171. boogr/resources/img/button/recycle.png +0 -0
  172. boogr/resources/img/button/redo.png +0 -0
  173. boogr/resources/img/button/refresh.png +0 -0
  174. boogr/resources/img/button/remove.png +0 -0
  175. boogr/resources/img/button/reserve.png +0 -0
  176. boogr/resources/img/button/right.png +0 -0
  177. boogr/resources/img/button/row.png +0 -0
  178. boogr/resources/img/button/rowcopy.png +0 -0
  179. boogr/resources/img/button/rowdelete.png +0 -0
  180. boogr/resources/img/button/rowedit.png +0 -0
  181. boogr/resources/img/button/rowinsert.png +0 -0
  182. boogr/resources/img/button/save.png +0 -0
  183. boogr/resources/img/button/scan.png +0 -0
  184. boogr/resources/img/button/sharepoint.png +0 -0
  185. boogr/resources/img/button/sigma.png +0 -0
  186. boogr/resources/img/button/site.png +0 -0
  187. boogr/resources/img/button/sitetravel.png +0 -0
  188. boogr/resources/img/button/sort.png +0 -0
  189. boogr/resources/img/button/spreadsheet.png +0 -0
  190. boogr/resources/img/button/statistics.png +0 -0
  191. boogr/resources/img/button/table.png +0 -0
  192. boogr/resources/img/button/tableadd.png +0 -0
  193. boogr/resources/img/button/tabledelete.png +0 -0
  194. boogr/resources/img/button/tablesettings.png +0 -0
  195. boogr/resources/img/button/text.png +0 -0
  196. boogr/resources/img/button/traffic.png +0 -0
  197. boogr/resources/img/button/travel.png +0 -0
  198. boogr/resources/img/button/undelete.png +0 -0
  199. boogr/resources/img/button/undo.png +0 -0
  200. boogr/resources/img/button/wcf.png +0 -0
  201. boogr/resources/img/button/windows.png +0 -0
  202. boogr/resources/img/button/word.png +0 -0
  203. boogr/resources/img/button/xml.png +0 -0
  204. boogr/resources/img/button/yes.png +0 -0
  205. boogr/resources/img/button/zipfile.png +0 -0
  206. boogr/resources/img/gooey.png +0 -0
  207. boogr/resources/img/web/google.png +0 -0
  208. config.py +1015 -0
  209. core.py +170 -0
  210. data.py +832 -0
  211. desktop.py +173 -0
  212. embedders.py +269 -0
  213. fetchers.py +25142 -0
  214. foo_assets/__init__.py +1 -0
  215. foo_assets/resources/images/favicon.ico +0 -0
  216. foo_assets/resources/images/foo-apikeys.png +0 -0
  217. foo_assets/resources/images/foo-architecture.png +0 -0
  218. foo_assets/resources/images/foo-workflows.png +0 -0
  219. foo_assets/resources/images/foo.ico +0 -0
  220. foo_assets/resources/images/foo.svg +60 -0
  221. foo_assets/resources/images/foo_logo.ico +0 -0
  222. foo_assets/resources/images/foo_logo.png +0 -0
  223. foo_assets/resources/images/foo_logo.svg +63 -0
  224. foo_assets/resources/images/foo_portfolio.png +0 -0
  225. foo_assets/resources/images/foo_project.png +0 -0
  226. foo_assets/resources/images/system_diagram.svg +46 -0
  227. foo_assets/resources/images/uml_class_diagram.svg +65 -0
  228. foo_assets/streamlit_config.toml +85 -0
  229. foo_cli.py +52 -0
  230. foo_py-0.1.1.dist-info/METADATA +596 -0
  231. foo_py-0.1.1.dist-info/RECORD +242 -0
  232. foo_py-0.1.1.dist-info/WHEEL +5 -0
  233. foo_py-0.1.1.dist-info/entry_points.txt +2 -0
  234. foo_py-0.1.1.dist-info/licenses/LICENSE.txt +21 -0
  235. foo_py-0.1.1.dist-info/top_level.txt +18 -0
  236. generators.py +3323 -0
  237. loaders.py +4570 -0
  238. models.py +344 -0
  239. processors.py +3216 -0
  240. scrapers.py +706 -0
  241. stores/vector.py +365 -0
  242. writers.py +268 -0
boogr/enums.py ADDED
@@ -0,0 +1,381 @@
1
+ '''
2
+ ******************************************************************************************
3
+ Assembly: Bobo
4
+ Filename: Static.py
5
+ Author: Terry D. Eppler
6
+ Created: 05-31-2022
7
+
8
+ Last Modified By: Terry D. Eppler
9
+ Last Modified On: 05-01-2025
10
+ ******************************************************************************************
11
+ <copyright file="enums.py" company="Terry D. Eppler">
12
+
13
+ Boo is a df analysis tool integrating various Generative AI, Text-Processing, and
14
+ Machine-Learning algorithms for federal analysts.
15
+ Copyright © 2022 Terry Eppler
16
+
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ of this software and associated documentation files (the “Software”),
19
+ to deal in the Software without restriction,
20
+ including without limitation the rights to use,
21
+ copy, modify, merge, publish, distribute, sublicense,
22
+ and/or sell copies of the Software,
23
+ and to permit persons to whom the Software is furnished to do so,
24
+ subject to the following conditions:
25
+
26
+ The above copyright notice and this permission notice shall be included in all
27
+ copies or substantial portions of the Software.
28
+
29
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
30
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
32
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
33
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
35
+ DEALINGS IN THE SOFTWARE.
36
+
37
+ You can contact me at: terryeppler@gmail.com or eppler.terry@epa.gov
38
+
39
+ </copyright>
40
+ <summary>
41
+ Static.py
42
+ </summary>
43
+ ******************************************************************************************
44
+ '''
45
+ from enum import Enum, auto
46
+
47
+
48
+ class EXT( Enum ):
49
+ '''
50
+
51
+ Enumeration of database file extensions
52
+
53
+ '''
54
+ DB = auto( )
55
+ ACCDB = auto( )
56
+ XLS = auto( )
57
+ XLSM = auto( )
58
+ XLSX = auto( )
59
+ MDF = auto( )
60
+ HTML = auto( )
61
+ HTM = auto( )
62
+ XHTML = auto( )
63
+ XML = auto( )
64
+ PNG = auto( )
65
+ JPEG = auto( )
66
+ SVG = auto( )
67
+ JSON = auto( )
68
+
69
+
70
+ class Provider( Enum ):
71
+ '''
72
+
73
+ Purpose:
74
+ Enumeration of target_values providers
75
+
76
+ '''
77
+ SQLite = 0
78
+ Access = 1
79
+ SqlServer = 2
80
+ Excel = 3
81
+ CSV = 4
82
+
83
+
84
+ class ParamStyle( Enum ):
85
+ '''
86
+
87
+ Purpose:
88
+ Enumeration of parameter styles
89
+
90
+ '''
91
+ format = 1
92
+ number = 2
93
+ pyformat = 3
94
+ name = 4
95
+ qmark = 5
96
+
97
+
98
+ class SQL( Enum ):
99
+ '''
100
+
101
+ Purpose:
102
+ Enumeration of sqlstatement commands
103
+
104
+ '''
105
+ SELECT = 0
106
+ SELECTALL = 1
107
+ INSERT = 2
108
+ UPDATE = 3
109
+ DELETE = 4
110
+ DROPTABLE = 5
111
+ DROPVIEW = 6
112
+ CREATETABLE = 7
113
+ CREATEVIEW = 8
114
+ ALTERTABLE = 9
115
+ ALTERCOLUMN = 10
116
+
117
+
118
+ class Client( Enum ):
119
+ '''
120
+
121
+ Purpose:
122
+ Enumeration of auxiliary applications
123
+
124
+ '''
125
+ SQLite = auto( )
126
+ Access = auto( )
127
+ Excel = auto( )
128
+ Word = auto( )
129
+ Edge = auto( )
130
+ Chrome = auto( )
131
+ ControlPanel = auto( )
132
+ Calculator = auto( )
133
+ Outlook = auto( )
134
+ Pyscripter = auto( )
135
+ TaskManager = auto( )
136
+ Storage = auto( )
137
+
138
+
139
+ class ICO( Enum ):
140
+ '''
141
+
142
+ Purpose:
143
+ Enumeration of ICO files
144
+
145
+ '''
146
+ Access = auto( )
147
+ Browse = auto( )
148
+ CSV = auto( )
149
+ Database = auto( )
150
+ Error = auto( )
151
+ Excel = auto( )
152
+ Ninja = auto( )
153
+ Notification = auto( )
154
+ PDF = auto( )
155
+ Text = auto( )
156
+
157
+
158
+ class ACCDB( Enum ):
159
+ '''
160
+
161
+ Purpose:
162
+ Enumeration of access database types used in the application
163
+ Constructor: ACCDB.Member
164
+
165
+ '''
166
+ INTEGER = auto( )
167
+ NUMBER = auto( )
168
+ AUTONUMBER = auto( )
169
+ CURRENCY = auto( )
170
+ DATETIME = auto( )
171
+ HYPERLINK = auto( )
172
+ SHORTTEXT = auto( )
173
+ LONGTEXT = auto( )
174
+ RICHTEXT = auto( )
175
+ ATTACHMENT = auto( )
176
+ CALCULATED = auto( )
177
+
178
+
179
+ class DB( Enum ):
180
+ '''
181
+
182
+ Constructor: DB.Member
183
+
184
+ Purpose: Enumeration of SQLite database types used in the application
185
+
186
+ '''
187
+ REAL = auto( )
188
+ TEXT = auto( )
189
+ INTEGER = auto( )
190
+ BLOB = auto( )
191
+
192
+
193
+ class MDF( Enum ):
194
+ '''
195
+ Constructor: MDF.Member
196
+
197
+ Purpose: Enumeration of SQL Server database types used in the application
198
+ '''
199
+ BIT = auto( )
200
+ INT = auto( )
201
+ DECIMAL = auto( )
202
+ MONEY = auto( )
203
+ DATE = auto( )
204
+ TIME = auto( )
205
+ DATETIME = auto( )
206
+ FLOAT = auto( )
207
+ CHAR = auto( )
208
+ TEXT = auto( )
209
+ NCHAR = auto( )
210
+ NTEXT = auto( )
211
+ VARCHAR = auto( )
212
+ NVARCHAR = auto( )
213
+ BINARY = auto( )
214
+ VARBINARY = auto( )
215
+ IMAGE = auto( )
216
+ DATETIMEOFFSET = auto( )
217
+
218
+
219
+ class Holiday( Enum ):
220
+ '''
221
+ Constructor: Holiday.Member
222
+
223
+ Purpose: Enumeration representing federal holidays
224
+ New Year’s Day, January 1.
225
+ Martin Luther King, the third Monday in January.
226
+ Washington’s Birthday, the third Monday in February.
227
+ Memorial Day, the last Monday in May.
228
+ Juneteenth National Independence Day, June 19.
229
+ Independence Day, July 4.
230
+ Veterans Day, November 11.
231
+ Labor Day, the first Monday in September.
232
+ Columbus Day, the second Monday in October.
233
+ Thanksgiving Day, the fourth Thursday in November.
234
+ Christmas Day, December 25.
235
+ '''
236
+ NewYearsDay = auto( )
237
+ MartinLutherKingDay = auto( )
238
+ PresidentsDay = auto( )
239
+ MemorialDay = auto( )
240
+ JuneteenthDay = auto( )
241
+ IndependenceDay = auto( )
242
+ VeteransDay = auto( )
243
+ LaborDay = auto( )
244
+ ColumbusDay = auto( )
245
+ ThanksgivingDay = auto( )
246
+ ChristmasDay = auto( )
247
+
248
+
249
+ class Weekday( Enum ):
250
+ '''
251
+ Constructor:
252
+
253
+ Purpose:
254
+
255
+ '''
256
+ Monday = 1
257
+ Tuesday = 2
258
+ Wednesday = 3
259
+ Thursday = 4
260
+ Friday = 5
261
+ Saturday = 6
262
+ Sunday = 7
263
+
264
+
265
+ class Month( Enum ):
266
+ '''
267
+ Constructor:
268
+
269
+ Purpose:
270
+
271
+ '''
272
+ January = 1
273
+ Feburary = 2
274
+ March = 3
275
+ April = 4
276
+ May = 5
277
+ June = 6
278
+ July = 7
279
+ August = 8
280
+ September = 9
281
+ October = 10
282
+ November = 11
283
+ December = 12
284
+
285
+
286
+ class Requests( Enum ):
287
+ '''
288
+
289
+ Type classifying OpenAI requests
290
+
291
+ '''
292
+ TextGeneration = auto( )
293
+ ImageGeneration = auto( )
294
+ ChatCompletion = auto( )
295
+ Assistants = auto( )
296
+ SpeechGeneration = auto( )
297
+ Translations = auto( )
298
+ Transcriptions = auto( )
299
+ FineTuning = auto( )
300
+ Files = auto( )
301
+ Uploads = auto( )
302
+ VectorStores = auto( )
303
+ Embeddings = auto( )
304
+
305
+
306
+ class Parameters( Enum ):
307
+ '''
308
+ Type classifying hyper-parameters
309
+ '''
310
+ Number = auto( )
311
+ TopPercent = auto( )
312
+ Temperature = auto( )
313
+ TopLogProbs = auto( )
314
+ MaxCompletionTokens = auto( )
315
+ Store = auto( )
316
+ Stream = auto( )
317
+ Speed = auto( )
318
+ FrequencyPenalty = auto( )
319
+ PresencePenalty = auto( )
320
+ ResponseFormat = auto( )
321
+
322
+
323
+ class Languages( Enum ):
324
+ '''
325
+ Type categorizing the languages used in the editor
326
+ '''
327
+ TXT = auto( )
328
+ SQL = auto( )
329
+ CS = auto( )
330
+ PY = auto( )
331
+ JS = auto( )
332
+ C = auto( )
333
+ CPP = auto( )
334
+ VBA = auto( )
335
+
336
+
337
+ class Roles( Enum ):
338
+ '''
339
+ Type classifyig the various content roles
340
+ '''
341
+ System = auto( )
342
+ User = auto( )
343
+ Assistant = auto( )
344
+ Developer = auto( )
345
+ Tool = auto( )
346
+
347
+
348
+ class Source( Enum ):
349
+ '''
350
+
351
+ Enumeration of df names
352
+
353
+ '''
354
+ Appropriations = auto( )
355
+ BudgetFunctions = auto( )
356
+ BudgetObjectClasses = auto( )
357
+ BudgetaryResourceExecution = auto( )
358
+ ChatLog = auto( )
359
+ FederalHolidays = auto( )
360
+ FiscalYears = auto( )
361
+ MainAccounts = auto( )
362
+ ProductCategories = auto( )
363
+ Regulations = auto( )
364
+ ResourceLines = auto( )
365
+ TreasurySymbols = auto( )
366
+
367
+
368
+ class Scaler( Enum ):
369
+ '''
370
+
371
+ Enumeration of scaling algorythms
372
+
373
+ '''
374
+ Simple = auto( )
375
+ Standard = auto( )
376
+ Normal = auto( )
377
+ OneHot = auto( )
378
+ Neighbor = auto( )
379
+ MinMax = auto( )
380
+ Ordinal = auto( )
381
+ Robust = auto( )
boogr/minion.py ADDED
@@ -0,0 +1,175 @@
1
+ '''
2
+ ******************************************************************************************
3
+ Assembly: Boo
4
+ Filename: Minion.py
5
+ Author: Terry D. Eppler
6
+ Created: 05-31-2022
7
+
8
+ Last Modified By: Terry D. Eppler
9
+ Last Modified On: 05-01-2025
10
+ ******************************************************************************************
11
+ <copyright file="minion.py" company="Terry D. Eppler">
12
+
13
+ Boo is a df analysis tool integrating various Generative AI, Text-Processing, and
14
+ Machine-Learning algorithms for federal analysts.
15
+ Copyright © 2022 Terry Eppler
16
+
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ of this software and associated documentation files (the “Software”),
19
+ to deal in the Software without restriction,
20
+ including without limitation the rights to use,
21
+ copy, modify, merge, publish, distribute, sublicense,
22
+ and/or sell copies of the Software,
23
+ and to permit persons to whom the Software is furnished to do so,
24
+ subject to the following conditions:
25
+
26
+ The above copyright notice and this permission notice shall be included in all
27
+ copies or substantial portions of the Software.
28
+
29
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
30
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
32
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
33
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
35
+ DEALINGS IN THE SOFTWARE.
36
+
37
+ You can contact me at: terryeppler@gmail.com or eppler.terry@epa.gov
38
+
39
+ </copyright>
40
+ <summary>
41
+ Minion.py
42
+ </summary>
43
+ ******************************************************************************************
44
+ '''
45
+ import subprocess as sp
46
+ from .enums import Client
47
+
48
+ class App( ):
49
+ '''
50
+
51
+ Constructor:
52
+ -------------
53
+ App( client: enum )
54
+
55
+
56
+ Purpose:
57
+ ---------
58
+ Class defines object providing factory methods run( ) and run( args ) that run
59
+ processes based on 'Client' enumeration path args
60
+
61
+ '''
62
+
63
+ def __init__( self, client: Client ):
64
+ self.app = client
65
+ self.sqlite = r'target_values\sqlite\gui\SQLiteDatabaseBrowserPortable.exe'
66
+ self.access = r'C:\Program Files\Microsoft Office\root\Office16\MSACCESS.EXE'
67
+ self.excel = r'C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE'
68
+ self.edge = r'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
69
+ self.chrome = r'C:\Program Files\Google\Chrome\Application\chrome.exe'
70
+ self.control_panel = r'C:\Windows\System32\control.exe'
71
+ self.calculator = r'C:\Windows\System32\calc.exe'
72
+ self.outlook = r'C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE'
73
+ self.pyscripter = r'target_values\python\PyScripter\PyScripter.exe'
74
+ self.task_manager = r'C:\Windows\System32\Taskmgr.exe'
75
+ self.storage = r'C:\Users\terry\AppData\Local\Microsoft\OneDrive\OneDrive.exe'
76
+ self.word = r'C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE'
77
+
78
+ def __dir__( self ) -> list[ str ]:
79
+ return [ 'sqlite', 'access', 'excel', 'chrome',
80
+ 'edge', 'control', 'calculator', 'task_manager',
81
+ 'outlook', 'pyscripter', 'storage', 'word',
82
+ 'run', 'run_args' ]
83
+
84
+ def run( self ):
85
+ '''
86
+
87
+ Purpose:
88
+ ---------
89
+
90
+ Parameters:
91
+ ----------
92
+
93
+ Returns:
94
+ -------
95
+
96
+ '''
97
+ try:
98
+ if self.app == Client.SQLite:
99
+ sp.Popen( self.sqlite )
100
+ elif self.app == Client.Access:
101
+ sp.Popen( self.access )
102
+ elif self.app == Client.Excel:
103
+ sp.Popen( self.excel )
104
+ elif self.app == Client.Edge:
105
+ sp.Popen( self.edge )
106
+ elif self.app == Client.Chrome:
107
+ sp.Popen( self.chrome )
108
+ elif self.app == Client.ControlPanel:
109
+ sp.Popen( self.control_panel )
110
+ elif self.app == Client.Calculator:
111
+ sp.Popen( self.calculator )
112
+ elif self.app == Client.Outlook:
113
+ sp.Popen( self.outlook )
114
+ elif self.app == Client.Pyscripter:
115
+ sp.Popen( self.pyscripter )
116
+ elif self.app == Client.TaskManager:
117
+ sp.Popen( self.task_manager )
118
+ elif self.app == Client.Storage:
119
+ sp.Popen( self.storage )
120
+ elif self.app == Client.Word:
121
+ sp.Popen( self.word )
122
+ except Exception as e:
123
+ _exc = Error( e )
124
+ _exc.module = 'Minion'
125
+ _exc.cause = 'App'
126
+ _exc.method = 'run( self )'
127
+ _err = ErrorDialog( _exc )
128
+ _err.show( )
129
+
130
+ def run_args( self, args: str ):
131
+ '''
132
+
133
+ Purpose:
134
+ -------
135
+
136
+ Parameters:
137
+ -----------
138
+
139
+ Returns:
140
+ ---------
141
+
142
+ '''
143
+ try:
144
+ if args is not None and self.app == Client.SQLite:
145
+ if os.path.isfile( args ):
146
+ sp.Popen( [ self.sqlite, args ] )
147
+ elif args is not None and self.app == Client.Access:
148
+ if os.path.isfile( args ):
149
+ sp.Popen( [ self.access, args ] )
150
+ elif args is not None and self.app == Client.Excel:
151
+ if os.path.isfile( args ):
152
+ sp.Popen( [ self.excel, args ] )
153
+ elif args is not None and self.app == Client.Edge:
154
+ sp.Popen( [ self.edge, args ] )
155
+ elif args is not None and self.app == Client.Chrome:
156
+ sp.Popen( [ self.chrome, args ] )
157
+ elif args is not None and self.app == Client.Outlook:
158
+ sp.Popen( [ self.outlook, args ] )
159
+ elif args is not None and self.app == Client.Pyscripter:
160
+ sp.Popen( [ self.pyscripter, args ] )
161
+ elif args is not None and self.app == Client.Word:
162
+ sp.Popen( [ self.__word, args ] )
163
+ elif args is not None and self.app == Client.TaskManager:
164
+ sp.Popen( [ self.task_manager, args ] )
165
+ elif args is not None and self.app == Client.ControlPanel:
166
+ sp.Popen( [ self.control_panel, args ] )
167
+ elif args is not None and self.app == Client.Storage:
168
+ sp.Popen( [ self.storage, args ] )
169
+ except Exception as e:
170
+ _exc = Error( e )
171
+ _exc.module = 'Minion'
172
+ _exc.cause = 'App'
173
+ _exc.method = 'run_args( self, args )'
174
+ _err = ErrorDialog( _exc )
175
+ _err.show( )
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file