pilot.linkstec 0.0.4__py3-none-any.whl → 0.0.6__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.
@@ -1,6 +1,6 @@
1
1
  from concurrent.futures import ThreadPoolExecutor
2
2
 
3
- from pilot.generater.vertexai import VertexAISingleton
3
+
4
4
  from pilot.control.control_interface import ControlInterface
5
5
  from pilot.unit.impl.base_unit import BaseUnit
6
6
  from pilot.config.config_reader import ConfigReader
@@ -9,16 +9,18 @@ from pilot.config.config_reader import ConfigReader
9
9
  class BaseController(ControlInterface):
10
10
 
11
11
  def __init__(self):
12
- vertexai: VertexAISingleton = VertexAISingleton.get_instance()
12
+ pass
13
+
13
14
 
14
15
  def _init_unit(self):
15
16
  return BaseUnit()
16
17
 
17
- def run(self):
18
+ def run(self,configfile: str = None):
18
19
  import time
19
- config_dto = ConfigReader().get_dto()
20
+ config_dto = ConfigReader(configfile).get_dto()
20
21
  def worker():
21
22
  unit = self._init_unit()
23
+ unit.config_dto = config_dto
22
24
  unit.run()
23
25
  with ThreadPoolExecutor(max_workers=config_dto.threads) as executor:
24
26
  futures = []
@@ -7,7 +7,7 @@ from pilot.config.config_reader import ConfigReader
7
7
 
8
8
  class BaseJob(JobInterface):
9
9
  def __init__(self):
10
- self.config_dto = ConfigReader().get_dto()
10
+ self.config_dto = None
11
11
  self._current_step = None
12
12
  self._file_path = None
13
13
  self._step_index = None
@@ -9,7 +9,7 @@ class BaseUnit(UnitInterface):
9
9
  joblist = []
10
10
 
11
11
  def __init__(self):
12
- self.config_dto = ConfigReader().get_dto()
12
+ pass
13
13
 
14
14
 
15
15
  def _init_job(self,step):
@@ -28,6 +28,7 @@ class BaseUnit(UnitInterface):
28
28
  for filename in filenames:
29
29
  file_path = os.path.join(dirpath, filename)
30
30
  job = self._init_job(step)
31
+ job.config_dto = self.config_dto
31
32
  job.current_step = step
32
33
  job.step_index = index
33
34
  job.file_path = file_path
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pilot.linkstec
3
- Version: 0.0.4
3
+ Version: 0.0.6
4
4
  Summary: pilot of the ship, a tool for managing and deploying Python projects.
5
5
  Author-email: wanglr <wanglr1980@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ pilot/config/config_reader.py,sha256=RL9925CIjKyimvcspzmZkPzJUJe6z28cfz5nGhZ3g3k
4
4
  pilot/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  pilot/control/control_interface.py,sha256=zGv380oQgAKPAIHDHeFdPYzhj2Ngo2T66NWlNloA7vY,124
6
6
  pilot/control/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- pilot/control/impl/base_controller.py,sha256=GumB1hXAqlizZ1Ru7JqWI02QRB2j13DKsUgQNJL2TH8,959
7
+ pilot/control/impl/base_controller.py,sha256=XdqpoyO6mw7sNp14hZo5BP1Eel39W8Q_VWmTMFYy4Wo,924
8
8
  pilot/conver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pilot/conver/converfileEncodding.py,sha256=UqjcWO0bzkuTRHLEWrWJkeo3p-P7WuYE7jFKveyPekA,2781
10
10
  pilot/conver/nkf_converter.py,sha256=JqgThmXcdnTGMsLIHUEwe8sc0VGMqDaKCIQTg-UE3WE,1148
@@ -13,17 +13,17 @@ pilot/generater/vertexai.py,sha256=ZUyrPGHuuUlycMW0efzSCRYvESCfmZb1E-JjUwl8wTM,2
13
13
  pilot/job/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  pilot/job/job_interface.py,sha256=LL0hfuFfnKnkpQD99jv1hkaAIAFM-JJPrX3PFxN6O_A,120
15
15
  pilot/job/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- pilot/job/impl/base_job.py,sha256=SoBn6XcThAozAGqEMrDReQ4dPlRhFsS3vw3EOQSFH18,13592
16
+ pilot/job/impl/base_job.py,sha256=c8ANXdJZDuO0KEorPhO41uwr0tMTaY1jis0e_Ep3jtg,13572
17
17
  pilot/splitters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  pilot/splitters/cobolsplitter.py,sha256=oPwxKRjA7TyXWaWV3jdy59lJZy1mRn6yxD9ivqFYCuY,5461
19
19
  pilot/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  pilot/unit/unit_interface.py,sha256=fE8N4h_rZU-dWLHy9o0EE3yyErGmRyIuGUDb-zqe7qo,167
21
21
  pilot/unit/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- pilot/unit/impl/base_unit.py,sha256=tIK11yDR6LszRMUVIUb4JqIj8WRFuKkxEhgdJUOY5V8,1264
22
+ pilot/unit/impl/base_unit.py,sha256=fD9WI5L80m9d1qqr5-I7Bw0jtzK66Ql5Rj2rrQjjZ-Q,1275
23
23
  pilot/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  pilot/util/files.py,sha256=v9uzfzo3Aq4xgnUIASEZeBJoA2nD9Qz_EA3P-FwzGFQ,1896
25
- pilot_linkstec-0.0.4.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
26
- pilot_linkstec-0.0.4.dist-info/METADATA,sha256=mUYdXqkrer3AfjtX9rPJL5YSaNF24t49rEH5XMh63CU,678
27
- pilot_linkstec-0.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- pilot_linkstec-0.0.4.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
29
- pilot_linkstec-0.0.4.dist-info/RECORD,,
25
+ pilot_linkstec-0.0.6.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
26
+ pilot_linkstec-0.0.6.dist-info/METADATA,sha256=khYYQPFUP89f-p_M9MiIBrQlAJ8ttx93YyZE5yJgGV0,678
27
+ pilot_linkstec-0.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ pilot_linkstec-0.0.6.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
29
+ pilot_linkstec-0.0.6.dist-info/RECORD,,