-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.py
41 lines (27 loc) · 808 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import asyncio
import aiohttp
# from . import configEpicorSchemas
import PythonEpicorRestAPI.Erp_BO_JobEntrySvc
import json
import os
import base64
import asyncio
import aiohttp
import pprint
import urllib.parse
import datetime
async def main():
obj = await PythonEpicorRestAPI.Erp_BO_JobEntrySvc.get_JobEntries()
for key,value in obj.items():
print(key)
print(type(value))
pprint.pprint(obj["value"][0])
for each in obj["value"]:
# print(type(each))
a = PythonEpicorRestAPI.Erp_BO_JobEntrySvc.Erp_Tablesets_JobHeadRow(each)
start = datetime.datetime.now()
print("StartTime : ", start)
asyncio.run(main())
end = datetime.datetime.now()
timediff = end-start
print("timetake = ",(timediff))