toolboxv2 0.1.23__py2.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.
- toolboxv2/__init__.py +172 -0
- toolboxv2/__main__.py +1263 -0
- toolboxv2/flows/__init__.py +75 -0
- toolboxv2/flows/auto_git_commit.py +129 -0
- toolboxv2/flows/bg.py +6 -0
- toolboxv2/flows/bgws.py +28 -0
- toolboxv2/flows/bottelUp.py +9 -0
- toolboxv2/flows/chain.py +1516 -0
- toolboxv2/flows/core0.py +82 -0
- toolboxv2/flows/docker.py +24 -0
- toolboxv2/flows/folder_to_graph_query.py +64 -0
- toolboxv2/flows/idle.py +5 -0
- toolboxv2/flows/isaa_cli.py +3371 -0
- toolboxv2/flows/minicli.py +333 -0
- toolboxv2/flows/univ.py +52 -0
- toolboxv2/flows/vad_talk.py +2030 -0
- toolboxv2/mods/Canvas.py +3467 -0
- toolboxv2/mods/ChatModule.py +152 -0
- toolboxv2/mods/CloudM/AdminDashboard.py +1450 -0
- toolboxv2/mods/CloudM/AuthManager.py +1171 -0
- toolboxv2/mods/CloudM/ModManager.py +563 -0
- toolboxv2/mods/CloudM/ModManager_tests.py +163 -0
- toolboxv2/mods/CloudM/UI/UserAccountManager.py +221 -0
- toolboxv2/mods/CloudM/UI/__init__.py +1 -0
- toolboxv2/mods/CloudM/UI/widget.py +99 -0
- toolboxv2/mods/CloudM/UserAccountManager.py +166 -0
- toolboxv2/mods/CloudM/UserDashboard.py +1331 -0
- toolboxv2/mods/CloudM/UserInstances.py +224 -0
- toolboxv2/mods/CloudM/__init__.py +15 -0
- toolboxv2/mods/CloudM/email_services.py +395 -0
- toolboxv2/mods/CloudM/extras.py +377 -0
- toolboxv2/mods/CloudM/mini.py +144 -0
- toolboxv2/mods/CloudM/module.py +126 -0
- toolboxv2/mods/CloudM/types.py +42 -0
- toolboxv2/mods/CodeVerification.py +717 -0
- toolboxv2/mods/CounterTracker.py +1496 -0
- toolboxv2/mods/DB/__init__.py +12 -0
- toolboxv2/mods/DB/blob_instance.py +161 -0
- toolboxv2/mods/DB/local_instance.py +148 -0
- toolboxv2/mods/DB/reddis_instance.py +203 -0
- toolboxv2/mods/DB/tb_adapter.py +316 -0
- toolboxv2/mods/DB/types.py +32 -0
- toolboxv2/mods/DB/ui.py +563 -0
- toolboxv2/mods/EventManager/__init__.py +2 -0
- toolboxv2/mods/EventManager/module.py +776 -0
- toolboxv2/mods/FileWidget.py +1008 -0
- toolboxv2/mods/MinimalHtml.py +169 -0
- toolboxv2/mods/P2PRPCClient.py +155 -0
- toolboxv2/mods/P2PRPCServer.py +178 -0
- toolboxv2/mods/POA/__init__.py +5 -0
- toolboxv2/mods/POA/module.py +2721 -0
- toolboxv2/mods/ProcessManager.py +70 -0
- toolboxv2/mods/SchedulerManager.py +607 -0
- toolboxv2/mods/SimpleCore.py +138 -0
- toolboxv2/mods/SocketManager.py +1362 -0
- toolboxv2/mods/TestWidget/__init__.py +4 -0
- toolboxv2/mods/TestWidget/wiget_test.py +144 -0
- toolboxv2/mods/TruthSeeker/__init__.py +7 -0
- toolboxv2/mods/TruthSeeker/arXivCrawler.py +472 -0
- toolboxv2/mods/TruthSeeker/module.py +235 -0
- toolboxv2/mods/TruthSeeker/nGui.py +1329 -0
- toolboxv2/mods/TruthSeeker/newui.py +1536 -0
- toolboxv2/mods/TruthSeeker/tests.py +505 -0
- toolboxv2/mods/UltimateTTT.py +3610 -0
- toolboxv2/mods/WebSocketManager.py +622 -0
- toolboxv2/mods/WhatsAppTb/__init__.py +4 -0
- toolboxv2/mods/WhatsAppTb/client.py +1963 -0
- toolboxv2/mods/WhatsAppTb/module.py +55 -0
- toolboxv2/mods/WhatsAppTb/server.py +351 -0
- toolboxv2/mods/WhatsAppTb/utils.py +102 -0
- toolboxv2/mods/WidgetsProvider/StorageUtil.py +236 -0
- toolboxv2/mods/WidgetsProvider/__init__.py +6 -0
- toolboxv2/mods/WidgetsProvider/board_widget.py +169 -0
- toolboxv2/mods/WidgetsProvider/module.py +65 -0
- toolboxv2/mods/WidgetsProvider/types.py +16 -0
- toolboxv2/mods/__init__.py +4 -0
- toolboxv2/mods/cli_functions.py +617 -0
- toolboxv2/mods/helper.py +156 -0
- toolboxv2/mods/isaa/CodingAgent/__init__.py +0 -0
- toolboxv2/mods/isaa/CodingAgent/live.py +1862 -0
- toolboxv2/mods/isaa/__init__.py +5 -0
- toolboxv2/mods/isaa/base/Agent/__init__.py +0 -0
- toolboxv2/mods/isaa/base/Agent/agent.py +11753 -0
- toolboxv2/mods/isaa/base/Agent/builder.py +1610 -0
- toolboxv2/mods/isaa/base/Agent/chain.py +711 -0
- toolboxv2/mods/isaa/base/Agent/config.py +219 -0
- toolboxv2/mods/isaa/base/Agent/executors.py +368 -0
- toolboxv2/mods/isaa/base/Agent/types.py +809 -0
- toolboxv2/mods/isaa/base/Agent/utils.py +170 -0
- toolboxv2/mods/isaa/base/AgentUtils.py +1832 -0
- toolboxv2/mods/isaa/base/KnowledgeBase.py +1951 -0
- toolboxv2/mods/isaa/base/VectorStores/FaissVectorStore.py +63 -0
- toolboxv2/mods/isaa/base/VectorStores/RedisVectorStore.py +130 -0
- toolboxv2/mods/isaa/base/VectorStores/__init__.py +21 -0
- toolboxv2/mods/isaa/base/VectorStores/taichiNumpyNumbaVectorStores.py +1229 -0
- toolboxv2/mods/isaa/base/VectorStores/types.py +50 -0
- toolboxv2/mods/isaa/base/__init__.py +0 -0
- toolboxv2/mods/isaa/base/tbpocketflow/__init__.py +100 -0
- toolboxv2/mods/isaa/chainUi.py +840 -0
- toolboxv2/mods/isaa/extras/__init__.py +0 -0
- toolboxv2/mods/isaa/extras/adapter.py +204 -0
- toolboxv2/mods/isaa/extras/filter.py +159 -0
- toolboxv2/mods/isaa/extras/mcp_session_manager.py +318 -0
- toolboxv2/mods/isaa/extras/modes.py +482 -0
- toolboxv2/mods/isaa/extras/session.py +60 -0
- toolboxv2/mods/isaa/extras/terminal_progress.py +2079 -0
- toolboxv2/mods/isaa/extras/terminal_progress2.py +4500 -0
- toolboxv2/mods/isaa/extras/verbose_output.py +559 -0
- toolboxv2/mods/isaa/extras/web_search.py +658 -0
- toolboxv2/mods/isaa/isaa_modi.py +83 -0
- toolboxv2/mods/isaa/module.py +3788 -0
- toolboxv2/mods/isaa/requirements.txt +36 -0
- toolboxv2/mods/isaa/types.py +15 -0
- toolboxv2/mods/isaa/ui.py +4156 -0
- toolboxv2/mods/registry/__init__.py +4 -0
- toolboxv2/mods/registry/client.py +1276 -0
- toolboxv2/mods/registry/demo_custom_messaging.py +302 -0
- toolboxv2/mods/registry/demo_registry.py +202 -0
- toolboxv2/mods/registry/server.py +496 -0
- toolboxv2/mods/registry/types.py +43 -0
- toolboxv2/mods/talk.py +464 -0
- toolboxv2/mods/welcome.py +621 -0
- toolboxv2/mods_dev/__init__.py +0 -0
- toolboxv2/setup_helper.py +289 -0
- toolboxv2/src-core/__init__.py +0 -0
- toolboxv2/tests/__init__.py +2 -0
- toolboxv2/tests/a_util.py +9 -0
- toolboxv2/tests/test_mods/__init__.py +0 -0
- toolboxv2/tests/test_mods/test_toolboxv2.py +349 -0
- toolboxv2/tests/test_utils/__init__.py +0 -0
- toolboxv2/tests/test_utils/test_deamon_proxy_integration.py +82 -0
- toolboxv2/tests/test_utils/test_singelton_class.py +37 -0
- toolboxv2/tests/test_utils/test_system/__init__.py +0 -0
- toolboxv2/tests/test_utils/test_system/test_api.py +26 -0
- toolboxv2/tests/test_utils/test_system/test_cache.py +88 -0
- toolboxv2/tests/test_utils/test_system/test_conda_runner.py +155 -0
- toolboxv2/tests/test_utils/test_system/test_file_handler.py +171 -0
- toolboxv2/tests/test_utils/test_system/test_getting_and_closing_app.py +94 -0
- toolboxv2/tests/test_utils/test_system/test_ipy_completer.py +110 -0
- toolboxv2/tests/test_utils/test_system/test_logger.py +96 -0
- toolboxv2/tests/test_utils/test_system/test_main_tool.py +115 -0
- toolboxv2/tests/test_utils/test_system/test_session.py +133 -0
- toolboxv2/tests/test_utils/test_system/test_state_system.py +69 -0
- toolboxv2/tests/test_utils/test_system/test_types.py +110 -0
- toolboxv2/tests/test_utils/test_toolbox.py +1412 -0
- toolboxv2/tests/test_web.py +138 -0
- toolboxv2/tests/web_test/__init__.py +5 -0
- toolboxv2/tests/web_test/test_main_page.py +163 -0
- toolboxv2/tests/web_util.py +515 -0
- toolboxv2/utils/__init__.py +34 -0
- toolboxv2/utils/brodcast/__init__.py +0 -0
- toolboxv2/utils/brodcast/client.py +43 -0
- toolboxv2/utils/brodcast/server.py +37 -0
- toolboxv2/utils/daemon/__init__.py +7 -0
- toolboxv2/utils/daemon/daemon_app.py +8 -0
- toolboxv2/utils/daemon/daemon_util.py +266 -0
- toolboxv2/utils/extras/Style.py +658 -0
- toolboxv2/utils/extras/__init__.py +25 -0
- toolboxv2/utils/extras/base_widget.py +290 -0
- toolboxv2/utils/extras/blobs.py +399 -0
- toolboxv2/utils/extras/bottleup.py +223 -0
- toolboxv2/utils/extras/gist_control.py +91 -0
- toolboxv2/utils/extras/helper_test_functions.py +65 -0
- toolboxv2/utils/extras/keword_matcher.py +142 -0
- toolboxv2/utils/extras/qr.py +23 -0
- toolboxv2/utils/extras/reqbuilder.py +36 -0
- toolboxv2/utils/extras/show_and_hide_console.py +23 -0
- toolboxv2/utils/proxy/__init__.py +7 -0
- toolboxv2/utils/proxy/prox_util.py +173 -0
- toolboxv2/utils/proxy/proxy_app.py +8 -0
- toolboxv2/utils/security/__init__.py +3 -0
- toolboxv2/utils/security/cryp.py +520 -0
- toolboxv2/utils/singelton_class.py +15 -0
- toolboxv2/utils/system/__init__.py +55 -0
- toolboxv2/utils/system/all_functions_enums.py +571 -0
- toolboxv2/utils/system/api.py +704 -0
- toolboxv2/utils/system/cache.py +47 -0
- toolboxv2/utils/system/conda_runner.py +231 -0
- toolboxv2/utils/system/db_cli_manager.py +455 -0
- toolboxv2/utils/system/exe_bg.py +25 -0
- toolboxv2/utils/system/file_handler.py +254 -0
- toolboxv2/utils/system/getting_and_closing_app.py +99 -0
- toolboxv2/utils/system/ipy_completer.py +75 -0
- toolboxv2/utils/system/main_tool.py +183 -0
- toolboxv2/utils/system/session.py +374 -0
- toolboxv2/utils/system/state_system.py +205 -0
- toolboxv2/utils/system/tb_logger.py +176 -0
- toolboxv2/utils/system/tcm_p2p_cli.py +393 -0
- toolboxv2/utils/system/types.py +2186 -0
- toolboxv2/utils/toolbox.py +2292 -0
- toolboxv2/web/webapp/icon-1024.png +0 -0
- toolboxv2/web/webapp/icon-192.png +0 -0
- toolboxv2/web/webapp/icon-512.png +0 -0
- toolboxv2/web/webapp/manifest.json +24 -0
- toolboxv2-0.1.23.dist-info/METADATA +345 -0
- toolboxv2-0.1.23.dist-info/RECORD +202 -0
- toolboxv2-0.1.23.dist-info/WHEEL +6 -0
- toolboxv2-0.1.23.dist-info/dependency_links.txt +46 -0
- toolboxv2-0.1.23.dist-info/entry_points.txt +2 -0
- toolboxv2-0.1.23.dist-info/licenses/AUTHORS.rst +13 -0
- toolboxv2-0.1.23.dist-info/licenses/LICENSE +18 -0
- toolboxv2-0.1.23.dist-info/top_level.txt +1 -0
toolboxv2/__init__.py
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"""Top-level package for ToolBox."""
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
from yaml import safe_load
|
|
5
|
+
|
|
6
|
+
try:
|
|
7
|
+
from .utils.toolbox import App
|
|
8
|
+
except ImportError as e:
|
|
9
|
+
print(e)
|
|
10
|
+
import traceback
|
|
11
|
+
print(traceback.format_exc())
|
|
12
|
+
App = None
|
|
13
|
+
print("⚠️ Missing: utils.toolbox.App")
|
|
14
|
+
|
|
15
|
+
try:
|
|
16
|
+
from .utils.singelton_class import Singleton
|
|
17
|
+
except ImportError:
|
|
18
|
+
Singleton = None
|
|
19
|
+
print("⚠️ Missing: utils.singelton_class.Singleton")
|
|
20
|
+
|
|
21
|
+
try:
|
|
22
|
+
from .utils.system.main_tool import MainTool, get_version_from_pyproject
|
|
23
|
+
except ImportError:
|
|
24
|
+
MainTool = get_version_from_pyproject = None
|
|
25
|
+
print("⚠️ Missing: utils.system.main_tool")
|
|
26
|
+
|
|
27
|
+
try:
|
|
28
|
+
from .utils.system.file_handler import FileHandler
|
|
29
|
+
except ImportError:
|
|
30
|
+
FileHandler = None
|
|
31
|
+
print("⚠️ Missing: utils.system.file_handler")
|
|
32
|
+
|
|
33
|
+
try:
|
|
34
|
+
from .utils.extras.Style import Style
|
|
35
|
+
except ImportError:
|
|
36
|
+
Style = None
|
|
37
|
+
print("⚠️ Missing: utils.extras.Style.Style")
|
|
38
|
+
|
|
39
|
+
try:
|
|
40
|
+
from .utils.extras.Style import Spinner
|
|
41
|
+
except ImportError:
|
|
42
|
+
Spinner = None
|
|
43
|
+
print("⚠️ Missing: utils.extras.Style.Spinner")
|
|
44
|
+
|
|
45
|
+
try:
|
|
46
|
+
from .utils.extras.Style import remove_styles
|
|
47
|
+
except ImportError:
|
|
48
|
+
remove_styles = None
|
|
49
|
+
print("⚠️ Missing: utils.extras.Style.remove_styles")
|
|
50
|
+
|
|
51
|
+
try:
|
|
52
|
+
from .utils.system.types import (
|
|
53
|
+
AppArgs,
|
|
54
|
+
AppType,
|
|
55
|
+
MainToolType,
|
|
56
|
+
ToolBoxError,
|
|
57
|
+
ToolBoxInfo,
|
|
58
|
+
ToolBoxInterfaces,
|
|
59
|
+
ToolBoxResult,
|
|
60
|
+
ToolBoxResultBM,
|
|
61
|
+
)
|
|
62
|
+
except ImportError:
|
|
63
|
+
(AppArgs, MainToolType, AppType,
|
|
64
|
+
ToolBoxError, ToolBoxInterfaces, ToolBoxResult,
|
|
65
|
+
ToolBoxInfo, ToolBoxResultBM) = [None] * 8
|
|
66
|
+
print("⚠️ Missing: utils.system.types.AppArgs")
|
|
67
|
+
|
|
68
|
+
try:
|
|
69
|
+
from .utils.extras.show_and_hide_console import show_console
|
|
70
|
+
except ImportError:
|
|
71
|
+
show_console = None
|
|
72
|
+
print("⚠️ Missing: utils.extras.show_and_hide_console.show_console")
|
|
73
|
+
|
|
74
|
+
try:
|
|
75
|
+
from .utils.system.tb_logger import get_logger, setup_logging
|
|
76
|
+
except ImportError:
|
|
77
|
+
get_logger = setup_logging = None
|
|
78
|
+
print("⚠️ Missing: utils.system.tb_logger")
|
|
79
|
+
|
|
80
|
+
try:
|
|
81
|
+
from .utils.system.getting_and_closing_app import get_app
|
|
82
|
+
except ImportError:
|
|
83
|
+
get_app = None
|
|
84
|
+
print("⚠️ Missing: utils.system.getting_and_closing_app.get_app")
|
|
85
|
+
|
|
86
|
+
try:
|
|
87
|
+
from .utils.system.types import Result
|
|
88
|
+
except ImportError:
|
|
89
|
+
Result = None
|
|
90
|
+
print("⚠️ Missing: utils.system.types.Result")
|
|
91
|
+
|
|
92
|
+
try:
|
|
93
|
+
from .utils.system.types import ApiResult, RequestData
|
|
94
|
+
except ImportError:
|
|
95
|
+
ApiResult = RequestData = None
|
|
96
|
+
print("⚠️ Missing: utils.system.types.ApiResult/RequestData")
|
|
97
|
+
|
|
98
|
+
try:
|
|
99
|
+
from .utils.security.cryp import Code
|
|
100
|
+
except ImportError:
|
|
101
|
+
Code = None
|
|
102
|
+
print("⚠️ Missing: utils.security.cryp.Code")
|
|
103
|
+
|
|
104
|
+
try:
|
|
105
|
+
from .utils.system import all_functions_enums as TBEF
|
|
106
|
+
except ImportError:
|
|
107
|
+
TBEF = {}
|
|
108
|
+
print("⚠️ Missing: utils.system.all_functions_enums")
|
|
109
|
+
|
|
110
|
+
try:
|
|
111
|
+
from .flows import flows_dict
|
|
112
|
+
except ImportError:
|
|
113
|
+
flows_dict = {}
|
|
114
|
+
print("⚠️ Missing: flows.flows_dict")
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
try:
|
|
118
|
+
MODS_ERROR = None
|
|
119
|
+
import toolboxv2.mods
|
|
120
|
+
from toolboxv2.mods import *
|
|
121
|
+
except ImportError as e:
|
|
122
|
+
MODS_ERROR = e
|
|
123
|
+
except Exception as e:
|
|
124
|
+
print(f"WARNING ERROR IN LIBRARY MODULE´S details : {e}")
|
|
125
|
+
MODS_ERROR = e
|
|
126
|
+
|
|
127
|
+
__author__ = """Markin Hausmanns"""
|
|
128
|
+
__email__ = 'Markinhausmanns@gmail.com'
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
from pathlib import Path
|
|
132
|
+
from platform import node, system
|
|
133
|
+
|
|
134
|
+
__init_cwd__ = init_cwd = Path.cwd()
|
|
135
|
+
|
|
136
|
+
__tb_root_dir__ = tb_root_dir = Path(__file__).parent
|
|
137
|
+
os.chdir(__tb_root_dir__)
|
|
138
|
+
__version__ = get_version_from_pyproject()
|
|
139
|
+
|
|
140
|
+
ToolBox_over: str = "root"
|
|
141
|
+
__all__ = [
|
|
142
|
+
"App",
|
|
143
|
+
"ToolBox_over",
|
|
144
|
+
"MainTool",
|
|
145
|
+
"FileHandler",
|
|
146
|
+
"Style",
|
|
147
|
+
"Spinner",
|
|
148
|
+
"remove_styles",
|
|
149
|
+
"AppArgs",
|
|
150
|
+
"setup_logging",
|
|
151
|
+
"get_logger",
|
|
152
|
+
"flows_dict",
|
|
153
|
+
"mods",
|
|
154
|
+
"get_app",
|
|
155
|
+
"TBEF",
|
|
156
|
+
"Result",
|
|
157
|
+
"ApiResult",
|
|
158
|
+
"RequestData", # ADD
|
|
159
|
+
"Code",
|
|
160
|
+
"show_console", # ADD
|
|
161
|
+
"init_cwd",
|
|
162
|
+
"tb_root_dir",
|
|
163
|
+
|
|
164
|
+
"MainToolType",
|
|
165
|
+
"AppType",
|
|
166
|
+
"ToolBoxError",
|
|
167
|
+
"ToolBoxInterfaces",
|
|
168
|
+
"ToolBoxResult",
|
|
169
|
+
"ToolBoxInfo",
|
|
170
|
+
"ToolBoxResultBM",
|
|
171
|
+
"__init_cwd__",
|
|
172
|
+
]
|