pro-craft 0.1.27__py3-none-any.whl → 0.1.28__py3-none-any.whl

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.

Potentially problematic release.


This version of pro-craft might be problematic. Click here for more details.

@@ -159,7 +159,6 @@ class AsyncIntel():
159
159
  pool_pre_ping=True, # 使用前检查连接活性
160
160
  pool_timeout=30 # 等待连接池中连接的最长时间(秒)
161
161
  )
162
- self.create_specific_database(self.engine,["ai_prompts","ai_usecase"])
163
162
 
164
163
  if model_name in ["gemini-2.5-flash-preview-05-20-nothinking",]:
165
164
  self.llm = BianXieAdapter(model_name = model_name)
@@ -169,8 +168,9 @@ class AsyncIntel():
169
168
  print('Use BianXieAdapter')
170
169
  self.llm = BianXieAdapter()
171
170
 
172
- async def create_specific_database(self,engine, tables_to_create_names: list[str]):
173
- async with engine.begin() as conn:
171
+ async def create_specific_database(self):
172
+ tables_to_create_names = ["ai_prompts","ai_usecase"]
173
+ async with self.engine.begin() as conn:
174
174
  # 从 metadata 中获取对应的 Table 对象
175
175
  specific_database_objects = []
176
176
  for table_name in tables_to_create_names:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pro-craft
3
- Version: 0.1.27
3
+ Version: 0.1.28
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -6,14 +6,14 @@ pro_craft/utils.py,sha256=R1DFkS4dsm5dIhg8lLTgBBvItvIYyyojROdh-ykqiYk,5250
6
6
  pro_craft/code_helper/coder.py,sha256=L6pRQr0pYRIHrMFZ4-pO_tZf1koxgGgF3L7Vl-GIyjM,24687
7
7
  pro_craft/code_helper/designer.py,sha256=3gyCqrjcw61sHzDjUPKhL1LOAE8xWLLbNT8NlK2mFLc,4739
8
8
  pro_craft/prompt_craft/__init__.py,sha256=83ruWO1Oci-DWvdVhPqcQrgdZTNfbmK72VQCkWASk7A,80
9
- pro_craft/prompt_craft/async_.py,sha256=j_Jy-TNhfFehMT80kOCLelaICU-Ns3OOrPEn4s18Z8k,43846
9
+ pro_craft/prompt_craft/async_.py,sha256=AAN-ikregIYz5ThHmvCuRha8k4W_mAvcCO3ZM-zSg-w,43791
10
10
  pro_craft/prompt_craft/new.py,sha256=ULjGGl95vmHrOs7XECJGlaqj1NE9BypE5WnFYhGugRY,25903
11
11
  pro_craft/prompt_craft/sync.py,sha256=w-zXC9_yVxgvnotimcs2POEXaHWD6ibspdPwWL9zqXk,26178
12
12
  pro_craft/server/mcp/__init__.py,sha256=4dbl-lFcm0r2tkOP04OxqiZG2jR-rqF181qi2AfU6UA,123
13
13
  pro_craft/server/mcp/prompt.py,sha256=OZrsyUfSQMOY_KX7dWthW209adz5JfELsQ0ODfuQR44,1245
14
14
  pro_craft/server/router/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  pro_craft/server/router/prompt.py,sha256=Wa4FfYRL6oeyA3F-79pmPeIH0Vo8wSEv7RH1lP6jXck,2907
16
- pro_craft-0.1.27.dist-info/METADATA,sha256=maDxzIKWmnOpPvjg24-cqnNSOJrAEalQRybw4QHpF0A,1689
17
- pro_craft-0.1.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- pro_craft-0.1.27.dist-info/top_level.txt,sha256=yqYDHArnYMWpeCxkmGRwlL6sJtxiOUnYylLDx9EOgFg,10
19
- pro_craft-0.1.27.dist-info/RECORD,,
16
+ pro_craft-0.1.28.dist-info/METADATA,sha256=xcJyGVIPA2e7CU4sOcM2PQIpsc4esvg4GeSDxj-eVvY,1689
17
+ pro_craft-0.1.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ pro_craft-0.1.28.dist-info/top_level.txt,sha256=yqYDHArnYMWpeCxkmGRwlL6sJtxiOUnYylLDx9EOgFg,10
19
+ pro_craft-0.1.28.dist-info/RECORD,,