From 9925ecdf4404f5e4a39635b41ee6fa33e3b6672e Mon Sep 17 00:00:00 2001 From: "LAPTOP-AO84OQO2\\impra" Date: Mon, 21 Aug 2023 09:37:19 +0530 Subject: [PATCH] v2.2.12 --- python_helpers/ph_constants_config.py | 2 +- python_helpers/ph_data_master.py | 4 +++ python_helpers/ph_file_extensions.py | 14 +++++++++ python_helpers/ph_keys.py | 44 +++++++++++++++++++++++++++ python_helpers/ph_util.py | 2 -- python_helpers/test/log/pycharm.log | 8 ++--- python_helpers/test/test.py | 2 +- 7 files changed, 68 insertions(+), 8 deletions(-) create mode 100644 python_helpers/ph_data_master.py create mode 100644 python_helpers/ph_file_extensions.py create mode 100644 python_helpers/ph_keys.py diff --git a/python_helpers/ph_constants_config.py b/python_helpers/ph_constants_config.py index 5fadae2..c2368f8 100644 --- a/python_helpers/ph_constants_config.py +++ b/python_helpers/ph_constants_config.py @@ -1,4 +1,4 @@ class PhConfigConst: - TOOL_VERSION = '2.2.11' + TOOL_VERSION = '2.2.12' TOOL_VERSION_DETAILED = f'v{TOOL_VERSION}' TOOL_NAME = 'pythonHelpers' diff --git a/python_helpers/ph_data_master.py b/python_helpers/ph_data_master.py new file mode 100644 index 0000000..34c7c40 --- /dev/null +++ b/python_helpers/ph_data_master.py @@ -0,0 +1,4 @@ +class PhMasterData: + INDEX_DATA = 0 + INDEX_META_DATA = 1 + INDEX_ERROR_DATA = 2 diff --git a/python_helpers/ph_file_extensions.py b/python_helpers/ph_file_extensions.py new file mode 100644 index 0000000..f999cc5 --- /dev/null +++ b/python_helpers/ph_file_extensions.py @@ -0,0 +1,14 @@ +class PhFileExtensions: + TXT = '.txt' + ASN = '.asn' + ASN1 = '.asn1' + BASE_64 = '.base64' + HEX = '.hex' + YML = '.yml' + YAML = '.yaml' + JSON = '.json' + IN = '.in' + OUT = '.out' + CSV = '.csv' + XLSX = '.xlsx' + XLS = '.xls' diff --git a/python_helpers/ph_keys.py b/python_helpers/ph_keys.py new file mode 100644 index 0000000..db97898 --- /dev/null +++ b/python_helpers/ph_keys.py @@ -0,0 +1,44 @@ +class PhKeys: + INPUT = 'input' + INPUT_FORMAT = 'input_format' + INPUT_DATA = 'input_data' + INPUT_FILE = 'input_file' + INPUT_LIST = 'input_list' + INPUT_DIR = 'input_dir' + INPUT_YML = 'input_yml' + INPUT_MODES_HIERARCHY = 'input_modes_hierarchy' + + OUTPUT = 'output' + OUTPUT_FORMAT = 'output_format' + OUTPUT_DATA = 'output_data' + OUTPUT_FILE = 'output_file' + EXPORT_FILE = 'export_file' + RE_OUTPUT_FILE = 're_output_file' + OUTPUT_FILE_NAME_KEYWORD = 'output_file_name_keyword' + + RAW_DATA = 'raw_data' + RE_PARSED_DATA = 're_parsed_data' + ASN1_ELEMENT = 'asn1_element' + INFO = 'info' + + PRINT_INPUT = 'print_input' + PRINT_OUTPUT = 'print_output' + PRINT_INFO = 'print_info' + QUITE_MODE = 'quite_mode' + RE_PARSE_OUTPUT = 're_parse_output' + REMARKS_LIST = 'remarks_list' + REMARKS_LIST_GENERATED = 'remarks_list_generated' + + # + ONE_LINER = 'one_liner' + VALUE_IN_ASCII = 'value_in_ascii' + LENGTH_IN_DECIMAL = 'length_in_decimal' + # + OUTPUT_VERSION = 'output_version' + # + PYTHON = 'Python' + SGP22 = 'SGP22' + ASN1PLAY = 'asn1play' + EUICC_PROFILE_PACKAGE = 'eUICC_Profile_Package' + PYTHONHELPERS = 'pythonHelpers' + TIME_STAMP = 'time_stamp' diff --git a/python_helpers/ph_util.py b/python_helpers/ph_util.py index da0a85a..6f554d4 100644 --- a/python_helpers/ph_util.py +++ b/python_helpers/ph_util.py @@ -1636,5 +1636,3 @@ def get_current_script_folder(cls): @classmethod def get_directory_path(cls, path): return os.path.dirname(path) - - diff --git a/python_helpers/test/log/pycharm.log b/python_helpers/test/log/pycharm.log index f9f8ff8..a460526 100644 --- a/python_helpers/test/log/pycharm.log +++ b/python_helpers/test/log/pycharm.log @@ -9,9 +9,9 @@ User Name is Pratik Jaiswal -------------------------------------------------------------------------------- User Account is impra -------------------------------------------------------------------------------- -Time Stamp is Sunday, Aug 13 2023, 20:07:02:975214, IST (GMT+0530) +Time Stamp is Monday, Aug 21 2023, 09:36:29:686301, IST (GMT+0530) -------------------------------------------------------------------------------- -pythonHelpers version is v2.2.11 +pythonHelpers version is v2.2.12 -------------------------------------------------------------------------------- Test Tool version is v1.0.1 -------------------------------------------------------------------------------- @@ -24,9 +24,9 @@ User Name is Pratik Jaiswal -------------------------------------------------------------------------------- User Account is impra -------------------------------------------------------------------------------- -Time Stamp is Sunday, Aug 13 2023, 20:07:02:976213, IST (GMT+0530) +Time Stamp is Monday, Aug 21 2023, 09:36:29:686301, IST (GMT+0530) -------------------------------------------------------------------------------- -pythonHelpers version is v2.2.11 +pythonHelpers version is v2.2.12 -------------------------------------------------------------------------------- Python version is v3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] ----------------------------------------------------------- ----------------------------------------------------------- diff --git a/python_helpers/test/test.py b/python_helpers/test/test.py index 129fda5..1b53d59 100644 --- a/python_helpers/test/test.py +++ b/python_helpers/test/test.py @@ -78,7 +78,7 @@ def test_list(): print(PhUtil.combine_list_items(['Pj;'], clean_data=True)) print(PhUtil.combine_list_items(['Remarks semi colon 1;', 'Remarks semi colon 2; '], clean_data=True)) print(PhUtil.combine_list_items(['Remarks semi colon 1;', 'Remarks semi colon 2; ; '], clean_data=True)) - print(PhUtil.combine_list_items([5,6,7], clean_data=True)) + print(PhUtil.combine_list_items([5, 6, 7], clean_data=True)) def test_heading():