pro-craft 0.1.3__py3-none-any.whl → 0.1.5__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.
- pro_craft/code_helper/coder.py +3 -3
- pro_craft/evals.py +1 -1
- pro_craft/file_manager.py +6 -6
- pro_craft/prompt_helper.py +5 -5
- pro_craft/prompt_helper_async.py +5 -5
- pro_craft/utils.py +1 -1
- {pro_craft-0.1.3.dist-info → pro_craft-0.1.5.dist-info}/METADATA +4 -1
- {pro_craft-0.1.3.dist-info → pro_craft-0.1.5.dist-info}/RECORD +10 -11
- pro_craft/core.py +0 -0
- {pro_craft-0.1.3.dist-info → pro_craft-0.1.5.dist-info}/WHEEL +0 -0
- {pro_craft-0.1.3.dist-info → pro_craft-0.1.5.dist-info}/top_level.txt +0 -0
pro_craft/code_helper/coder.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
1
|
+
from pro_craft.prompt_helper import Intel,IntellectType
|
|
2
|
+
from pro_craft.log import Log
|
|
3
|
+
from pro_craft.utils import extract_
|
|
4
4
|
from typing import List, Dict, Any
|
|
5
5
|
from llmada.core import BianXieAdapter
|
|
6
6
|
import re
|
pro_craft/evals.py
CHANGED
pro_craft/file_manager.py
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
from db_help.qdrant import QdrantManager
|
|
3
3
|
from pydantic import BaseModel
|
|
4
4
|
from datetime import datetime
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
5
|
+
from pro_craft.utils import get_adler32_hash, embedding_inputs
|
|
6
|
+
from pro_craft.prompt_helper import Intel, IntellectType
|
|
7
|
+
from pro_craft.utils import extract_
|
|
8
8
|
from enum import Enum
|
|
9
9
|
import json
|
|
10
10
|
|
|
11
|
-
from
|
|
11
|
+
from pro_craft.database import Base, Prompt
|
|
12
12
|
from sqlalchemy import create_engine, Column, Integer, String
|
|
13
13
|
from sqlalchemy.orm import sessionmaker, declarative_base
|
|
14
|
-
from
|
|
15
|
-
from
|
|
14
|
+
from pro_craft.utils import create_session
|
|
15
|
+
from pro_craft.database import Content
|
|
16
16
|
|
|
17
17
|
import os
|
|
18
18
|
intel = Intel(database_url = os.getenv("database_url"))
|
pro_craft/prompt_helper.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# 测试1
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
3
|
+
from pro_craft.utils import extract_
|
|
4
|
+
from pro_craft.log import Log
|
|
5
|
+
from pro_craft.database import Prompt, UseCase, PromptBase
|
|
6
|
+
from pro_craft.utils import create_session, create_async_session
|
|
7
7
|
from llmada.core import BianXieAdapter, ArkAdapter
|
|
8
8
|
from datetime import datetime
|
|
9
9
|
from enum import Enum
|
|
@@ -11,7 +11,7 @@ import functools
|
|
|
11
11
|
import json
|
|
12
12
|
import os
|
|
13
13
|
from sqlalchemy import create_engine
|
|
14
|
-
from
|
|
14
|
+
from pro_craft.database import SyncMetadata
|
|
15
15
|
import inspect
|
|
16
16
|
from pydantic import BaseModel, Field, ValidationError, field_validator
|
|
17
17
|
from datetime import datetime, timedelta
|
pro_craft/prompt_helper_async.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 测试1
|
|
2
|
-
from
|
|
3
|
-
from
|
|
2
|
+
from pro_craft.utils import extract_
|
|
3
|
+
from pro_craft.log import Log
|
|
4
4
|
from llmada.core import BianXieAdapter, ArkAdapter
|
|
5
5
|
from datetime import datetime
|
|
6
6
|
from enum import Enum
|
|
@@ -8,10 +8,10 @@ import functools
|
|
|
8
8
|
import json
|
|
9
9
|
import os
|
|
10
10
|
from llama_index.core import PromptTemplate
|
|
11
|
-
from
|
|
11
|
+
from pro_craft.database import Prompt, UseCase, PromptBase
|
|
12
12
|
from sqlalchemy import create_engine, Column, Integer, String
|
|
13
13
|
from sqlalchemy.orm import sessionmaker, declarative_base
|
|
14
|
-
from
|
|
14
|
+
from pro_craft.utils import create_session, create_async_session
|
|
15
15
|
from contextlib import contextmanager
|
|
16
16
|
from sqlalchemy import create_engine, Column, Integer, String, UniqueConstraint
|
|
17
17
|
from sqlalchemy.orm import declarative_base, sessionmaker
|
|
@@ -20,7 +20,7 @@ from sqlalchemy import select, delete # 导入 select, delete 用于异步操作
|
|
|
20
20
|
import inspect
|
|
21
21
|
from pydantic import BaseModel, Field, ValidationError, field_validator
|
|
22
22
|
from datetime import datetime
|
|
23
|
-
from
|
|
23
|
+
from pro_craft.utils import extract_
|
|
24
24
|
logger = Log.logger
|
|
25
25
|
editing_log = logger.debug
|
|
26
26
|
|
pro_craft/utils.py
CHANGED
|
@@ -3,7 +3,7 @@ Author: 823042332@qq.com 823042332@qq.com
|
|
|
3
3
|
Date: 2025-08-28 09:07:54
|
|
4
4
|
LastEditors: 823042332@qq.com 823042332@qq.com
|
|
5
5
|
LastEditTime: 2025-08-28 09:30:32
|
|
6
|
-
FilePath: /
|
|
6
|
+
FilePath: /pro_craft/src/pro_craft/unit.py
|
|
7
7
|
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
'''
|
|
9
9
|
import re
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pro-craft
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Add your description here
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
7
7
|
Requires-Dist: anyio>=4.11.0
|
|
8
|
+
Requires-Dist: db-help>=0.2.2
|
|
8
9
|
Requires-Dist: fastapi>=0.119.0
|
|
10
|
+
Requires-Dist: llmada>=1.1.11
|
|
9
11
|
Requires-Dist: pytest>=8.4.2
|
|
10
12
|
Requires-Dist: pytest-asyncio>=1.2.0
|
|
11
13
|
Requires-Dist: pytest-tornasync>=0.6.0.post2
|
|
14
|
+
Requires-Dist: pyyaml>=6.0.3
|
|
12
15
|
Requires-Dist: toml>=0.10.2
|
|
13
16
|
Requires-Dist: utils-tool==0.1.3
|
|
14
17
|
Requires-Dist: uvicorn>=0.38.0
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
pro_craft/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
pro_craft/core.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
2
|
pro_craft/database.py,sha256=5dV-h9dVaS6euHLCtf0gYfq2pchl2QFdb2PEM4gTEU4,8740
|
|
4
3
|
pro_craft/designer.py,sha256=3gyCqrjcw61sHzDjUPKhL1LOAE8xWLLbNT8NlK2mFLc,4739
|
|
5
|
-
pro_craft/evals.py,sha256=
|
|
6
|
-
pro_craft/file_manager.py,sha256=
|
|
4
|
+
pro_craft/evals.py,sha256=1T86jur4k3cLk43j1GyAW4JS0nPNfl6P0ZOQmu-SgpA,1928
|
|
5
|
+
pro_craft/file_manager.py,sha256=2j7lCt9L4mtvAy8_76ibTthXLwKKmVatWIB3DSvQM7U,3805
|
|
7
6
|
pro_craft/log.py,sha256=MZf9jCZsiRoAq8v4FxVnJqeSXxgzAiiKf7mxz6bFtwM,4263
|
|
8
|
-
pro_craft/prompt_helper.py,sha256=
|
|
9
|
-
pro_craft/prompt_helper_async.py,sha256=
|
|
7
|
+
pro_craft/prompt_helper.py,sha256=SFIhju0Y3rRdb-T1WocUgz7qCocq1Ja2zlaEZo1RM3o,23832
|
|
8
|
+
pro_craft/prompt_helper_async.py,sha256=tvs2NywEqv_THvMpalu5PfewhhTm9wP89JqdKiKIUbU,25004
|
|
10
9
|
pro_craft/server.py,sha256=fPAosQIU0d7gxICiALl8u6QwbLI4cawVFyoRYebRES0,2827
|
|
11
|
-
pro_craft/utils.py,sha256=
|
|
12
|
-
pro_craft/code_helper/coder.py,sha256=
|
|
10
|
+
pro_craft/utils.py,sha256=27A3CFhbRsEAP5GY6oxAz2M-beiIuPgCNSjQUyzOVW0,5685
|
|
11
|
+
pro_craft/code_helper/coder.py,sha256=NXglF1KiPtGe4HZN0MZvFJ8p9Iyd5kzIt72DQGgRwXA,24715
|
|
13
12
|
pro_craft/server/__main__.py,sha256=LDTERPMe7RKj3eifVRo9aO9fNXdd16W5Hzr1APd04T0,4227
|
|
14
13
|
pro_craft/server/models.py,sha256=CiUK8e73Bl7fo7ZbnwNTLYLeD4pb1fHMzWR13d3Y6vs,112
|
|
15
14
|
pro_craft/server/mcp/__init__.py,sha256=4dbl-lFcm0r2tkOP04OxqiZG2jR-rqF181qi2AfU6UA,123
|
|
@@ -18,7 +17,7 @@ pro_craft/server/mcp/math.py,sha256=OOzGXx64nK4bOVlu33PtVddcCQ9ilqA3Em9yxjSX9cg,
|
|
|
18
17
|
pro_craft/server/mcp/resource.py,sha256=z94jP3qZofO-1lZCM3TuOfLajw41HARs1ojXab1ymas,776
|
|
19
18
|
pro_craft/server/mcp/weather.py,sha256=RAGuf4sgjlTQSfRRZ1Fo18JnuMQRS_Db9p6AqBQrl8E,455
|
|
20
19
|
pro_craft/server/router/recommended.py,sha256=IAZFdmb8HSl2_TOJeuv5uOKIX47XyX4p4sEwxG-0vt0,9968
|
|
21
|
-
pro_craft-0.1.
|
|
22
|
-
pro_craft-0.1.
|
|
23
|
-
pro_craft-0.1.
|
|
24
|
-
pro_craft-0.1.
|
|
20
|
+
pro_craft-0.1.5.dist-info/METADATA,sha256=5k1tJo4_cu_HdDlHPGfnewUC50IlCl1HN495U5t5_rw,1768
|
|
21
|
+
pro_craft-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
22
|
+
pro_craft-0.1.5.dist-info/top_level.txt,sha256=yqYDHArnYMWpeCxkmGRwlL6sJtxiOUnYylLDx9EOgFg,10
|
|
23
|
+
pro_craft-0.1.5.dist-info/RECORD,,
|
pro_craft/core.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|