DE-Lib 0.0.36.2__tar.gz → 0.0.37__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 (54) hide show
  1. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_LIB.egg-info/PKG-INFO +1 -1
  2. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/MsSql.py +2 -2
  3. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/OracleDDL.py +1 -1
  4. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Generic.py +18 -0
  5. {de_lib-0.0.36.2 → de_lib-0.0.37}/PKG-INFO +1 -1
  6. {de_lib-0.0.36.2 → de_lib-0.0.37}/setup.py +2 -1
  7. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_LIB.egg-info/SOURCES.txt +0 -0
  8. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_LIB.egg-info/dependency_links.txt +0 -0
  9. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_LIB.egg-info/requires.txt +0 -0
  10. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_LIB.egg-info/top_level.txt +0 -0
  11. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Cloud/__init__.py +0 -0
  12. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/Azure.py +0 -0
  13. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/Cache.py +0 -0
  14. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/Firebird.py +0 -0
  15. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/Informix.py +0 -0
  16. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/Metadata.py +0 -0
  17. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/MySql.py +0 -0
  18. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/Oracle.py +0 -0
  19. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/Postgres.py +0 -0
  20. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/RedShift.py +0 -0
  21. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/SQCipher.py +0 -0
  22. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/SQLite.py +0 -0
  23. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/DataBase/__init__.py +0 -0
  24. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Files/Avro.py +0 -0
  25. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Files/Csv.py +0 -0
  26. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Files/JSon.py +0 -0
  27. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Files/Parquet.py +0 -0
  28. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Files/Txt.py +0 -0
  29. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Files/Xlsx.py +0 -0
  30. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Files/Zip.py +0 -0
  31. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Files/__init__.py +0 -0
  32. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Log/DE_LogEventos.py +0 -0
  33. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Log/Level.py +0 -0
  34. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Log/Log.py +0 -0
  35. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Log/__init__.py +0 -0
  36. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Cipher/Aes.py +0 -0
  37. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Cipher/Argon.py +0 -0
  38. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Cipher/Base64.py +0 -0
  39. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Cipher/Cipher.py +0 -0
  40. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Cipher/Fernet.py +0 -0
  41. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Cipher/Gcm.py +0 -0
  42. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Cipher/Pbkdf2.py +0 -0
  43. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Cipher/Rsa.py +0 -0
  44. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Cipher/__init__.py +0 -0
  45. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Colors.py +0 -0
  46. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/DateUtils.py +0 -0
  47. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/Sql.py +0 -0
  48. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/System.py +0 -0
  49. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/WebHook.py +0 -0
  50. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/Utils/__init__.py +0 -0
  51. {de_lib-0.0.36.2 → de_lib-0.0.37}/DE_Lib/__init__.py +0 -0
  52. {de_lib-0.0.36.2 → de_lib-0.0.37}/LICENCE +0 -0
  53. {de_lib-0.0.36.2 → de_lib-0.0.37}/README.md +0 -0
  54. {de_lib-0.0.36.2 → de_lib-0.0.37}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DE_Lib
3
- Version: 0.0.36.2
3
+ Version: 0.0.37
4
4
  Summary: Biblioteca de funcionalidades
5
5
  Home-page: https://github.com/DE-DATAx/DAX_DB.git
6
6
  Author: Almir J Gomes
@@ -1,4 +1,4 @@
1
- import pymssql as mssql
1
+ import pymssql as mssql ## biblioteca suportada ate a versao 3.9 ou 3.10 do python
2
2
 
3
3
  from DE_Lib.Utils import Generic
4
4
 
@@ -15,7 +15,7 @@ class MSSQL:
15
15
  msg, conn = None, None
16
16
  try:
17
17
  # Efetuando a conexao com a instancia do BANCO
18
- conn = mssql.connect(user=string_connect["username"], password=string_connect["password"], database=string_connect["instance"], server=string_connect["host"])
18
+ result = mssql.connect(user=string_connect["username"], password=string_connect["password"], database=string_connect["instance"], server=string_connect["host"])
19
19
  self._connection_is_valid = True
20
20
  self._cnn = result
21
21
  self.__database_error = f"""{json.dumps(string_connect, indent=4).replace(string_connect["password"], "******")}\nConexao bem sucedida!"""
@@ -55,7 +55,7 @@ class OracleDDL:
55
55
  def truncate_table(self, table_name):
56
56
  msg = result = None, None
57
57
  try:
58
- truncate_table = f"TRUNCATE TABLE {table_name}"
58
+ result = f"TRUNCATE TABLE {table_name}"
59
59
  except Exception as error:
60
60
  msg = error
61
61
  result = msg
@@ -5,6 +5,9 @@ import random as rd
5
5
  import re
6
6
  import datetime as dt
7
7
  import sys
8
+ import os
9
+
10
+ from docutils.io import error_string
8
11
 
9
12
 
10
13
  class GENERIC:
@@ -263,6 +266,21 @@ class GENERIC:
263
266
  result = False
264
267
  finally:
265
268
  return result
269
+
270
+ @staticmethod
271
+ def get_file(filename: str, encoding: str = "utf-8"):
272
+ msg, result = None, None
273
+ try:
274
+ if os.path.exists(filename):
275
+ fh = open(filename, 'r', encoding=encoding)
276
+ result = fh.read()
277
+ except Exception as error:
278
+ msg = error
279
+ result = msg
280
+ finally:
281
+ return result
282
+
283
+
266
284
  # endregion
267
285
 
268
286
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DE_Lib
3
- Version: 0.0.36.2
3
+ Version: 0.0.37
4
4
  Summary: Biblioteca de funcionalidades
5
5
  Home-page: https://github.com/DE-DATAx/DAX_DB.git
6
6
  Author: Almir J Gomes
@@ -1,7 +1,8 @@
1
1
  from setuptools import setup, find_packages
2
2
  setup(
3
3
  name='DE_Lib',
4
- version='0.0.36.2',
4
+ version='0.0.37'
5
+ ,
5
6
  author='Almir J Gomes',
6
7
  author_email='almir.jg@hotmail.com',
7
8
  packages=find_packages(),
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