itam-assistant 0.1.4__tar.gz → 0.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {itam_assistant-0.1.4 → itam_assistant-0.1.6}/PKG-INFO +2 -2
  2. {itam_assistant-0.1.4/it_assistant → itam_assistant-0.1.6/itam_assistant}/do_ai.py +14 -9
  3. {itam_assistant-0.1.4 → itam_assistant-0.1.6}/itam_assistant.egg-info/PKG-INFO +2 -2
  4. itam_assistant-0.1.6/itam_assistant.egg-info/SOURCES.txt +17 -0
  5. itam_assistant-0.1.6/itam_assistant.egg-info/top_level.txt +1 -0
  6. {itam_assistant-0.1.4 → itam_assistant-0.1.6}/setup.py +2 -2
  7. {itam_assistant-0.1.4 → itam_assistant-0.1.6}/test/test.py +2 -2
  8. itam_assistant-0.1.4/itam_assistant.egg-info/SOURCES.txt +0 -17
  9. itam_assistant-0.1.4/itam_assistant.egg-info/top_level.txt +0 -1
  10. {itam_assistant-0.1.4 → itam_assistant-0.1.6}/README.md +0 -0
  11. {itam_assistant-0.1.4/it_assistant → itam_assistant-0.1.6/itam_assistant}/__init__.py +0 -0
  12. {itam_assistant-0.1.4/it_assistant → itam_assistant-0.1.6/itam_assistant}/ailyapp_client.py +0 -0
  13. {itam_assistant-0.1.4/it_assistant → itam_assistant-0.1.6/itam_assistant}/config.py +0 -0
  14. {itam_assistant-0.1.4/it_assistant → itam_assistant-0.1.6/itam_assistant}/intent_detail.py +0 -0
  15. {itam_assistant-0.1.4/it_assistant → itam_assistant-0.1.6/itam_assistant}/lark_client.py +0 -0
  16. {itam_assistant-0.1.4/it_assistant → itam_assistant-0.1.6/itam_assistant}/logger.py +0 -0
  17. {itam_assistant-0.1.4/it_assistant → itam_assistant-0.1.6/itam_assistant}/openapi.py +0 -0
  18. {itam_assistant-0.1.4/it_assistant → itam_assistant-0.1.6/itam_assistant}/test.py +0 -0
  19. {itam_assistant-0.1.4 → itam_assistant-0.1.6}/itam_assistant.egg-info/dependency_links.txt +0 -0
  20. {itam_assistant-0.1.4 → itam_assistant-0.1.6}/itam_assistant.egg-info/requires.txt +0 -0
  21. {itam_assistant-0.1.4 → itam_assistant-0.1.6}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: itam_assistant
3
- Version: 0.1.4
4
- Summary: 优化版本
3
+ Version: 0.1.6
4
+ Summary: 优化版本--查询的数据列表
5
5
  Home-page: https://github.com/liujunmeiD/itam_assistant
6
6
  Author: liujunmeiD
7
7
  Author-email: 1105030421@qq.com
@@ -1,9 +1,9 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  import time
3
- from it_assistant.ailyapp_client import AilyLarkClient
4
- from it_assistant.lark_client import LarkdocsClient
5
- from it_assistant.intent_detail import *
6
- from it_assistant.openapi import *
3
+ from itam_assistant.ailyapp_client import AilyLarkClient
4
+ from itam_assistant.lark_client import LarkdocsClient
5
+ from itam_assistant.intent_detail import *
6
+ from itam_assistant.openapi import *
7
7
  import datetime
8
8
  import copy
9
9
  import os
