Files
KPK/Milan_cenik.py
T
2026-06-23 15:20:56 +02:00

29 lines
611 B
Python

import tst_data
import api_call
from pydantic import SecretStr
cenik=tst_data.create_tst_cenik("01")
for p in cenik.cenpol:
for pos in p.pos_pc:
print(p.d_name, pos.page, pos.line, pos.col)
def get_ctx():
ctx = api_call.ApiContext(
user="Alto",
base_url="http://127.0.0.1:8000",
refresh_url="http://127.0.0.1:8000",
client_id="99",
id_kas="01",
username="Kobrle",
password=SecretStr("heslo"),
)
return ctx
ctx = get_ctx()
api_call.login_API(ctx)
setup = api_call.load_setup_API(ctx)
api_call.debugrepl_cenik_API(ctx)