hid_data_transfer_lib 0.4.0__tar.gz → 0.4.1__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.
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/PKG-INFO +1 -1
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/hid_dt_lib.py +4 -3
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/nifi/nifi_client.py +11 -2
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/pyproject.toml +2 -1
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/README.md +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/__init__.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/conf/__init__.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/conf/hid_dt.cfg +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/conf/hid_dt_configuration.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/conf/hid_dt_local.cfg +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/conf/hid_dt_psnc.cfg +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/exceptions/__init__.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/exceptions/hid_dt_exceptions.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/keycloak/__init__.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/keycloak/keycloak_rest.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/nifi/__init__.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/nifi/nifi_rest.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/py.typed +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/util/__init__.py +0 -0
- {hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/util/util.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hid_data_transfer_lib
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: HiDALGO Data Transfer library provides methods to transfer data between different data providers and consumers using NIFI pipelines
|
|
5
5
|
License: APL-2.0
|
|
6
6
|
Author: Jesús Gorroñogoitia
|
{hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/hid_dt_lib.py
RENAMED
|
@@ -2140,14 +2140,15 @@ class HIDDataTransfer:
|
|
|
2140
2140
|
first_processor_expected_outgoing_flowfiles=num_files,
|
|
2141
2141
|
keycloak_token=self.__keycloak_token,
|
|
2142
2142
|
accounting_target="MergeContent",
|
|
2143
|
+
upload_folder=upload_folder
|
|
2143
2144
|
)
|
|
2144
2145
|
|
|
2145
2146
|
except Exception as ex:
|
|
2146
2147
|
raise HidDataTransferException(ex) from ex
|
|
2147
|
-
finally:
|
|
2148
|
+
# finally:
|
|
2148
2149
|
# Remove uploaded files
|
|
2149
|
-
if upload_folder is not None:
|
|
2150
|
-
|
|
2150
|
+
# if upload_folder is not None:
|
|
2151
|
+
# self.__nifi_client.remove_upload_folder(upload_folder)
|
|
2151
2152
|
|
|
2152
2153
|
def ckan2local(
|
|
2153
2154
|
self,
|
|
@@ -916,6 +916,7 @@ class NIFIClient:
|
|
|
916
916
|
ignore_bulletins_in_processors=None,
|
|
917
917
|
processors_with_kerberos=None,
|
|
918
918
|
kerberos_account=None,
|
|
919
|
+
upload_folder=None,
|
|
919
920
|
) -> tuple[str, AccountingInfo]:
|
|
920
921
|
"""MAIN method to run a processor from a template identify by name
|
|
921
922
|
The procedure is as follows:
|
|
@@ -1113,7 +1114,7 @@ class NIFIClient:
|
|
|
1113
1114
|
# Refresh NIFI token before cleanup
|
|
1114
1115
|
self.refresh_access_token()
|
|
1115
1116
|
# Clean up the process group and associated parameter context
|
|
1116
|
-
self.clean_process_group_up(process_group["id"])
|
|
1117
|
+
self.clean_process_group_up(process_group["id"], upload_folder=upload_folder)
|
|
1117
1118
|
self.__logger.info("Process group %s cleaned up\n",
|
|
1118
1119
|
process_group["id"])
|
|
1119
1120
|
self.cancel_access_token()
|
|
@@ -1680,6 +1681,10 @@ class NIFIClient:
|
|
|
1680
1681
|
target_processor['status']['aggregateSnapshot']['flowFilesIn']
|
|
1681
1682
|
}
|
|
1682
1683
|
|
|
1684
|
+
msg = "Processor {accounting_target} has reported flowFilesIn: " \
|
|
1685
|
+
f"{target_processor['status']['aggregateSnapshot']['flowFilesIn']}\n"
|
|
1686
|
+
self.__logger.debug(msg)
|
|
1687
|
+
|
|
1683
1688
|
return flowfiles_sizes
|
|
1684
1689
|
|
|
1685
1690
|
def find_incoming_connection_for_processor(self,
|
|
@@ -1790,7 +1795,7 @@ class NIFIClient:
|
|
|
1790
1795
|
# Save changes in processor
|
|
1791
1796
|
self.set_processor_kus(processor, kpus['id'])
|
|
1792
1797
|
|
|
1793
|
-
def clean_process_group_up(self, process_group_id, retry=True):
|
|
1798
|
+
def clean_process_group_up(self, process_group_id, upload_folder=None, retry=True):
|
|
1794
1799
|
"""Clean up the process group and associated parameter context"""
|
|
1795
1800
|
# Get process group
|
|
1796
1801
|
process_group = self.get_process_group(process_group_id)
|
|
@@ -1800,6 +1805,10 @@ class NIFIClient:
|
|
|
1800
1805
|
self.__logger.debug("Removing uploaded keys\n")
|
|
1801
1806
|
self.remove_uploaded_keys(process_group_id)
|
|
1802
1807
|
|
|
1808
|
+
# Remove upload folder
|
|
1809
|
+
if upload_folder is not None:
|
|
1810
|
+
self.remove_upload_folder(upload_folder)
|
|
1811
|
+
|
|
1803
1812
|
# Stop process_group and wait for all processosr to be stopped
|
|
1804
1813
|
self.stop_process_group(process_group_id)
|
|
1805
1814
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "hid_data_transfer_lib"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.1"
|
|
4
4
|
description = "HiDALGO Data Transfer library provides methods to transfer data between different data providers and consumers using NIFI pipelines"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Jesús Gorroñogoitia", email = "jesus.gorronogoitia@eviden.com" },
|
|
@@ -41,6 +41,7 @@ pytest = "^8.3.5"
|
|
|
41
41
|
pytest-cov = "^6.1.0"
|
|
42
42
|
pytest-env = "^1.1.5"
|
|
43
43
|
numpy = "^2.3.4"
|
|
44
|
+
python-dotenv = "^1.2.3"
|
|
44
45
|
|
|
45
46
|
[build-system]
|
|
46
47
|
requires = ["poetry-core"]
|
|
File without changes
|
{hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/__init__.py
RENAMED
|
File without changes
|
{hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/conf/__init__.py
RENAMED
|
File without changes
|
{hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/conf/hid_dt.cfg
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
|
{hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/nifi/__init__.py
RENAMED
|
File without changes
|
{hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/nifi/nifi_rest.py
RENAMED
|
File without changes
|
|
File without changes
|
{hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/util/__init__.py
RENAMED
|
File without changes
|
{hid_data_transfer_lib-0.4.0 → hid_data_transfer_lib-0.4.1}/hid_data_transfer_lib/util/util.py
RENAMED
|
File without changes
|