ingen-lib 2.1.2__tar.gz → 3.1.0__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.
- {ingen_lib-2.1.2/ingen_lib.egg-info → ingen_lib-3.1.0}/PKG-INFO +6 -3
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/json_source.py +1 -1
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/outer_join.py +7 -2
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/reader/file_reader.py +2 -1
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/reader/xml_file_reader.py +6 -10
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/utils.py +3 -1
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/util.py +4 -2
- {ingen_lib-2.1.2 → ingen_lib-3.1.0/ingen_lib.egg-info}/PKG-INFO +6 -3
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen_lib.egg-info/requires.txt +3 -2
- ingen_lib-3.1.0/requirements.txt +18 -0
- ingen_lib-3.1.0/setup.py +67 -0
- ingen_lib-2.1.2/requirements.txt +0 -10
- ingen_lib-2.1.2/setup.py +0 -33
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/LICENSE +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/MANIFEST.in +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/README.md +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/__main__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/api_source.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/data_source_type.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/dataframe_store.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/file_source.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/mysql_source.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/rawdata_source.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/source.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/data_source/source_factory.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/formatters/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/formatters/common_formatters.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/formatters/formatter.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/formatters/utils.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/generators/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/generators/base_interface_generator.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/generators/interface_generator.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/lib/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/lib/cryptor.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/logger.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/metadata/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/metadata/metadata.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/metadata/metadata_parser.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/post_processor/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/post_processor/common_post_processor.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/post_processor/post_processor.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/aggregator.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/aggregators.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/drop_duplicates.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/filter.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/json_array_expander.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/mask.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/melt.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/merger.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/not_equals_filter.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/pre_processor.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/process.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/pre_processor/union.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/reader/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/reader/api_reader.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/reader/data_source.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/reader/json_reader.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/reader/mysql_reader.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/reader/rawdata_reader.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/app_http/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/app_http/aiohttp_retry.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/app_http/auth.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/app_http/http_request.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/app_http/http_util.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/app_http/success_criterias.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/app_secrets.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/interpolators/Interpolator.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/interpolators/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/interpolators/common_interpolators.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/json_df_convertors.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/path_parser.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/properties.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/run_configuration.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/sql_query_parser.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/timer.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/utils/url_constructor.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/validation/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/validation/common_validations.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/validation/notification.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/validation/send_email.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/validation/validations.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/dataframe_writer.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_util.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/convertors/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/convertors/convertor_factory.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/convertors/df_to_multiple_json_convertor.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/convertors/df_to_single_json_convertor.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/destinations/__init__.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/destinations/api_destination.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/destinations/destination_factory.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/destinations/file_destination.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/json_writer.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/old_json_writer.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/split_file_writer.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/writer.py +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen_lib.egg-info/SOURCES.txt +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen_lib.egg-info/dependency_links.txt +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen_lib.egg-info/top_level.txt +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/pyproject.toml +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/setup.cfg +0 -0
- {ingen_lib-2.1.2 → ingen_lib-3.1.0}/test/test_interface_generator.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ingen-lib
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: A Python script suite that generates interface files based on the given interface metadata/config file
|
|
5
5
|
Home-page: https://github.com/blackrock/interface-generator
|
|
6
6
|
Maintainer: Swarna Dhakad, Piyush Ranjan, Jatin Varlyani, Pooja Katariya
|
|
@@ -9,13 +9,15 @@ License: License :: Apache License
|
|
|
9
9
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Requires-Python: >=3.9,<3.13
|
|
12
13
|
License-File: LICENSE
|
|
13
14
|
Requires-Dist: aiohttp>=3.10.2
|
|
14
|
-
Requires-Dist: great_expectations
|
|
15
|
+
Requires-Dist: great_expectations<1.0,>=0.18.9
|
|
15
16
|
Requires-Dist: holidays>=0.27.1
|
|
16
17
|
Requires-Dist: hvac>=0.11.2
|
|
17
18
|
Requires-Dist: numpy>=1.26.4
|
|
18
|
-
Requires-Dist:
|
|
19
|
+
Requires-Dist: openpyxl>=3.1.0
|
|
20
|
+
Requires-Dist: pandas<3.0,>=2.2.2
|
|
19
21
|
Requires-Dist: pycryptodome>=3.20.0
|
|
20
22
|
Requires-Dist: PyMySQL>=1.1.1
|
|
21
23
|
Requires-Dist: PyYAML>=6.0.2
|
|
@@ -28,6 +30,7 @@ Dynamic: license-file
|
|
|
28
30
|
Dynamic: maintainer
|
|
29
31
|
Dynamic: maintainer-email
|
|
30
32
|
Dynamic: requires-dist
|
|
33
|
+
Dynamic: requires-python
|
|
31
34
|
Dynamic: summary
|
|
32
35
|
|
|
33
36
|
InGen is a command line tool written on top of pandas and great_expectations to perform small scale data transformations and validations without writing code. It is designed for developers and analysts to quickly transform data by specifying their requirements in a simple YAML file.
|
|
@@ -25,7 +25,7 @@ class JsonSource(DataSource):
|
|
|
25
25
|
raise ValueError("JSON string is not provided")
|
|
26
26
|
|
|
27
27
|
json_dict = json.loads(self._data)
|
|
28
|
-
if not json_dict[self.id]:
|
|
28
|
+
if self.id not in json_dict or not json_dict[self.id]:
|
|
29
29
|
raise ValueError("JSON source with ID {} does not exist".format(self.id))
|
|
30
30
|
self._data = pd.json_normalize(json_dict[self.id])
|
|
31
31
|
return self._data
|
|
@@ -24,10 +24,15 @@ class OuterJoin(Process):
|
|
|
24
24
|
:return: A Pandas dataframe which is the result of the outer join process
|
|
25
25
|
"""
|
|
26
26
|
left_dataframe = data
|
|
27
|
-
|
|
27
|
+
source_key = config.get('source')
|
|
28
|
+
right_dataframe = sources_data.get(source_key)
|
|
28
29
|
left_key = config.get('left_key')
|
|
29
30
|
right_key = config.get('right_key')
|
|
30
|
-
|
|
31
|
+
|
|
32
|
+
if source_key is None:
|
|
33
|
+
raise KeyError("outer_join config is missing the 'source' to join against")
|
|
34
|
+
if right_dataframe is None:
|
|
35
|
+
raise KeyError(f"Source '{source_key}' not found in sources_data for outer_join")
|
|
31
36
|
if left_key is not None and left_key not in left_dataframe.columns:
|
|
32
37
|
raise KeyError(f"Column '{left_key}' not present in left dataframe")
|
|
33
38
|
if right_key is not None and right_key not in right_dataframe.columns:
|
|
@@ -33,6 +33,8 @@ class CSVFileReader(Reader):
|
|
|
33
33
|
names=config['all_cols'],
|
|
34
34
|
dtype=dtype,
|
|
35
35
|
encoding=encoding)
|
|
36
|
+
result=result.convert_dtypes()
|
|
37
|
+
|
|
36
38
|
except TypeError:
|
|
37
39
|
logging.error(self.DTYPE_LOG_MSG)
|
|
38
40
|
raise
|
|
@@ -41,7 +43,6 @@ class CSVFileReader(Reader):
|
|
|
41
43
|
result = pd.DataFrame(columns=config['all_cols'])
|
|
42
44
|
else:
|
|
43
45
|
raise
|
|
44
|
-
|
|
45
46
|
return result
|
|
46
47
|
|
|
47
48
|
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import collections
|
|
5
5
|
import logging
|
|
6
6
|
from pyexpat import ExpatError
|
|
7
|
-
from xml.etree import ElementTree as et
|
|
8
7
|
|
|
9
8
|
import pandas as pd
|
|
10
9
|
import xmltodict
|
|
@@ -14,16 +13,13 @@ class XMLFileReader:
|
|
|
14
13
|
|
|
15
14
|
def read(self, src):
|
|
16
15
|
encoding = src.get('encoding', 'utf-8')
|
|
17
|
-
xml_file = open(src['file_path'], 'r', encoding=encoding)
|
|
18
16
|
try:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
root
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
else:
|
|
26
|
-
parent_tag = root.tag
|
|
17
|
+
with open(src['file_path'], 'r', encoding=encoding) as xml_file:
|
|
18
|
+
data = xmltodict.parse(xml_file.read())
|
|
19
|
+
# Valid XML has exactly one root element; its key in the parsed dict is the
|
|
20
|
+
# parent tag. Using it directly (instead of re-parsing with ElementTree) avoids
|
|
21
|
+
# a second file read and a namespace-prefix mismatch against xmltodict's keys.
|
|
22
|
+
parent_tag = next(iter(data))
|
|
27
23
|
root_tag = src['root_tag']
|
|
28
24
|
columns = src['columns']
|
|
29
25
|
if root_tag in data[parent_tag]:
|
|
@@ -111,7 +111,9 @@ class KeyValue(argparse.Action):
|
|
|
111
111
|
setattr(namespace, self.dest, dict())
|
|
112
112
|
|
|
113
113
|
for value in values:
|
|
114
|
-
|
|
114
|
+
# Split on the FIRST '=' only, so values may themselves contain '=' (tokens, URLs with
|
|
115
|
+
# query strings, SQL fragments like "col=1"). Matches KeyValueOrString's behaviour.
|
|
116
|
+
key, value = value.split('=', 1)
|
|
115
117
|
getattr(namespace, self.dest)[key] = value
|
|
116
118
|
|
|
117
119
|
|
|
@@ -21,6 +21,8 @@ def get_custom_value(props, df, run_date):
|
|
|
21
21
|
for prop in props:
|
|
22
22
|
for key, value in prop.items():
|
|
23
23
|
custom_function = get_type(key)
|
|
24
|
+
if custom_function is None:
|
|
25
|
+
raise ValueError(f"Unknown header/footer prop type: '{key}'")
|
|
24
26
|
custom_string = custom_string + custom_function(value, df=df, run_date=run_date)
|
|
25
27
|
return custom_string
|
|
26
28
|
|
|
@@ -103,8 +105,8 @@ def get_new_line(line, **kwargs):
|
|
|
103
105
|
Takes a boolean input and adds a new line if bool value is true
|
|
104
106
|
"""
|
|
105
107
|
if line:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
return '\n'
|
|
109
|
+
return ''
|
|
108
110
|
|
|
109
111
|
|
|
110
112
|
def sum_of_substr(props, **kwargs):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ingen-lib
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: A Python script suite that generates interface files based on the given interface metadata/config file
|
|
5
5
|
Home-page: https://github.com/blackrock/interface-generator
|
|
6
6
|
Maintainer: Swarna Dhakad, Piyush Ranjan, Jatin Varlyani, Pooja Katariya
|
|
@@ -9,13 +9,15 @@ License: License :: Apache License
|
|
|
9
9
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Requires-Python: >=3.9,<3.13
|
|
12
13
|
License-File: LICENSE
|
|
13
14
|
Requires-Dist: aiohttp>=3.10.2
|
|
14
|
-
Requires-Dist: great_expectations
|
|
15
|
+
Requires-Dist: great_expectations<1.0,>=0.18.9
|
|
15
16
|
Requires-Dist: holidays>=0.27.1
|
|
16
17
|
Requires-Dist: hvac>=0.11.2
|
|
17
18
|
Requires-Dist: numpy>=1.26.4
|
|
18
|
-
Requires-Dist:
|
|
19
|
+
Requires-Dist: openpyxl>=3.1.0
|
|
20
|
+
Requires-Dist: pandas<3.0,>=2.2.2
|
|
19
21
|
Requires-Dist: pycryptodome>=3.20.0
|
|
20
22
|
Requires-Dist: PyMySQL>=1.1.1
|
|
21
23
|
Requires-Dist: PyYAML>=6.0.2
|
|
@@ -28,6 +30,7 @@ Dynamic: license-file
|
|
|
28
30
|
Dynamic: maintainer
|
|
29
31
|
Dynamic: maintainer-email
|
|
30
32
|
Dynamic: requires-dist
|
|
33
|
+
Dynamic: requires-python
|
|
31
34
|
Dynamic: summary
|
|
32
35
|
|
|
33
36
|
InGen is a command line tool written on top of pandas and great_expectations to perform small scale data transformations and validations without writing code. It is designed for developers and analysts to quickly transform data by specifying their requirements in a simple YAML file.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
aiohttp>=3.10.2
|
|
2
|
+
# Cap below 1.0: InGen uses the legacy great_expectations Dataset API (ge.from_pandas + the
|
|
3
|
+
# expect_* methods on the returned object), which was removed in GE 1.0. The 0.18.x line is the
|
|
4
|
+
# last to retain that API and also ships Python 3.12 wheels.
|
|
5
|
+
great_expectations>=0.18.9,<1.0
|
|
6
|
+
holidays>=0.27.1
|
|
7
|
+
hvac>=0.11.2
|
|
8
|
+
numpy>=1.26.4
|
|
9
|
+
# pandas does not require openpyxl by default; ingen's own file_reader/writer call
|
|
10
|
+
# pd.read_excel/to_excel(engine='openpyxl') for .xlsx, so it must be a direct dependency.
|
|
11
|
+
openpyxl>=3.1.0
|
|
12
|
+
# Cap below 3.0: pandas 3.0 is a breaking major (Copy-on-Write becomes the default, deprecated
|
|
13
|
+
# APIs removed). InGen's formatters/readers are written against the pandas 2.x behaviour.
|
|
14
|
+
pandas>=2.2.2,<3.0
|
|
15
|
+
pycryptodome>=3.20.0
|
|
16
|
+
PyMySQL>=1.1.1
|
|
17
|
+
PyYAML>=6.0.2
|
|
18
|
+
xmltodict>=0.12.0
|
ingen_lib-3.1.0/setup.py
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Copyright (c) 2023 BlackRock, Inc.
|
|
2
|
+
# All Rights Reserved.
|
|
3
|
+
|
|
4
|
+
import os
|
|
5
|
+
|
|
6
|
+
import setuptools
|
|
7
|
+
from setuptools import setup
|
|
8
|
+
|
|
9
|
+
PKG_NAME = 'ingen-lib'
|
|
10
|
+
MAIN_PKG = 'ingen'
|
|
11
|
+
VERSION_PY_FILE = os.path.join(MAIN_PKG, 'version.py')
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def read_requirements():
|
|
15
|
+
"""Parse requirements.txt for install_requires, ignoring blank lines and comments.
|
|
16
|
+
|
|
17
|
+
The previous ``open(...).read().splitlines()`` passed every line through verbatim, so any
|
|
18
|
+
comment or blank line became an invalid requirement. This makes the manifest safely
|
|
19
|
+
annotatable (e.g. documenting why a version is pinned).
|
|
20
|
+
"""
|
|
21
|
+
with open('requirements.txt') as fh:
|
|
22
|
+
lines = [line.strip() for line in fh]
|
|
23
|
+
return [line for line in lines if line and not line.startswith('#')]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def resolve_version():
|
|
27
|
+
"""Resolve the package version.
|
|
28
|
+
|
|
29
|
+
At release time the CI workflow (.github/workflows/python-publish.yml) replaces the
|
|
30
|
+
``v3.1.0`` token below with the git tag via ``sed``. For local/editable
|
|
31
|
+
installs the token is left intact, which is NOT a valid PEP 440 version and breaks
|
|
32
|
+
``pip install -e .``. So when the token has not been substituted, fall back to a valid
|
|
33
|
+
development version. The literal token is preserved verbatim so the existing CI ``sed`` keeps
|
|
34
|
+
working unchanged.
|
|
35
|
+
"""
|
|
36
|
+
version = 'v3.1.0'
|
|
37
|
+
if version.startswith('{{'):
|
|
38
|
+
return '0.0.0.dev0'
|
|
39
|
+
return version
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
setup(name=PKG_NAME,
|
|
43
|
+
version=resolve_version(),
|
|
44
|
+
# Upper bound is real, not arbitrary: InGen uses the legacy great_expectations API, which
|
|
45
|
+
# requires numpy<2. numpy<2 only ships wheels through CPython 3.12, so on 3.13+ pip would try
|
|
46
|
+
# to build numpy from source (needs a C compiler). Capping here makes pip reject 3.13+ with a
|
|
47
|
+
# clear "Requires-Python" message instead of a confusing build failure.
|
|
48
|
+
python_requires='>=3.9,<3.13',
|
|
49
|
+
packages=setuptools.find_packages(include=['ingen', 'ingen.*']),
|
|
50
|
+
package_data={},
|
|
51
|
+
description='A Python script suite that generates interface files based on the given interface metadata/config '
|
|
52
|
+
'file',
|
|
53
|
+
install_requires=read_requirements(),
|
|
54
|
+
long_description="InGen is a command line tool written on top of pandas and great_expectations to perform small "
|
|
55
|
+
"scale data transformations and validations without writing code. It is designed for "
|
|
56
|
+
"developers and analysts to quickly transform data by specifying their requirements in a "
|
|
57
|
+
"simple YAML file.",
|
|
58
|
+
classifiers=[
|
|
59
|
+
'License :: OSI Approved :: Apache Software License',
|
|
60
|
+
'Operating System :: OS Independent',
|
|
61
|
+
'Programming Language :: Python :: 3.12'
|
|
62
|
+
],
|
|
63
|
+
license='License :: Apache License',
|
|
64
|
+
maintainer='Swarna Dhakad, Piyush Ranjan, Jatin Varlyani, Pooja Katariya',
|
|
65
|
+
maintainer_email='swarna.dhakad@gmail.com, piyushranjan95@gmail.com, varlyanijatin88@gmail.com, '
|
|
66
|
+
'poojakatariya1811@gmail.com',
|
|
67
|
+
url='https://github.com/blackrock/interface-generator')
|
ingen_lib-2.1.2/requirements.txt
DELETED
ingen_lib-2.1.2/setup.py
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2023 BlackRock, Inc.
|
|
2
|
-
# All Rights Reserved.
|
|
3
|
-
|
|
4
|
-
import os
|
|
5
|
-
|
|
6
|
-
import setuptools
|
|
7
|
-
from setuptools import setup
|
|
8
|
-
|
|
9
|
-
PKG_NAME = 'ingen-lib'
|
|
10
|
-
MAIN_PKG = 'ingen'
|
|
11
|
-
VERSION_PY_FILE = os.path.join(MAIN_PKG, 'version.py')
|
|
12
|
-
|
|
13
|
-
setup(name=PKG_NAME,
|
|
14
|
-
version='v2.1.2',
|
|
15
|
-
packages=setuptools.find_packages(include=['ingen', 'ingen.*']),
|
|
16
|
-
package_data={},
|
|
17
|
-
description='A Python script suite that generates interface files based on the given interface metadata/config '
|
|
18
|
-
'file',
|
|
19
|
-
install_requires=open('requirements.txt').read().splitlines(),
|
|
20
|
-
long_description="InGen is a command line tool written on top of pandas and great_expectations to perform small "
|
|
21
|
-
"scale data transformations and validations without writing code. It is designed for "
|
|
22
|
-
"developers and analysts to quickly transform data by specifying their requirements in a "
|
|
23
|
-
"simple YAML file.",
|
|
24
|
-
classifiers=[
|
|
25
|
-
'License :: OSI Approved :: Apache Software License',
|
|
26
|
-
'Operating System :: OS Independent',
|
|
27
|
-
'Programming Language :: Python :: 3.12'
|
|
28
|
-
],
|
|
29
|
-
license='License :: Apache License',
|
|
30
|
-
maintainer='Swarna Dhakad, Piyush Ranjan, Jatin Varlyani, Pooja Katariya',
|
|
31
|
-
maintainer_email='swarna.dhakad@gmail.com, piyushranjan95@gmail.com, varlyanijatin88@gmail.com, '
|
|
32
|
-
'poojakatariya1811@gmail.com',
|
|
33
|
-
url='https://github.com/blackrock/interface-generator')
|
|
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
|
|
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
|
|
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
|
{ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/convertors/convertor_factory.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/destinations/api_destination.py
RENAMED
|
File without changes
|
{ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/destinations/destination_factory.py
RENAMED
|
File without changes
|
{ingen_lib-2.1.2 → ingen_lib-3.1.0}/ingen/writer/json_writer/destinations/file_destination.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
|