pilot.linkstec 0.0.107__tar.gz → 0.0.109__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.
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/PKG-INFO +1 -1
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/pyproject.toml +1 -1
- pilot_linkstec-0.0.109/src/pilot/job/base/generate/generateJsonBaseJob.py +38 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/generate/generateTextBaseJob.py +11 -11
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/impl/base_job.py +6 -1
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot.linkstec.egg-info/PKG-INFO +1 -1
- pilot_linkstec-0.0.107/src/pilot/job/base/generate/generateJsonBaseJob.py +0 -42
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/LICENSE +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/README.md +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/setup.cfg +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/ai_call.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/ai_info.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/chage_file_tag_base.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/db_operation_base.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/delete_commnents_base.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/file_operation.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/get_file_encoding.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/make_parsing_java_file_order_base.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/base/split_file_base.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/client/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/client/ai_client.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/config/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/config/config_reader.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/control/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/control/control_interface.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/control/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/control/impl/base_controller.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/conver/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/conver/commentRemover.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/conver/converfileEncodding.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/config/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/config/create_file.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/create_python.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/sample/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/sample/child_sample/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/sample/child_sample/job/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/sample/config/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/sample/config/properties.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/create_table.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/db_connect.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/db_main.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/db_util.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/ddl/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/dml/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/sql_executor.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/sql_loader.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/db/sql_service.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/file_tool/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/file_tool/create_prompt_file.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/file_tool/json_file_tool.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/generater/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/generater/ai_base.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/generater/ai_interface.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/generater/lmstudioai.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/generater/vera.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/generater/vertexai.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/convert/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/convert/delimiterSwitcherJob.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/convert/encodingTransformerJob.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/convert/tabReplaceJob.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/generate/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/program/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/program/cobol/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/program/cobol/convert/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/program/cobol/convert/spitPreDigit.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/program/java/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/program/java/generateDetailDesignPrompt.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/job_interface.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/logging/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/logging/logger.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/prompt/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/splitters/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/splitters/cobolsplitter.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/unit/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/unit/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/unit/impl/base_unit.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/unit/unit_interface.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/util/__init__.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/util/files.py +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot.linkstec.egg-info/SOURCES.txt +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot.linkstec.egg-info/dependency_links.txt +0 -0
- {pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot.linkstec.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import os
|
|
3
|
+
import threading
|
|
4
|
+
import time
|
|
5
|
+
|
|
6
|
+
from pilot.job.impl.base_job import BaseJob
|
|
7
|
+
|
|
8
|
+
from pilot.generater.vera import VeraSingleton
|
|
9
|
+
|
|
10
|
+
class GenerateJsonBaseJob(BaseJob):
|
|
11
|
+
|
|
12
|
+
prompt_content: str
|
|
13
|
+
result_content: str
|
|
14
|
+
result_file_path: str
|
|
15
|
+
|
|
16
|
+
def run(self):
|
|
17
|
+
prompt = self.prompt_content
|
|
18
|
+
# トークン数チェック
|
|
19
|
+
vera_ai = VeraSingleton.get_instance()
|
|
20
|
+
#token_count = vertexai.count_tokens(prompt)
|
|
21
|
+
#if token_count == 0:
|
|
22
|
+
# super().run()
|
|
23
|
+
# return
|
|
24
|
+
#if token_count > 900000:
|
|
25
|
+
# print(f"警告: promptのトークン数が900000を超えています ({token_count} tokens)")
|
|
26
|
+
# super().run()
|
|
27
|
+
# return
|
|
28
|
+
# VertexAI で生成
|
|
29
|
+
start = time.time()
|
|
30
|
+
result = vera_ai.generate_content(prompt)
|
|
31
|
+
end = time.time()
|
|
32
|
+
print(f"Ai 処理時間 {self.file_path}: {end - start:.2f}秒")
|
|
33
|
+
|
|
34
|
+
result_content = result.get('response', '')
|
|
35
|
+
data = json.loads(result_content)
|
|
36
|
+
with open(self.result_file_path, 'w', encoding='utf-8') as f:
|
|
37
|
+
json.dump(data, f, ensure_ascii=False, indent=2)
|
|
38
|
+
super().run()
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/generate/generateTextBaseJob.py
RENAMED
|
@@ -5,7 +5,7 @@ import time
|
|
|
5
5
|
|
|
6
6
|
from pilot.job.impl.base_job import BaseJob
|
|
7
7
|
|
|
8
|
-
from pilot.generater.
|
|
8
|
+
from pilot.generater.vera import VeraSingleton
|
|
9
9
|
|
|
10
10
|
class GenerateTextBaseJob(BaseJob):
|
|
11
11
|
|
|
@@ -16,18 +16,18 @@ class GenerateTextBaseJob(BaseJob):
|
|
|
16
16
|
def run(self):
|
|
17
17
|
prompt = self.prompt_content
|
|
18
18
|
# トークン数チェック
|
|
19
|
-
|
|
20
|
-
token_count = vertexai.count_tokens(prompt)
|
|
21
|
-
if token_count == 0:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if token_count > 900000:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
vera_ai = VeraSingleton.get_instance()
|
|
20
|
+
#token_count = vertexai.count_tokens(prompt)
|
|
21
|
+
#if token_count == 0:
|
|
22
|
+
# super().run()
|
|
23
|
+
# return
|
|
24
|
+
#if token_count > 900000:
|
|
25
|
+
# print(f"警告: promptのトークン数が900000を超えています ({token_count} tokens)")
|
|
26
|
+
# super().run()
|
|
27
|
+
# return
|
|
28
28
|
# VertexAI で生成
|
|
29
29
|
start = time.time()
|
|
30
|
-
result =
|
|
30
|
+
result = vera_ai.generate_content(prompt)
|
|
31
31
|
end = time.time()
|
|
32
32
|
print(f"AI 処理時間 {self.file_path}: {end - start:.2f}秒")
|
|
33
33
|
result_content = result.get('response', '')
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import os
|
|
3
3
|
import shutil
|
|
4
|
+
from pathlib import Path
|
|
4
5
|
|
|
5
6
|
from pilot.job.job_interface import JobInterface
|
|
6
7
|
from pilot.logging.logger import get_logger
|
|
@@ -368,4 +369,8 @@ class BaseJob(JobInterface):
|
|
|
368
369
|
return os.path.splitext(os.path.basename(file_name))[0]
|
|
369
370
|
|
|
370
371
|
|
|
371
|
-
|
|
372
|
+
def change_extension_pathlib(file_path: str, new_ext: str) -> str:
|
|
373
|
+
p = Path(file_path)
|
|
374
|
+
new_path = p.with_suffix(new_ext) # 例: ".csv"
|
|
375
|
+
p.rename(new_path)
|
|
376
|
+
return str(new_path)
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
import os
|
|
3
|
-
import threading
|
|
4
|
-
import time
|
|
5
|
-
|
|
6
|
-
from pilot.job.impl.base_job import BaseJob
|
|
7
|
-
|
|
8
|
-
from pilot.generater.vertexai import VertexAISingleton
|
|
9
|
-
|
|
10
|
-
class GenerateJsonBaseJob(BaseJob):
|
|
11
|
-
|
|
12
|
-
prompt_content: str
|
|
13
|
-
result_content: str
|
|
14
|
-
result_file_path: str
|
|
15
|
-
|
|
16
|
-
def run(self):
|
|
17
|
-
#with self._begin_file_lock:
|
|
18
|
-
# if not self.change_current_trg_to_begin():
|
|
19
|
-
# return
|
|
20
|
-
#prompt = self.get_file_content()
|
|
21
|
-
prompt = self.prompt_content
|
|
22
|
-
# トークン数チェック
|
|
23
|
-
vertexai = VertexAISingleton.get_instance()
|
|
24
|
-
token_count = vertexai.count_tokens(prompt)
|
|
25
|
-
if token_count == 0:
|
|
26
|
-
super().run()
|
|
27
|
-
return
|
|
28
|
-
if token_count > 900000:
|
|
29
|
-
print(f"警告: promptのトークン数が900000を超えています ({token_count} tokens)")
|
|
30
|
-
super().run()
|
|
31
|
-
return
|
|
32
|
-
# VertexAI で生成
|
|
33
|
-
start = time.time()
|
|
34
|
-
result = vertexai.generate_content(prompt)
|
|
35
|
-
end = time.time()
|
|
36
|
-
print(f"Ai 処理時間 {self.file_path}: {end - start:.2f}秒")
|
|
37
|
-
|
|
38
|
-
result_content = result.get('response', '')
|
|
39
|
-
data = json.loads(result_content)
|
|
40
|
-
with open(self.result_file_path, 'w', encoding='utf-8') as f:
|
|
41
|
-
json.dump(data, f, ensure_ascii=False, indent=2)
|
|
42
|
-
super().run()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/config/__init__.py
RENAMED
|
File without changes
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/config/create_file.py
RENAMED
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/sample/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/create_python/sample/config/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/convert/delimiterSwitcherJob.py
RENAMED
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/convert/tabReplaceJob.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/program/cobol/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot/job/base/program/java/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.107 → pilot_linkstec-0.0.109}/src/pilot.linkstec.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|