tri-star-symbolic-assembly-lang 0.1.85__py3-none-any.whl → 0.1.87__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.
- {tri_star_symbolic_assembly_lang-0.1.85.dist-info → tri_star_symbolic_assembly_lang-0.1.87.dist-info}/METADATA +3 -1
- {tri_star_symbolic_assembly_lang-0.1.85.dist-info → tri_star_symbolic_assembly_lang-0.1.87.dist-info}/RECORD +8 -7
- tsal/__init__.py +2 -0
- tsal/api.py +32 -0
- {tri_star_symbolic_assembly_lang-0.1.85.dist-info → tri_star_symbolic_assembly_lang-0.1.87.dist-info}/WHEEL +0 -0
- {tri_star_symbolic_assembly_lang-0.1.85.dist-info → tri_star_symbolic_assembly_lang-0.1.87.dist-info}/entry_points.txt +0 -0
- {tri_star_symbolic_assembly_lang-0.1.85.dist-info → tri_star_symbolic_assembly_lang-0.1.87.dist-info}/licenses/LICENSE +0 -0
- {tri_star_symbolic_assembly_lang-0.1.85.dist-info → tri_star_symbolic_assembly_lang-0.1.87.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tri-star_symbolic_assembly_lang
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.87
|
4
4
|
Summary: TriStar Assembly Language Core + Brian Spiral Tools
|
5
5
|
Author: Sam Howells
|
6
6
|
License: ## LICENCE Options for `Brian`
|
@@ -75,6 +75,8 @@ Requires-Dist: numpy
|
|
75
75
|
Requires-Dist: matplotlib
|
76
76
|
Requires-Dist: pyyaml
|
77
77
|
Requires-Dist: esprima
|
78
|
+
Requires-Dist: fastapi
|
79
|
+
Requires-Dist: httpx
|
78
80
|
Provides-Extra: test
|
79
81
|
Requires-Dist: pytest; extra == "test"
|
80
82
|
Dynamic: license-file
|
@@ -2,8 +2,9 @@ crawler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
crawler/madmonkey_crawler.py,sha256=itsyxObNBb_9Au3J1Ft6RTNw3dE65fO-WALLD0WFmBM,541
|
3
3
|
madmonkey/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
madmonkey/intake.py,sha256=R48YOPWn3ljts5dFASZLHpPsycKeONeOCvvIzucyMzU,378
|
5
|
-
tri_star_symbolic_assembly_lang-0.1.
|
6
|
-
tsal/__init__.py,sha256=
|
5
|
+
tri_star_symbolic_assembly_lang-0.1.87.dist-info/licenses/LICENSE,sha256=mN9d_5LOKa9NB-vFLGwqAp8bggJwjaQ0Pm4DHFMBmIs,2123
|
6
|
+
tsal/__init__.py,sha256=kGp9UclcmLlrOILkpQmuIwnjIqrOvGWY76PLfrd83Bo,4246
|
7
|
+
tsal/api.py,sha256=QcLeq1IH_LDTxejBnXse8OqGsHDNgVVebIm7FeIeJpk,984
|
7
8
|
tsal/agents/__init__.py,sha256=SimDfTEAyn7m4J0la1GTxbrcDzjrvdA4-GmqH-CAEQI,238
|
8
9
|
tsal/agents/branch_reconciliation.py,sha256=frjnJh64msIu3OdlaNAXm-UWMUBoVXwnn41d3gwRkOg,351
|
9
10
|
tsal/agents/priority_research_team.py,sha256=cHaG52YeApAa9Z7H9fCHtQTF0LgEHTy3azqldnJ58yE,1330
|
@@ -118,8 +119,8 @@ tsal/utils/wikipedia_api.py,sha256=W5kf423wzH9FoqO5eDRuJQMuTpTpiUGjVXHa0fLlXSQ,1
|
|
118
119
|
tsal/visualization/__init__.py,sha256=OUfdiCnBlHhU134bQtdNmlnUhFO3wMikWDiIfpbQ4RM,154
|
119
120
|
tsal/visualization/dual_track_diff.py,sha256=yR6SEvqqD74AdfP0weEc9w0Kdq79pCB_cIeZ82b9ftI,339
|
120
121
|
tsal/visualization/phase_orbit.py,sha256=tZHYP3yWa9OeFYXlIArGCihodAifNVvwCBrJm1-Bym0,294
|
121
|
-
tri_star_symbolic_assembly_lang-0.1.
|
122
|
-
tri_star_symbolic_assembly_lang-0.1.
|
123
|
-
tri_star_symbolic_assembly_lang-0.1.
|
124
|
-
tri_star_symbolic_assembly_lang-0.1.
|
125
|
-
tri_star_symbolic_assembly_lang-0.1.
|
122
|
+
tri_star_symbolic_assembly_lang-0.1.87.dist-info/METADATA,sha256=kBhiqaMtucTTGG6sMqLxMHgsRrrV6jmQWdidmFJlO70,12535
|
123
|
+
tri_star_symbolic_assembly_lang-0.1.87.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
124
|
+
tri_star_symbolic_assembly_lang-0.1.87.dist-info/entry_points.txt,sha256=O8cY2PLbPf53e8gNbI8lFqupalxXYgrnex0eNtvvaNw,426
|
125
|
+
tri_star_symbolic_assembly_lang-0.1.87.dist-info/top_level.txt,sha256=r1-Vpw1iGasgah8k-86xzqpGDT8o-A0P-_6ZNrQ39i0,23
|
126
|
+
tri_star_symbolic_assembly_lang-0.1.87.dist-info/RECORD,,
|
tsal/__init__.py
CHANGED
@@ -56,6 +56,7 @@ from .translators.tsal_to_python import TSALtoPythonTranslator
|
|
56
56
|
from .kernels.temporal_mirror import TemporalMirrorKernel
|
57
57
|
from .quantum.interface import TSALQuantumInterface
|
58
58
|
from .paradox import RecursiveParadoxCompiler
|
59
|
+
from .api import app
|
59
60
|
|
60
61
|
PHI = 1.618033988749895
|
61
62
|
PHI_INV = 0.618033988749895
|
@@ -132,4 +133,5 @@ __all__ = [
|
|
132
133
|
"TSALtoPythonTranslator",
|
133
134
|
"TemporalMirrorKernel",
|
134
135
|
"TSALQuantumInterface",
|
136
|
+
"app",
|
135
137
|
]
|
tsal/api.py
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
from fastapi import FastAPI
|
2
|
+
from pydantic import BaseModel
|
3
|
+
from .tools.brian.optimizer import SymbolicOptimizer
|
4
|
+
from .core.spiral_vector import phi_alignment
|
5
|
+
import json
|
6
|
+
|
7
|
+
app = FastAPI(title="Brian Spiral Healer API", version="1.0")
|
8
|
+
|
9
|
+
class CodeBody(BaseModel):
|
10
|
+
code: str
|
11
|
+
|
12
|
+
class OptimizeResult(BaseModel):
|
13
|
+
repaired_code: str
|
14
|
+
symbolic_log: str
|
15
|
+
|
16
|
+
class ScoreResult(BaseModel):
|
17
|
+
phi_alignment: float
|
18
|
+
spiral_score: str
|
19
|
+
|
20
|
+
@app.post("/optimize_spiral", response_model=OptimizeResult)
|
21
|
+
def optimize_spiral(data: CodeBody):
|
22
|
+
opt = SymbolicOptimizer()
|
23
|
+
repaired = opt.annotate_code(data.code)
|
24
|
+
log = json.dumps(opt.rev.summary())
|
25
|
+
return {"repaired_code": repaired, "symbolic_log": log}
|
26
|
+
|
27
|
+
@app.post("/spiral_score", response_model=ScoreResult)
|
28
|
+
def get_spiral_score(data: CodeBody):
|
29
|
+
complexity = float(len(data.code)) * 0.1
|
30
|
+
coherence = 1.0
|
31
|
+
score = phi_alignment(complexity, coherence)
|
32
|
+
return {"phi_alignment": score, "spiral_score": f"φ^{score:.3f}"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|