v1.0 - Version stable: multi-PC, détection UI-DETR-1, 3 modes exécution
- Frontend v4 accessible sur réseau local (192.168.1.40) - Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard) - Ollama GPU fonctionnel - Self-healing interactif - Dashboard confiance Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
59
test_server_env.py
Normal file
59
test_server_env.py
Normal file
@@ -0,0 +1,59 @@
|
||||
)exc(back.print_ce tra
|
||||
traceback import
|
||||
")e}r: {(f"❌ Erreu
|
||||
prints e:Exception a
|
||||
except e}")
|
||||
: {ken invalide"❌ Tofprint(
|
||||
s e:xception aept E exc")
|
||||
ole}ken_info.r {token valide:t(f"✓ Toin pr)
|
||||
n(test_tokenidate_tokealnager.vtoken_maen_info = tok y:
|
||||
tr
|
||||
")6]}...token[:1ken: {test_lidation to\nTest vant(f" pri ken:
|
||||
if test_to')
|
||||
DMINKEN_A.get('RPA_TO os.environtoken =t_
|
||||
tesene toktrvec noation ater la valid
|
||||
# Tes)
|
||||
:16]}..."}: {token[{i+1ken ead-only to(f" R print:3]):
|
||||
tokens)[only_anager.read_oken_m(list(tatenumern e i, token i for
|
||||
.")
|
||||
6]}.. {token[:1{i+1}:ken Admin tont(f" pri]):
|
||||
ns)[:3min_token_manager.adokeist(tate(lmerenui, token in or ens
|
||||
fes des tokers caractèrremiher les pAffic #
|
||||
")
|
||||
}s)_only_tokener.readken_managly: {len(tons read-on"Tokerint(f p
|
||||
")tokens)}n_.admiagertoken_manlen(dmin: {(f"Tokens a
|
||||
print nager()
|
||||
get_token_mar = ken_manage)
|
||||
tos ==="okende tdu système Test n=== \rint("
|
||||
pnager
|
||||
maget_token_ import pi_tokensrity.aore.secuom c
|
||||
fr
|
||||
try: de tokenssystèmeter le t))
|
||||
|
||||
# Tes).paren_file__ath(_str(P(0, .path.insertau path
|
||||
sysrent re parépertoi le jouter Aocal()
|
||||
|
||||
#ad_env_ls
|
||||
los variableer lerg Cha)
|
||||
|
||||
#8:]}"p()[-.{value.stri}.. * 8p()}={'*'ristkey.rint(f" { p trip()
|
||||
] = value.skey.strip()viron[ os.en
|
||||
plit('=', 1) line.slue =y, va ke :
|
||||
ne=' in li#') and 'th('ne.startswilind not line a if strip()
|
||||
line = line. :
|
||||
r line in f fof:
|
||||
s ) a, 'r'pathth open(env_
|
||||
wi_path}"){envnt de (f"Chargeme print:
|
||||
.exists()env_path if ocal")
|
||||
v.l".enth(path = Panv_ elocal():
|
||||
oad_env_ef ltement
|
||||
dcical explinv.lo Charger .et Path
|
||||
|
||||
#orathlib impom p
|
||||
fr
|
||||
import sysport os"
|
||||
|
||||
imt.
|
||||
""ronnemenviles d'eniabien les vareur charge bque le servvérifier est pour
|
||||
"""
|
||||
Tn3thoin/env py#!/usr/b
|
||||
Reference in New Issue
Block a user