@@ -20,10 +20,7 @@ def do_ai_auto(Testk_data, clientinfo):
20
20
  """
21
21
  startAt = 0
22
22
  try:
23
- # 获取租户访问令牌
24
- tenant_access_token = AilyLarkClient(clientinfo).get_tenant_access_token()
25
- if not tenant_access_token:
26
- raise ValueError("未能获取到有效的租户访问令牌")
23
+
27
24
  # 判断Testsuitelink中是否包含https://
28
25
  if "https://" in Testk_data:
29
26
 
@@ -48,6 +45,10 @@ def do_ai_auto(Testk_data, clientinfo):
48
45
  test = json.loads(test)
49
46
  userinput = test['data']['value_ranges'][0]['values']
50
47
  print(f"表头为{userinput[0]}")
48
+ # 获取租户访问令牌
49
+ tenant_access_token = AilyLarkClient(clientinfo).get_tenant_access_token()
50
+ if not tenant_access_token:
51
+ raise ValueError("未能获取到有效的租户访问令牌")
51
52
  for i in range(1, row_count):
52
53
  if userinput[i][0]:
53
54
  if startAt == 0:
@@ -76,6 +77,10 @@ def do_ai_auto(Testk_data, clientinfo):
76
77
  elif Testk_data[0].get('ext'):
77
78
  num = 0
78
79
  for i in Testk_data:
80
+ # 获取租户访问令牌
81
+ tenant_access_token = AilyLarkClient(clientinfo).get_tenant_access_token()
82
+ if not tenant_access_token:
83
+ raise ValueError("未能获取到有效的租户访问令牌")
79
84
  aa = i['ext']['input']
80
85
  if startAt == 0:
81
86
  startAt = int(time.time())
@@ -895,7 +900,7 @@ def write_excletolist(data_name):
895
900
  try:
896
901
  # 查看当前工作目录
897
902
  print(f"当前工作目录: {os.getcwd()}")
898
- # /Users/bytedance/it_assistant/it_assistant/accessory.csv
903
+ # /Users/bytedance/itam_assistant/itam_assistant/accessory.csv
899
904
  # 构建文件路径
900
905
  file_path = f'data/{data_name}.csv'
901
906
  Candidates = []
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: itam-assistant
3
- Version: 0.1.4
4
- Summary: 优化版本
3
+ Version: 0.1.6
4
+ Summary: 优化版本--查询的数据列表
5
5
  Home-page: https://github.com/liujunmeiD/itam_assistant
6
6
  Author: liujunmeiD
7
7
  Author-email: 1105030421@qq.com
@@ -0,0 +1,17 @@
1
+ README.md
2
+ setup.py
3
+ itam_assistant/__init__.py
4
+ itam_assistant/ailyapp_client.py
5
+ itam_assistant/config.py
6
+ itam_assistant/do_ai.py
7
+ itam_assistant/intent_detail.py
8
+ itam_assistant/lark_client.py
9
+ itam_assistant/logger.py
10
+ itam_assistant/openapi.py
11
+ itam_assistant/test.py
12
+ itam_assistant.egg-info/PKG-INFO
13
+ itam_assistant.egg-info/SOURCES.txt
14
+ itam_assistant.egg-info/dependency_links.txt
15
+ itam_assistant.egg-info/requires.txt
16
+ itam_assistant.egg-info/top_level.txt
17
+ test/test.py
@@ -0,0 +1 @@
1
+ itam_assistant
@@ -2,10 +2,10 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="itam_assistant", # 包名称
5
- version="0.1.4", # 版本号
5
+ version="0.1.6", # 版本号
6
6
  author="liujunmeiD",
7
7
  author_email="1105030421@qq.com",
8
- description="优化版本",
8
+ description="优化版本--查询的数据列表",
9
9
  long_description=open("README.md").read(),
10
10
  long_description_content_type="text/markdown",
11
11
  url="https://github.com/liujunmeiD/itam_assistant",
@@ -2,10 +2,10 @@
2
2
  import csv
3
3
  import json
4
4
  import copy
5
- from it_assistant.do_ai import do_ai_auto
5
+ from itam_assistant.do_ai import do_ai_auto
6
6
 
7
7
  # 假设 Testsuitelink 是一个有效的文档链接
8
- from it_assistant.openapi import get_query_vector
8
+ from itam_assistant.openapi import get_query_vector
9
9
 
10
10
  Testsuitelink = "your_testsuitelink_here"
11
11
 
@@ -1,17 +0,0 @@
1
- README.md
2
- setup.py
3
- it_assistant/__init__.py
4
- it_assistant/ailyapp_client.py
5
- it_assistant/config.py
6
- it_assistant/do_ai.py
7
- it_assistant/intent_detail.py
8
- it_assistant/lark_client.py
9
- it_assistant/logger.py
10
- it_assistant/openapi.py
11
- it_assistant/test.py
12
- itam_assistant.egg-info/PKG-INFO
13
- itam_assistant.egg-info/SOURCES.txt
14
- itam_assistant.egg-info/dependency_links.txt
15
- itam_assistant.egg-info/requires.txt
16
- itam_assistant.egg-info/top_level.txt
17
- test/test.py
@@ -1 +0,0 @@
1
- it_assistant
File without changes
File without changes