pro-craft 0.1.19__tar.gz → 0.1.20__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.

Potentially problematic release.


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

Files changed (28) hide show
  1. {pro_craft-0.1.19 → pro_craft-0.1.20}/PKG-INFO +1 -1
  2. {pro_craft-0.1.19 → pro_craft-0.1.20}/pyproject.toml +1 -1
  3. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/prompt_craft/async_.py +30 -1
  4. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/server/router/prompt.py +1 -1
  5. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft.egg-info/PKG-INFO +1 -1
  6. {pro_craft-0.1.19 → pro_craft-0.1.20}/README.md +0 -0
  7. {pro_craft-0.1.19 → pro_craft-0.1.20}/setup.cfg +0 -0
  8. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/__init__.py +0 -0
  9. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/code_helper/coder.py +0 -0
  10. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/code_helper/designer.py +0 -0
  11. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/database.py +0 -0
  12. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/file_manager.py +0 -0
  13. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/log.py +0 -0
  14. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/prompt_craft/__init__.py +0 -0
  15. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/prompt_craft/evals.py +0 -0
  16. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/prompt_craft/new.py +0 -0
  17. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/prompt_craft/sync.py +0 -0
  18. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/server/mcp/__init__.py +0 -0
  19. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/server/mcp/prompt.py +0 -0
  20. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/server/router/__init__.py +0 -0
  21. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft/utils.py +0 -0
  22. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft.egg-info/SOURCES.txt +0 -0
  23. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft.egg-info/dependency_links.txt +0 -0
  24. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft.egg-info/requires.txt +0 -0
  25. {pro_craft-0.1.19 → pro_craft-0.1.20}/src/pro_craft.egg-info/top_level.txt +0 -0
  26. {pro_craft-0.1.19 → pro_craft-0.1.20}/tests/test22.py +0 -0
  27. {pro_craft-0.1.19 → pro_craft-0.1.20}/tests/test_coder.py +0 -0
  28. {pro_craft-0.1.19 → pro_craft-0.1.20}/tests/test_designer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pro-craft
3
- Version: 0.1.19
3
+ Version: 0.1.20
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pro-craft"
3
- version = "0.1.19"
3
+ version = "0.1.20"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -14,7 +14,7 @@ from sqlalchemy import select, delete # 导入 select, delete 用于异步操作
14
14
  import inspect
15
15
  from datetime import datetime
16
16
  from pro_craft.utils import extract_
17
-
17
+ import asyncio
18
18
  import re
19
19
 
20
20
  from sqlalchemy import select, desc
@@ -621,6 +621,35 @@ class AsyncIntel():
621
621
 
622
622
  return ai_result
623
623
 
624
+ async def intellect_remove_formats(self,
625
+ input_datas: list[dict | str],
626
+ OutputFormat: object,
627
+ prompt_id: str,
628
+ ExtraFormats: list[object] = [],
629
+ version: str = None,
630
+ inference_save_case = True,
631
+ ):
632
+
633
+ async with create_async_session(self.engine) as session:
634
+ prompt_result = await self.get_prompts_from_sql(prompt_id=prompt_id,
635
+ session=session)
636
+ if prompt_result.action_type != "inference":
637
+ input_datas = input_datas[:1]
638
+ tasks = []
639
+ for input_data in input_datas:
640
+ tasks.append(
641
+ self.intellect_remove_format(
642
+ input_data = input_data,
643
+ prompt_id = prompt_id,
644
+ OutputFormat = OutputFormat,
645
+ ExtraFormats = ExtraFormats,
646
+ version = version,
647
+ inference_save_case = inference_save_case,
648
+ )
649
+ )
650
+ results = await asyncio.gather(*tasks, return_exceptions=False)
651
+ return results
652
+
624
653
 
625
654
  def intellect_remove_warp(self,prompt_id: str):
626
655
  def outer_packing(func):
@@ -71,7 +71,7 @@ def create_router(database_url: str,
71
71
  demand = "",
72
72
  score = 61,
73
73
  session = session)
74
- return {"message": "success","result":result.version}
74
+ return {"message": "success"}
75
75
 
76
76
  return router
77
77
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pro-craft
3
- Version: 0.1.19
3
+ Version: 0.1.20
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes