notebookvb
This commit is contained in:
@@ -4,8 +4,12 @@ import pymysql
|
|||||||
|
|
||||||
|
|
||||||
def _print(msg):
|
def _print(msg):
|
||||||
print(msg, file=sys.stdout, flush=True) if sys.stdout.encoding and sys.stdout.encoding.lower() in ("utf-8", "utf8") \
|
# Diagnostika jde na stderr — stdout je u MCP serverů vyhrazen pro JSON-RPC.
|
||||||
else print(msg.encode("utf-8", errors="replace").decode("ascii", errors="replace"), flush=True)
|
if sys.stderr.encoding and sys.stderr.encoding.lower() in ("utf-8", "utf8"):
|
||||||
|
print(msg, file=sys.stderr, flush=True)
|
||||||
|
else:
|
||||||
|
print(msg.encode("utf-8", errors="replace").decode("ascii", errors="replace"),
|
||||||
|
file=sys.stderr, flush=True)
|
||||||
|
|
||||||
_LOCAL_HOSTS = {"lekar", "sestra", "lenovo"}
|
_LOCAL_HOSTS = {"lekar", "sestra", "lenovo"}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
from requests_pkcs12 import Pkcs12Adapter
|
from requests_pkcs12 import Pkcs12Adapter
|
||||||
import requests
|
import requests
|
||||||
|
import sys
|
||||||
import uuid
|
import uuid
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
||||||
@@ -108,14 +109,14 @@ class VZPB2BClient:
|
|||||||
|
|
||||||
headers = {"Content-Type": "text/xml; charset=utf-8"}
|
headers = {"Content-Type": "text/xml; charset=utf-8"}
|
||||||
|
|
||||||
print(f"Calling: {endpoint}")
|
print(f"Calling: {endpoint}", file=sys.stderr, flush=True)
|
||||||
response = self.session.post(
|
response = self.session.post(
|
||||||
endpoint,
|
endpoint,
|
||||||
data=soap.encode("utf-8"),
|
data=soap.encode("utf-8"),
|
||||||
headers=headers,
|
headers=headers,
|
||||||
timeout=30
|
timeout=30
|
||||||
)
|
)
|
||||||
print("HTTP:", response.status_code)
|
print("HTTP:", response.status_code, file=sys.stderr, flush=True)
|
||||||
return response.text
|
return response.text
|
||||||
|
|
||||||
def stav_pojisteni(self, rc: str, k_datu: str = None, prijmeni: str = None):
|
def stav_pojisteni(self, rc: str, k_datu: str = None, prijmeni: str = None):
|
||||||
@@ -156,10 +157,10 @@ class VZPB2BClient:
|
|||||||
"SOAPAction": "process"
|
"SOAPAction": "process"
|
||||||
}
|
}
|
||||||
|
|
||||||
print(f"Calling: {endpoint}")
|
print(f"Calling: {endpoint}", file=sys.stderr, flush=True)
|
||||||
resp = self.session.post(endpoint, data=soap.encode("utf-8"),
|
resp = self.session.post(endpoint, data=soap.encode("utf-8"),
|
||||||
headers=headers, timeout=30)
|
headers=headers, timeout=30)
|
||||||
print("HTTP:", resp.status_code)
|
print("HTTP:", resp.status_code, file=sys.stderr, flush=True)
|
||||||
return resp.text
|
return resp.text
|
||||||
|
|
||||||
def registrace_lekare(self, rc: str, k_datu: str = None,
|
def registrace_lekare(self, rc: str, k_datu: str = None,
|
||||||
|
|||||||
Binary file not shown.
@@ -18,6 +18,12 @@
|
|||||||
"U:\\ordinaceprojekt\\mcp_medevio_mysql.py"
|
"U:\\ordinaceprojekt\\mcp_medevio_mysql.py"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"insurance": {
|
||||||
|
"command": "python",
|
||||||
|
"args": [
|
||||||
|
"U:\\ordinaceprojekt\\mcp_insurance.py"
|
||||||
|
]
|
||||||
|
},
|
||||||
"janssen-mongo": {
|
"janssen-mongo": {
|
||||||
"command": "python",
|
"command": "python",
|
||||||
"args": [
|
"args": [
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ beautifulsoup4
|
|||||||
blake3
|
blake3
|
||||||
cryptography
|
cryptography
|
||||||
customtkinter
|
customtkinter
|
||||||
|
dropbox
|
||||||
extract-msg
|
extract-msg
|
||||||
fdb
|
fdb
|
||||||
firebirdsql
|
firebirdsql
|
||||||
@@ -13,6 +14,7 @@ mcp
|
|||||||
msal
|
msal
|
||||||
mysql-connector-python
|
mysql-connector-python
|
||||||
numpy
|
numpy
|
||||||
|
openai
|
||||||
openpyxl
|
openpyxl
|
||||||
pandas
|
pandas
|
||||||
pdf2image
|
pdf2image
|
||||||
@@ -20,8 +22,10 @@ pikepdf
|
|||||||
Pillow
|
Pillow
|
||||||
playwright
|
playwright
|
||||||
psutil
|
psutil
|
||||||
|
psycopg[binary]
|
||||||
pyodbc
|
pyodbc
|
||||||
PyMuPDF
|
PyMuPDF
|
||||||
|
pymongo
|
||||||
pypdf
|
pypdf
|
||||||
PyPDF2
|
PyPDF2
|
||||||
python-dateutil
|
python-dateutil
|
||||||
@@ -31,6 +35,9 @@ qrcode
|
|||||||
reportlab
|
reportlab
|
||||||
requests
|
requests
|
||||||
requests-pkcs12
|
requests-pkcs12
|
||||||
|
screeninfo
|
||||||
|
telethon
|
||||||
|
tqdm
|
||||||
weasyprint
|
weasyprint
|
||||||
xlwings
|
xlwings
|
||||||
zeep
|
zeep
|
||||||
|
|||||||
Reference in New Issue
Block a user