berryworld 1.0.0.175664__py3-none-any.whl → 1.0.0.176826__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.
@@ -69,3 +69,18 @@ class EmailLogging:
69
69
  self.log_df = self.log_df.assign(**{'ProposedSolution': proposed_solution})
70
70
  self.sql_con.insert(self.log_df, 'Logging', 'PythonLogs', print_sql=self.print_sql)
71
71
  self.failure_type.append(critical)
72
+
73
+ @staticmethod
74
+ def register_failure(email_log, section, error_, solutions=None):
75
+ """Register a failure in the email log
76
+ :param email_log: Instance of PythonEmailProjectSeverity
77
+ :param section: Indicate the script section. Useful to locate the error
78
+ :param error_: Error message to be sent in the Log
79
+ :param solutions: List of solutions for the error messages
80
+ """
81
+ solution_header = list(filter(lambda x: section.startswith(x), list(solutions.keys())))
82
+ if len(solution_header) > 0:
83
+ proposed_solution = solutions[solution_header[0]]
84
+ email_log.on_failure(error_, section=section, proposed_solution=proposed_solution)
85
+ else:
86
+ email_log.on_failure(error_, section=section)
berryworld/sql_conn.py CHANGED
@@ -9,6 +9,8 @@ from urllib import parse
9
9
  from numbers import Number
10
10
  from .credentials import SQLCredentials
11
11
 
12
+ pd.set_option('future.no_silent_downcasting', True)
13
+
12
14
 
13
15
  class SQLConn:
14
16
  """ Connect to Microsoft SQL """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: berryworld
3
- Version: 1.0.0.175664
3
+ Version: 1.0.0.176826
4
4
  Summary: Handy classes to improve ETL processes
5
5
  Home-page: https://www.berryworld.com
6
6
  Author: BerryWorld ltd
@@ -7,7 +7,7 @@ berryworld/cache_data.py,sha256=2cStWbFQHimon_lHMbcM_0vU7lt-FCge96D-T9YXaxQ,2242
7
7
  berryworld/credentials.py,sha256=Knxo4gssLT7sbaBjOTFe3mX5k70G2e0M_6CdtlddjtA,10200
8
8
  berryworld/devops.py,sha256=BAsVonVwCXoApUOovkt-BCzwc6KnXjxRDGff_ejSGw8,9719
9
9
  berryworld/email_con.py,sha256=_QGA575BPVIqz7Z2AAghZCgN9YOkgDDYDpvcwnNo6ns,14358
10
- berryworld/email_logging.py,sha256=QaM0FHhAFsZ-AdUbJal2zHAvu0mvG4C_soRbYOuPs4g,3695
10
+ berryworld/email_logging.py,sha256=ebZ-PHZ9tCU3q-vkNnOT3-mTG7pCAmewnzzJZ9lnOjI,4476
11
11
  berryworld/generate_env.py,sha256=Tk9Z_u7cA4Ve8YYTyLH2qwmLVAuYoTIWoFc0h8Va8lY,7842
12
12
  berryworld/handy_mix.py,sha256=SLCAdl2xaWEewWkECzcVFUDODDEkvUgpmJjTiccyVwU,9771
13
13
  berryworld/logic_apps.py,sha256=hFi4wAOTgL9xirU6cR4rkOYTFBdDNes_aU3-aS9MsN0,12457
@@ -17,7 +17,7 @@ berryworld/pickle_management.py,sha256=O49ojVtTqYCT510rVRTbZWWaur_-5q3HSVG03Azn8
17
17
  berryworld/postgres_connection.py,sha256=whKDnchd5Feqpmxpoh2vlyn36EKHR-dVEULYq0N_4wA,8287
18
18
  berryworld/power_automate.py,sha256=9rDuRy0v-Ttq-SThid4lOB_tD4ibkyEmobiROpa--g4,25414
19
19
  berryworld/sharepoint_con.py,sha256=TuH-Vxk1VxjTi7x80KFssf_J8YPLRXpV27RBaFZi37U,22254
20
- berryworld/sql_conn.py,sha256=BgdjWkhuabwnz0G8k7AWr-WoY540FIFgY9ec6Mn3uVc,47399
20
+ berryworld/sql_conn.py,sha256=Mdvf2z7oKnPVpi8e4mydWaQSb4DkYMh_uLLhGpWIzMM,47452
21
21
  berryworld/sql_connection.py,sha256=u-2oNFC8cTP0nXkBGp62XjD06kukMFkwFMQ57CwsySQ,44364
22
22
  berryworld/teams_logging.py,sha256=8NwXyWr4fLj7W6GzAm2nRQCGFDxibQpAHDHHD24FrP8,6997
23
23
  berryworld/transportation_solver.py,sha256=AdJPekVNufweaKDZLWYIB9qSxeVti80LaoaD-4NCSjc,5038
@@ -29,8 +29,8 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  tests/test_allocation_config.py,sha256=e12l6fE9U57eSPS35g6ekJ_hol7-RHg89JV60_m1BlE,4633
30
30
  tests/test_handy_mix_config.py,sha256=Un56mz9KJmdn4K4OwzHAHLSRzDU1Xv2nFrONNuzOG04,2594
31
31
  tests/test_xml_parser.py,sha256=3QTlhFEd6KbK6nRFKZnc35tad6wqukTbe4QrFi8mr_8,859
32
- berryworld-1.0.0.175664.dist-info/LICENSE,sha256=vtkVCJM6E2af2gnsi2XxKPr4WY-uIbvzVLXieFND0UU,1074
33
- berryworld-1.0.0.175664.dist-info/METADATA,sha256=BjQ764W78A63Sdgp5X2yblu84MA4CZPlK7IKqW5yx_Q,1107
34
- berryworld-1.0.0.175664.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
35
- berryworld-1.0.0.175664.dist-info/top_level.txt,sha256=GIZ5qy-P5oxfEH755vA1IMFeTVdX3-40JxMe6nOe5I8,17
36
- berryworld-1.0.0.175664.dist-info/RECORD,,
32
+ berryworld-1.0.0.176826.dist-info/LICENSE,sha256=vtkVCJM6E2af2gnsi2XxKPr4WY-uIbvzVLXieFND0UU,1074
33
+ berryworld-1.0.0.176826.dist-info/METADATA,sha256=d7EymZKDEDB0wwI0JlhO_7lsTe9FM5h--fkOrcffZ3g,1107
34
+ berryworld-1.0.0.176826.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
35
+ berryworld-1.0.0.176826.dist-info/top_level.txt,sha256=GIZ5qy-P5oxfEH755vA1IMFeTVdX3-40JxMe6nOe5I8,17
36
+ berryworld-1.0.0.176826.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5