initial commit
This commit is contained in:
BIN
client/__pycache__/callSpec.cpython-313.pyc
Normal file
BIN
client/__pycache__/callSpec.cpython-313.pyc
Normal file
Binary file not shown.
8
client/callSpec.py
Normal file
8
client/callSpec.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from typing import Any, Dict
|
||||
|
||||
import pydantic
|
||||
|
||||
class CallPacket(pydantic.BaseModel):
|
||||
procedure: str
|
||||
simpleObjects: Dict[str, Any] = {}
|
||||
byteObjects: Dict[str, bytes] = {}
|
||||
9
client/main.py
Normal file
9
client/main.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import requests as req
|
||||
import callSpec
|
||||
|
||||
|
||||
testObj = callSpec.CallPacket(procedure="arstarst", simpleObjects={"arst":"qwfpp"})
|
||||
print(testObj.model_dump_json())
|
||||
x=req.post("http://127.0.0.1:7732/cliReq", json=testObj.model_dump())
|
||||
print(x.status_code)
|
||||
print(x.text)
|
||||
Reference in New Issue
Block a user