syntaxmatrix 2.0__tar.gz → 2.0.1__tar.gz
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.
- syntaxmatrix-2.0/syntaxmatrix/auth.py → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy/auth.py +26 -0
- syntaxmatrix-2.0/syntaxmatrix/generate_page.py → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy/generate_page.py +0 -5
- syntaxmatrix-2.0/syntaxmatrix/routes.py → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy/routes.py +46 -39
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/PKG-INFO +12 -12
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/SyntaxMatrix.egg-info/PKG-INFO +12 -12
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/SyntaxMatrix.egg-info/SOURCES.txt +40 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/SyntaxMatrix.egg-info/requires.txt +5 -5
- syntaxmatrix-2.0.1/SyntaxMatrix.egg-info/top_level.txt +2 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/setup.py +2 -2
- syntaxmatrix-2.0.1/syntaxmatrix/__init__.py +59 -0
- syntaxmatrix-2.0.1/syntaxmatrix/auth.py +432 -0
- syntaxmatrix-2.0.1/syntaxmatrix/bootstrap.py +27 -0
- syntaxmatrix-2.0.1/syntaxmatrix/core.py +926 -0
- syntaxmatrix-2.0.1/syntaxmatrix/db.py +139 -0
- syntaxmatrix-2.0.1/syntaxmatrix/display.py +132 -0
- syntaxmatrix-2.0.1/syntaxmatrix/emailer.py +26 -0
- syntaxmatrix-2.0.1/syntaxmatrix/file_processor.py +92 -0
- syntaxmatrix-2.0.1/syntaxmatrix/generate_page.py +568 -0
- syntaxmatrix-2.0.1/syntaxmatrix/gpt_models_latest.py +38 -0
- syntaxmatrix-2.0.1/syntaxmatrix/history_store.py +192 -0
- syntaxmatrix-2.0.1/syntaxmatrix/kernel_manager.py +204 -0
- syntaxmatrix-2.0.1/syntaxmatrix/llm_store.py +255 -0
- syntaxmatrix-2.0.1/syntaxmatrix/model_templates.py +29 -0
- syntaxmatrix-2.0.1/syntaxmatrix/models.py +14 -0
- syntaxmatrix-2.0.1/syntaxmatrix/plottings.py +167 -0
- syntaxmatrix-2.0.1/syntaxmatrix/profiles.py +40 -0
- syntaxmatrix-2.0.1/syntaxmatrix/project_root.py +61 -0
- syntaxmatrix-2.0.1/syntaxmatrix/routes.py +4026 -0
- syntaxmatrix-2.0.1/syntaxmatrix/session.py +19 -0
- syntaxmatrix-2.0.1/syntaxmatrix/settings/logging.py +40 -0
- syntaxmatrix-2.0.1/syntaxmatrix/settings/model_map.py +161 -0
- syntaxmatrix-2.0.1/syntaxmatrix/settings/prompts.py +279 -0
- syntaxmatrix-2.0.1/syntaxmatrix/settings/string_navbar.py +5 -0
- syntaxmatrix-2.0.1/syntaxmatrix/smiv.py +45 -0
- syntaxmatrix-2.0.1/syntaxmatrix/smpv.py +121 -0
- syntaxmatrix-2.0.1/syntaxmatrix/static/js/widgets.js +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/templates/error.html +2 -3
- syntaxmatrix-2.0.1/syntaxmatrix/themes.py +112 -0
- syntaxmatrix-2.0.1/syntaxmatrix/ui_modes.py +14 -0
- syntaxmatrix-2.0.1/syntaxmatrix/utils.py +804 -0
- syntaxmatrix-2.0.1/syntaxmatrix/vector_db.py +202 -0
- syntaxmatrix-2.0.1/syntaxmatrix/vectordb/__init__.py +16 -0
- syntaxmatrix-2.0.1/syntaxmatrix/vectordb/adapters/__init__.py +0 -0
- syntaxmatrix-2.0.1/syntaxmatrix/vectordb/adapters/milvus_adapter.py +0 -0
- syntaxmatrix-2.0.1/syntaxmatrix/vectordb/adapters/pgvector_adapter.py +0 -0
- syntaxmatrix-2.0.1/syntaxmatrix/vectordb/adapters/sqlite_adapter.py +170 -0
- syntaxmatrix-2.0.1/syntaxmatrix/vectordb/base.py +116 -0
- syntaxmatrix-2.0.1/syntaxmatrix/vectordb/registry.py +161 -0
- syntaxmatrix-2.0.1/syntaxmatrix/vectorizer.py +47 -0
- syntaxmatrix-2.0.1/syntaxmatrix/workspace_db.py +100 -0
- syntaxmatrix-2.0/SyntaxMatrix.egg-info/top_level.txt +0 -1
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/__init__.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/bootstrap.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/core.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/db.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/display.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/emailer.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/file_processor.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/history_store.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/kernel_manager.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/llm_store.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/model_templates.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/models.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/plottings.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/profiles.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/project_root.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/session.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/settings/__init__.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/settings/model_map.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/settings/prompts.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/settings/string_navbar.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/smiv.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/smpv.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/themes.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/utils.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/vector_db.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/vectordb/__init__.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/vectordb/adapters/__init__.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/vectordb/adapters/milvus_adapter.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/vectordb/adapters/pgvector_adapter.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/vectordb/adapters/sqlite_adapter.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/vectordb/base.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/vectordb/registry.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/vectorizer.py +0 -0
- {syntaxmatrix-2.0/syntaxmatrix → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy}/workspace_db.py +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/LICENSE.txt +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/README.md +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/SyntaxMatrix.egg-info/dependency_links.txt +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/pyproject.toml +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/setup.cfg +0 -0
- /syntaxmatrix-2.0/syntaxmatrix/static/js/chat.js → /syntaxmatrix-2.0.1/syntaxmatrix/settings/__init__.py +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/settings/default.yaml +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/static/css/style.css +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/static/icons/favicon.ico +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/static/icons/logo.png +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/static/icons/svg_497526.svg +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/static/icons/svg_497528.svg +0 -0
- /syntaxmatrix-2.0/syntaxmatrix/static/js/widgets.js → /syntaxmatrix-2.0.1/syntaxmatrix/static/js/chat.js +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/static/js/sidebar.js +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/templates/code_cell.html +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/templates/dashboard.html +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/templates/login.html +0 -0
- {syntaxmatrix-2.0 → syntaxmatrix-2.0.1}/syntaxmatrix/templates/register.html +0 -0
|
@@ -24,6 +24,7 @@ def _get_conn():
|
|
|
24
24
|
conn.execute("PRAGMA foreign_keys = ON;")
|
|
25
25
|
return conn
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
def init_auth_db():
|
|
28
29
|
"""Create users table and seed the superadmin from env vars."""
|
|
29
30
|
conn = _get_conn()
|
|
@@ -73,6 +74,31 @@ def init_auth_db():
|
|
|
73
74
|
conn.close()
|
|
74
75
|
|
|
75
76
|
|
|
77
|
+
# --- Roles table + seed ---
|
|
78
|
+
conn.execute("""
|
|
79
|
+
CREATE TABLE IF NOT EXISTS roles (
|
|
80
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
81
|
+
name TEXT UNIQUE NOT NULL,
|
|
82
|
+
description TEXT DEFAULT '',
|
|
83
|
+
is_admin INTEGER NOT NULL DEFAULT 0,
|
|
84
|
+
is_superadmin INTEGER NOT NULL DEFAULT 0,
|
|
85
|
+
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
86
|
+
);
|
|
87
|
+
""")
|
|
88
|
+
|
|
89
|
+
# canonical roles
|
|
90
|
+
seed_roles = [
|
|
91
|
+
("user", "Default non-privileged user", 0, 0),
|
|
92
|
+
("admin", "Administrative user", 1, 0),
|
|
93
|
+
("superadmin", "Super administrator", 1, 1),
|
|
94
|
+
]
|
|
95
|
+
for r in seed_roles:
|
|
96
|
+
conn.execute("""
|
|
97
|
+
INSERT OR IGNORE INTO roles (name, description, is_admin, is_superadmin)
|
|
98
|
+
VALUES (?, ?, ?, ?)
|
|
99
|
+
""", r)
|
|
100
|
+
|
|
101
|
+
|
|
76
102
|
def register_user(email:str, username:str, password:str, role:str = "user") -> bool:
|
|
77
103
|
"""Return True if registration succeeded, False if username taken."""
|
|
78
104
|
hashed = generate_password_hash(password)
|
|
@@ -11,11 +11,6 @@ if not profile:
|
|
|
11
11
|
code_profile = profile
|
|
12
12
|
|
|
13
13
|
def generate_page_html1(page_title: str, website_description: str) -> str:
|
|
14
|
-
|
|
15
|
-
profile = _prof.get_profile('code') or _prof.get_profile('analytics') or _prof.get_profile('chat')
|
|
16
|
-
if not profile:
|
|
17
|
-
return "Error: setup a coder LLM"
|
|
18
|
-
code_profile = profile
|
|
19
14
|
|
|
20
15
|
client = _prof.get_client(code_profile)
|
|
21
16
|
model = code_profile['model']
|
syntaxmatrix-2.0/syntaxmatrix/routes.py → syntaxmatrix-2.0.1/ASsyntaxmatrix - Copy/routes.py
RENAMED
|
@@ -431,61 +431,64 @@ def setup_routes(smx):
|
|
|
431
431
|
"""
|
|
432
432
|
|
|
433
433
|
def _chat_css():
|
|
434
|
-
if smx.ui_mode == "
|
|
435
|
-
|
|
436
|
-
|
|
434
|
+
if smx.ui_mode == "default":
|
|
435
|
+
return f"""
|
|
436
|
+
.chat-message {{
|
|
437
437
|
position: relative;
|
|
438
438
|
max-width: 70%;
|
|
439
439
|
margin: 10px 0;
|
|
440
|
-
padding:
|
|
440
|
+
padding: 18px;
|
|
441
441
|
border-radius: 20px;
|
|
442
442
|
animation: fadeIn 0.9s forwards;
|
|
443
443
|
clear: both;
|
|
444
444
|
font-size: 0.9em;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
background:
|
|
445
|
+
}}
|
|
446
|
+
.chat-message.user {{
|
|
447
|
+
background: #E6DCDC;
|
|
448
448
|
float: right;
|
|
449
449
|
margin-right: 15px;
|
|
450
|
-
border-
|
|
451
|
-
|
|
452
|
-
|
|
450
|
+
border-top-right-radius: 2px;
|
|
451
|
+
}}
|
|
452
|
+
.chat-message.user::after {{
|
|
453
453
|
content: '';
|
|
454
454
|
position: absolute;
|
|
455
|
-
|
|
456
|
-
|
|
455
|
+
top: 0; /* flush to top edge */
|
|
456
|
+
right: -9px; /* flush to right edge */
|
|
457
457
|
width: 0;
|
|
458
458
|
height: 0;
|
|
459
|
-
border:
|
|
460
|
-
border-
|
|
459
|
+
border: 10px solid transparent;
|
|
460
|
+
border-left-color: #E6DCDC; /* pointing right */
|
|
461
461
|
border-right: 0;
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
background: #
|
|
462
|
+
}}
|
|
463
|
+
.chat-message.bot {{
|
|
464
|
+
background: #F0DDDD;
|
|
465
465
|
float: left;
|
|
466
|
-
margin-left:
|
|
467
|
-
border-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
.chat-message.bot::after {{
|
|
466
|
+
margin-left: 20px;
|
|
467
|
+
border-top-left-radius: 2px;
|
|
468
|
+
}}
|
|
469
|
+
.chat-message.bot::after {{
|
|
471
470
|
content: '';
|
|
472
471
|
position: absolute;
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
width:
|
|
476
|
-
height:
|
|
477
|
-
border:
|
|
478
|
-
border-
|
|
479
|
-
border-
|
|
480
|
-
|
|
481
|
-
|
|
472
|
+
top: 0; /* flush to bottom edge */
|
|
473
|
+
left: -9px; /* flush to left edge */
|
|
474
|
+
width: 0x;
|
|
475
|
+
height: 0x;
|
|
476
|
+
border: 10px solid transparent;
|
|
477
|
+
border-right-color: #F0DDDD;
|
|
478
|
+
border-left: 0;
|
|
479
|
+
|
|
480
|
+
/* rotate 90° clockwise, pivoting at the bottom-left corner
|
|
481
|
+
transform: rotate(-45deg);
|
|
482
|
+
transform-origin: 0% 100%; */
|
|
483
|
+
}}
|
|
484
|
+
.chat-message p {{
|
|
482
485
|
margin: 0;
|
|
483
486
|
padding: 0;
|
|
484
487
|
word-wrap: break-word;
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
elif smx.ui_mode == "
|
|
488
|
-
|
|
488
|
+
}}
|
|
489
|
+
"""
|
|
490
|
+
elif smx.ui_mode == "bubble":
|
|
491
|
+
return f"""
|
|
489
492
|
.chat-message {{
|
|
490
493
|
position: relative;
|
|
491
494
|
max-width: 70%;
|
|
@@ -536,7 +539,7 @@ def setup_routes(smx):
|
|
|
536
539
|
padding: 0;
|
|
537
540
|
word-wrap: break-word;
|
|
538
541
|
}}
|
|
539
|
-
"""
|
|
542
|
+
"""
|
|
540
543
|
elif smx.ui_mode == "card":
|
|
541
544
|
return f"""
|
|
542
545
|
.chat-message {{
|
|
@@ -668,7 +671,7 @@ def setup_routes(smx):
|
|
|
668
671
|
|
|
669
672
|
<!-- Inline icons -->
|
|
670
673
|
<div style="position:absolute; bottom:15px; left:15px; display:flex; gap:20px;">
|
|
671
|
-
<!-- “+” opens the hidden PDF
|
|
674
|
+
<!-- “+” opens the hidden PDF-upload input -->
|
|
672
675
|
<span class="icon-default"
|
|
673
676
|
title="Upload PDF files for this chat"
|
|
674
677
|
style="cursor:pointer; transition:transform 0.2s ease;"
|
|
@@ -2801,6 +2804,10 @@ def setup_routes(smx):
|
|
|
2801
2804
|
@smx.app.route("/dashboard", methods=["GET", "POST"])
|
|
2802
2805
|
@admin_required
|
|
2803
2806
|
def dashboard():
|
|
2807
|
+
head_html = head_html()
|
|
2808
|
+
navbar = _generate_nav()
|
|
2809
|
+
footer = footer_html()
|
|
2810
|
+
|
|
2804
2811
|
DATA_FOLDER = os.path.join(_CLIENT_DIR, "uploads", "data")
|
|
2805
2812
|
os.makedirs(DATA_FOLDER, exist_ok=True)
|
|
2806
2813
|
|
|
@@ -2923,9 +2930,9 @@ def setup_routes(smx):
|
|
|
2923
2930
|
})
|
|
2924
2931
|
|
|
2925
2932
|
# head_html = head_html()
|
|
2926
|
-
navbar = _generate_nav()
|
|
2927
2933
|
return render_template(
|
|
2928
2934
|
"dashboard.html",
|
|
2935
|
+
|
|
2929
2936
|
head_html=head_html,
|
|
2930
2937
|
navbar=navbar,
|
|
2931
2938
|
section=section,
|
|
@@ -2998,7 +3005,7 @@ def setup_routes(smx):
|
|
|
2998
3005
|
<pre style="background:#f4f4f4;padding:1rem;
|
|
2999
3006
|
border-radius:4px;text-align:left;
|
|
3000
3007
|
overflow-x:auto;max-height:200px;">
|
|
3001
|
-
|
|
3008
|
+
{{{{ error_message }}}}
|
|
3002
3009
|
</pre>
|
|
3003
3010
|
<p>
|
|
3004
3011
|
<a href="{{{{ url_for('home') }}}}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: syntaxmatrix
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: SyntaxMUI: A customizable framework for Python AI Assistant Projects.
|
|
5
5
|
Home-page: https://github.com/bobganti/syntaxmatrix_demo
|
|
6
6
|
Author: Bob Nti
|
|
@@ -22,17 +22,17 @@ Requires-Dist: nest-asyncio>=1.6.0
|
|
|
22
22
|
Requires-Dist: python-dotenv>=1.1.0
|
|
23
23
|
Requires-Dist: openai>=1.84.0
|
|
24
24
|
Requires-Dist: google-genai>=1.19.0
|
|
25
|
-
Provides-Extra:
|
|
26
|
-
Requires-Dist: pandas>=2.2.3; extra == "
|
|
27
|
-
Requires-Dist: numpy>=2.0.2; extra == "
|
|
28
|
-
Requires-Dist: matplotlib>=3.9.4; extra == "
|
|
29
|
-
Requires-Dist: plotly>=6.0.0; extra == "
|
|
30
|
-
Requires-Dist: seaborn>=0.13.2; extra == "
|
|
31
|
-
Requires-Dist: scikit-learn>=1.6.1; extra == "
|
|
32
|
-
Requires-Dist: jupyter_client>=8.6.3; extra == "
|
|
33
|
-
Requires-Dist: ipykernel>=6.29.5; extra == "
|
|
34
|
-
Requires-Dist: statsmodels; extra == "
|
|
35
|
-
Requires-Dist: ipython; extra == "
|
|
25
|
+
Provides-Extra: mlearning
|
|
26
|
+
Requires-Dist: pandas>=2.2.3; extra == "mlearning"
|
|
27
|
+
Requires-Dist: numpy>=2.0.2; extra == "mlearning"
|
|
28
|
+
Requires-Dist: matplotlib>=3.9.4; extra == "mlearning"
|
|
29
|
+
Requires-Dist: plotly>=6.0.0; extra == "mlearning"
|
|
30
|
+
Requires-Dist: seaborn>=0.13.2; extra == "mlearning"
|
|
31
|
+
Requires-Dist: scikit-learn>=1.6.1; extra == "mlearning"
|
|
32
|
+
Requires-Dist: jupyter_client>=8.6.3; extra == "mlearning"
|
|
33
|
+
Requires-Dist: ipykernel>=6.29.5; extra == "mlearning"
|
|
34
|
+
Requires-Dist: statsmodels; extra == "mlearning"
|
|
35
|
+
Requires-Dist: ipython; extra == "mlearning"
|
|
36
36
|
Provides-Extra: auth
|
|
37
37
|
Requires-Dist: sqlalchemy>=2.0.42; extra == "auth"
|
|
38
38
|
Requires-Dist: cryptography>=45.0.6; extra == "auth"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: syntaxmatrix
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: SyntaxMUI: A customizable framework for Python AI Assistant Projects.
|
|
5
5
|
Home-page: https://github.com/bobganti/syntaxmatrix_demo
|
|
6
6
|
Author: Bob Nti
|
|
@@ -22,17 +22,17 @@ Requires-Dist: nest-asyncio>=1.6.0
|
|
|
22
22
|
Requires-Dist: python-dotenv>=1.1.0
|
|
23
23
|
Requires-Dist: openai>=1.84.0
|
|
24
24
|
Requires-Dist: google-genai>=1.19.0
|
|
25
|
-
Provides-Extra:
|
|
26
|
-
Requires-Dist: pandas>=2.2.3; extra == "
|
|
27
|
-
Requires-Dist: numpy>=2.0.2; extra == "
|
|
28
|
-
Requires-Dist: matplotlib>=3.9.4; extra == "
|
|
29
|
-
Requires-Dist: plotly>=6.0.0; extra == "
|
|
30
|
-
Requires-Dist: seaborn>=0.13.2; extra == "
|
|
31
|
-
Requires-Dist: scikit-learn>=1.6.1; extra == "
|
|
32
|
-
Requires-Dist: jupyter_client>=8.6.3; extra == "
|
|
33
|
-
Requires-Dist: ipykernel>=6.29.5; extra == "
|
|
34
|
-
Requires-Dist: statsmodels; extra == "
|
|
35
|
-
Requires-Dist: ipython; extra == "
|
|
25
|
+
Provides-Extra: mlearning
|
|
26
|
+
Requires-Dist: pandas>=2.2.3; extra == "mlearning"
|
|
27
|
+
Requires-Dist: numpy>=2.0.2; extra == "mlearning"
|
|
28
|
+
Requires-Dist: matplotlib>=3.9.4; extra == "mlearning"
|
|
29
|
+
Requires-Dist: plotly>=6.0.0; extra == "mlearning"
|
|
30
|
+
Requires-Dist: seaborn>=0.13.2; extra == "mlearning"
|
|
31
|
+
Requires-Dist: scikit-learn>=1.6.1; extra == "mlearning"
|
|
32
|
+
Requires-Dist: jupyter_client>=8.6.3; extra == "mlearning"
|
|
33
|
+
Requires-Dist: ipykernel>=6.29.5; extra == "mlearning"
|
|
34
|
+
Requires-Dist: statsmodels; extra == "mlearning"
|
|
35
|
+
Requires-Dist: ipython; extra == "mlearning"
|
|
36
36
|
Provides-Extra: auth
|
|
37
37
|
Requires-Dist: sqlalchemy>=2.0.42; extra == "auth"
|
|
38
38
|
Requires-Dist: cryptography>=45.0.6; extra == "auth"
|
|
@@ -2,6 +2,43 @@ LICENSE.txt
|
|
|
2
2
|
README.md
|
|
3
3
|
pyproject.toml
|
|
4
4
|
setup.py
|
|
5
|
+
ASsyntaxmatrix - Copy/__init__.py
|
|
6
|
+
ASsyntaxmatrix - Copy/auth.py
|
|
7
|
+
ASsyntaxmatrix - Copy/bootstrap.py
|
|
8
|
+
ASsyntaxmatrix - Copy/core.py
|
|
9
|
+
ASsyntaxmatrix - Copy/db.py
|
|
10
|
+
ASsyntaxmatrix - Copy/display.py
|
|
11
|
+
ASsyntaxmatrix - Copy/emailer.py
|
|
12
|
+
ASsyntaxmatrix - Copy/file_processor.py
|
|
13
|
+
ASsyntaxmatrix - Copy/generate_page.py
|
|
14
|
+
ASsyntaxmatrix - Copy/history_store.py
|
|
15
|
+
ASsyntaxmatrix - Copy/kernel_manager.py
|
|
16
|
+
ASsyntaxmatrix - Copy/llm_store.py
|
|
17
|
+
ASsyntaxmatrix - Copy/model_templates.py
|
|
18
|
+
ASsyntaxmatrix - Copy/models.py
|
|
19
|
+
ASsyntaxmatrix - Copy/plottings.py
|
|
20
|
+
ASsyntaxmatrix - Copy/profiles.py
|
|
21
|
+
ASsyntaxmatrix - Copy/project_root.py
|
|
22
|
+
ASsyntaxmatrix - Copy/routes.py
|
|
23
|
+
ASsyntaxmatrix - Copy/session.py
|
|
24
|
+
ASsyntaxmatrix - Copy/smiv.py
|
|
25
|
+
ASsyntaxmatrix - Copy/smpv.py
|
|
26
|
+
ASsyntaxmatrix - Copy/themes.py
|
|
27
|
+
ASsyntaxmatrix - Copy/utils.py
|
|
28
|
+
ASsyntaxmatrix - Copy/vector_db.py
|
|
29
|
+
ASsyntaxmatrix - Copy/vectorizer.py
|
|
30
|
+
ASsyntaxmatrix - Copy/workspace_db.py
|
|
31
|
+
ASsyntaxmatrix - Copy/settings/__init__.py
|
|
32
|
+
ASsyntaxmatrix - Copy/settings/model_map.py
|
|
33
|
+
ASsyntaxmatrix - Copy/settings/prompts.py
|
|
34
|
+
ASsyntaxmatrix - Copy/settings/string_navbar.py
|
|
35
|
+
ASsyntaxmatrix - Copy/vectordb/__init__.py
|
|
36
|
+
ASsyntaxmatrix - Copy/vectordb/base.py
|
|
37
|
+
ASsyntaxmatrix - Copy/vectordb/registry.py
|
|
38
|
+
ASsyntaxmatrix - Copy/vectordb/adapters/__init__.py
|
|
39
|
+
ASsyntaxmatrix - Copy/vectordb/adapters/milvus_adapter.py
|
|
40
|
+
ASsyntaxmatrix - Copy/vectordb/adapters/pgvector_adapter.py
|
|
41
|
+
ASsyntaxmatrix - Copy/vectordb/adapters/sqlite_adapter.py
|
|
5
42
|
SyntaxMatrix.egg-info/PKG-INFO
|
|
6
43
|
SyntaxMatrix.egg-info/SOURCES.txt
|
|
7
44
|
SyntaxMatrix.egg-info/dependency_links.txt
|
|
@@ -16,6 +53,7 @@ syntaxmatrix/display.py
|
|
|
16
53
|
syntaxmatrix/emailer.py
|
|
17
54
|
syntaxmatrix/file_processor.py
|
|
18
55
|
syntaxmatrix/generate_page.py
|
|
56
|
+
syntaxmatrix/gpt_models_latest.py
|
|
19
57
|
syntaxmatrix/history_store.py
|
|
20
58
|
syntaxmatrix/kernel_manager.py
|
|
21
59
|
syntaxmatrix/llm_store.py
|
|
@@ -29,6 +67,7 @@ syntaxmatrix/session.py
|
|
|
29
67
|
syntaxmatrix/smiv.py
|
|
30
68
|
syntaxmatrix/smpv.py
|
|
31
69
|
syntaxmatrix/themes.py
|
|
70
|
+
syntaxmatrix/ui_modes.py
|
|
32
71
|
syntaxmatrix/utils.py
|
|
33
72
|
syntaxmatrix/vector_db.py
|
|
34
73
|
syntaxmatrix/vectorizer.py
|
|
@@ -40,6 +79,7 @@ syntaxmatrix.egg-info/requires.txt
|
|
|
40
79
|
syntaxmatrix.egg-info/top_level.txt
|
|
41
80
|
syntaxmatrix/settings/__init__.py
|
|
42
81
|
syntaxmatrix/settings/default.yaml
|
|
82
|
+
syntaxmatrix/settings/logging.py
|
|
43
83
|
syntaxmatrix/settings/model_map.py
|
|
44
84
|
syntaxmatrix/settings/prompts.py
|
|
45
85
|
syntaxmatrix/settings/string_navbar.py
|
|
@@ -12,7 +12,11 @@ google-genai>=1.19.0
|
|
|
12
12
|
[:sys_platform == "win32"]
|
|
13
13
|
pywin32>=311
|
|
14
14
|
|
|
15
|
-
[
|
|
15
|
+
[auth]
|
|
16
|
+
sqlalchemy>=2.0.42
|
|
17
|
+
cryptography>=45.0.6
|
|
18
|
+
|
|
19
|
+
[mlearning]
|
|
16
20
|
pandas>=2.2.3
|
|
17
21
|
numpy>=2.0.2
|
|
18
22
|
matplotlib>=3.9.4
|
|
@@ -23,7 +27,3 @@ jupyter_client>=8.6.3
|
|
|
23
27
|
ipykernel>=6.29.5
|
|
24
28
|
statsmodels
|
|
25
29
|
ipython
|
|
26
|
-
|
|
27
|
-
[auth]
|
|
28
|
-
sqlalchemy>=2.0.42
|
|
29
|
-
cryptography>=45.0.6
|
|
@@ -8,7 +8,7 @@ with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name="syntaxmatrix",
|
|
11
|
-
version="2.0",
|
|
11
|
+
version="2.0.1",
|
|
12
12
|
author="Bob Nti",
|
|
13
13
|
author_email="bob.nti@syntaxmatrix.com",
|
|
14
14
|
description="SyntaxMUI: A customizable framework for Python AI Assistant Projects.",
|
|
@@ -39,7 +39,7 @@ setup(
|
|
|
39
39
|
|
|
40
40
|
],
|
|
41
41
|
extras_require={
|
|
42
|
-
"
|
|
42
|
+
"mlearning": [
|
|
43
43
|
"pandas>=2.2.3",
|
|
44
44
|
"numpy>=2.0.2",
|
|
45
45
|
"matplotlib>=3.9.4",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
from .core import SyntaxMUI
|
|
2
|
+
|
|
3
|
+
_app_instance = SyntaxMUI()
|
|
4
|
+
|
|
5
|
+
run = _app_instance.run
|
|
6
|
+
text_input = _app_instance.text_input
|
|
7
|
+
button = _app_instance.button
|
|
8
|
+
file_uploader = _app_instance.file_uploader
|
|
9
|
+
set_ui_mode = _app_instance.set_ui_mode
|
|
10
|
+
set_theme = _app_instance.set_theme
|
|
11
|
+
enable_theme_toggle = _app_instance.enable_theme_toggle
|
|
12
|
+
disable_theme_toggle = _app_instance.disable_theme_toggle
|
|
13
|
+
get_text_input_value = _app_instance.get_text_input_value
|
|
14
|
+
clear_text_input_value = _app_instance.clear_text_input_value
|
|
15
|
+
get_file_upload_value = _app_instance.get_file_upload_value
|
|
16
|
+
get_chat_history = _app_instance.get_chat_history
|
|
17
|
+
set_chat_history = _app_instance.set_chat_history
|
|
18
|
+
clear_chat_history = _app_instance.clear_chat_history
|
|
19
|
+
write = _app_instance.write
|
|
20
|
+
markdown = _app_instance.markdown
|
|
21
|
+
latex = _app_instance.latex
|
|
22
|
+
error = _app_instance.error
|
|
23
|
+
success = _app_instance.success
|
|
24
|
+
info = _app_instance.info
|
|
25
|
+
warning = _app_instance.warning
|
|
26
|
+
# plt_plot = _app_instance.plt_plot
|
|
27
|
+
# plotly_plot = _app_instance.plotly_plot
|
|
28
|
+
|
|
29
|
+
set_user_icon = _app_instance.set_user_icon
|
|
30
|
+
set_bot_icon = _app_instance.set_bot_icon
|
|
31
|
+
set_favicon = _app_instance.set_favicon
|
|
32
|
+
set_project_title = _app_instance.set_project_title
|
|
33
|
+
set_site_title = _app_instance.set_site_title
|
|
34
|
+
set_site_logo = _app_instance.set_site_logo
|
|
35
|
+
list_ui_modes = _app_instance.list_ui_modes
|
|
36
|
+
list_themes = _app_instance.list_themes
|
|
37
|
+
load_sys_chunks = _app_instance.load_sys_chunks
|
|
38
|
+
|
|
39
|
+
get_session_id = _app_instance.get_session_id
|
|
40
|
+
add_user_chunks = _app_instance.add_user_chunks
|
|
41
|
+
get_user_chunks = _app_instance.get_user_chunks
|
|
42
|
+
clear_user_chunks = _app_instance.clear_user_chunks
|
|
43
|
+
stream_write = _app_instance.stream_write
|
|
44
|
+
set_plottings = _app_instance.set_plottings
|
|
45
|
+
dropdown = _app_instance.dropdown
|
|
46
|
+
get_widget_value = _app_instance.get_widget_value
|
|
47
|
+
|
|
48
|
+
save_embed_model = _app_instance.save_embed_model
|
|
49
|
+
load_embed_model = _app_instance.load_embed_model
|
|
50
|
+
delete_embed_key = _app_instance.delete_embed_key
|
|
51
|
+
set_prompt_profile = _app_instance.set_prompt_profile
|
|
52
|
+
set_prompt_instructions = _app_instance.set_prompt_instructions
|
|
53
|
+
set_website_description = _app_instance.set_website_description
|
|
54
|
+
smiv_index = _app_instance.smiv_index
|
|
55
|
+
smpv_search = _app_instance.smpv_search
|
|
56
|
+
process_query = _app_instance.process_query
|
|
57
|
+
embed_query = _app_instance.embed_query
|
|
58
|
+
|
|
59
|
+
app = _app_instance.app
|