datapipelab 0.1.4__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.
datapipelab/engine.py CHANGED
@@ -3,7 +3,7 @@ from datapipelab.logger import logger
3
3
 
4
4
 
5
5
  class Engine:
6
- def __init__(self, engine_config_path, spark, params):
6
+ def __init__(self, engine_config_path, spark, params=None):
7
7
  self.engine_config_path = engine_config_path
8
8
  self.params = params
9
9
  self.pipeline = None
@@ -10,10 +10,10 @@ class PipelineConfig:
10
10
  self.config_file = config_file
11
11
  if isinstance(self.config_file, str):
12
12
  self.load_json_config_file()
13
- elif isinstance(self.config_file, dict):
13
+ elif isinstance(self.config_file, list):
14
14
  self.pipeline_settings = config_file
15
15
  else:
16
- raise ValueError("Invalid config file type. Must be a string or a dictionary.")
16
+ raise ValueError("Invalid config file type. Must be a string or a list.")
17
17
  self.sources = {}
18
18
  self.processors = {}
19
19
  self.sinks = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datapipelab
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: A data pipeline library with connectors, sources, processors, and sinks.
5
5
  Requires-Dist: json5
6
6
  Requires-Dist: loguru
@@ -1,8 +1,8 @@
1
1
  datapipelab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- datapipelab/engine.py,sha256=dYm39Yb0Eqt76pwdc-ilzZNxehMKdiuidE557YexHaU,437
2
+ datapipelab/engine.py,sha256=3QRsedRYNov6xIDOZ1tukinFE-SKv39Fn3sNCnD3L6g,442
3
3
  datapipelab/logger.py,sha256=Ugv0A4TfD3JWCWXNWu0lURcnfAEyuVrK3IrvVVgcHBo,864
4
4
  datapipelab/pipeline.py,sha256=dw9D9KM_hztt9g_YzqoNgQBRyCYR92cRZwrU5duP_Pg,1464
5
- datapipelab/pipeline_config.py,sha256=dKVWz_FH5448a1ZE9eIu8ANagEceI_l4QNICbXrRudk,3411
5
+ datapipelab/pipeline_config.py,sha256=xxasVl6nULWmVRWYiyZUgCr5Y9m0OP7kM3mCOss1AXA,3405
6
6
  datapipelab/pipeline_handler.py,sha256=1t5wwsaVUMXXmsEa-Qt-6jtMIyAZmX1hgo2I_UgbtiM,3265
7
7
  datapipelab/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  datapipelab/app/connector_node/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -21,7 +21,7 @@ datapipelab/app/node/source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
21
21
  datapipelab/app/node/source/delta_node.py,sha256=gg7SfuKBAAfjk6OX2jNrot9XX61HoBe3us3D8O-dscE,529
22
22
  datapipelab/app/node/source/hive_node.py,sha256=h_AMCnnmon7uLRIGsaHAPWEReD3VaWZXnz9r0TpLGNM,478
23
23
  datapipelab/app/node/source/spark_node.py,sha256=S_x2atRFPDnXmhCUtcmaLc4BDFd2H4uQq6wnEJb7Uug,480
24
- datapipelab-0.1.4.dist-info/METADATA,sha256=O_P8alSEnX3hM-gLN6OPFfeYykpOO_-ymns8OKUtJU4,312
25
- datapipelab-0.1.4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
26
- datapipelab-0.1.4.dist-info/top_level.txt,sha256=HgeBjHvXorKzvNqU5BNPutoI771HtiqVit9_-0Zyrb4,12
27
- datapipelab-0.1.4.dist-info/RECORD,,
24
+ datapipelab-0.1.5.dist-info/METADATA,sha256=SFXOKu57wAmSkGBUHdvC2uehaCDjRu5cIhUqWpzp4e0,312
25
+ datapipelab-0.1.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
26
+ datapipelab-0.1.5.dist-info/top_level.txt,sha256=HgeBjHvXorKzvNqU5BNPutoI771HtiqVit9_-0Zyrb4,12
27
+ datapipelab-0.1.5.dist-info/RECORD,,