sws-spark-dissemination-helper 0.0.146__tar.gz → 0.0.147__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.
Files changed (16) hide show
  1. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/PKG-INFO +1 -1
  2. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/pyproject.toml +1 -1
  3. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/src/sws_spark_dissemination_helper/SWSEasyIcebergSparkHelper.py +3 -3
  4. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/.gitignore +0 -0
  5. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/LICENSE +0 -0
  6. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/README.md +0 -0
  7. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/src/sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py +0 -0
  8. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/src/sws_spark_dissemination_helper/SWSDatatablesExportHelper.py +0 -0
  9. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/src/sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py +0 -0
  10. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/src/sws_spark_dissemination_helper/SWSPostgresSparkReader.py +0 -0
  11. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/src/sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py +0 -0
  12. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/src/sws_spark_dissemination_helper/__init__.py +0 -0
  13. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/src/sws_spark_dissemination_helper/constants.py +0 -0
  14. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/src/sws_spark_dissemination_helper/utils.py +0 -0
  15. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/tests/__init__.py +0 -0
  16. {sws_spark_dissemination_helper-0.0.146 → sws_spark_dissemination_helper-0.0.147}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sws-spark-dissemination-helper
3
- Version: 0.0.146
3
+ Version: 0.0.147
4
4
  Summary: A Python helper package providing streamlined Spark functions for efficient data dissemination processes
5
5
  Project-URL: Repository, https://github.com/un-fao/fao-sws-it-python-spark-dissemination-helper
6
6
  Author-email: Daniele Mansillo <danielemansillo@gmail.com>
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "sws-spark-dissemination-helper"
7
- version = "0.0.146"
7
+ version = "0.0.147"
8
8
  dependencies = [
9
9
  "annotated-types==0.7.0",
10
10
  "boto3>=1.36.18",
@@ -1,6 +1,6 @@
1
1
  import logging
2
2
  from copy import copy
3
- from typing import Dict, List, Tuple
3
+ from typing import Dict, List, Tuple, Union
4
4
 
5
5
  import pyspark.sql.functions as F
6
6
  from pyspark.sql import DataFrame, SparkSession
@@ -26,7 +26,7 @@ class SWSEasyIcebergSparkHelper:
26
26
  dataset_tables: DatasetTables = None,
27
27
  keep_history: bool = False,
28
28
  write_csv: bool = True,
29
- source_tag: str | None = None,
29
+ source_tag: Union[str, None] = None,
30
30
  ) -> None:
31
31
  self.spark: SparkSession = spark
32
32
  self.dataset_details: dict = dataset_details
@@ -38,7 +38,7 @@ class SWSEasyIcebergSparkHelper:
38
38
  self.iceberg_tables: IcebergTables = iceberg_tables
39
39
  self.keep_history: bool = keep_history
40
40
  self.write_csv: bool = write_csv
41
- self.source_tag: str | None = source_tag
41
+ self.source_tag: Union[str, None] = source_tag
42
42
 
43
43
  if dataset_details is not None:
44
44
  (