DE-Lib 0.0.37__py3-none-any.whl → 0.0.39__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.
- DE_Lib/DataBase/MsSql.py +2 -2
- DE_Lib/DataBase/SQLite.py +1 -1
- DE_Lib/Utils/Generic.py +25 -14
- {de_lib-0.0.37.dist-info → de_lib-0.0.39.dist-info}/METADATA +3 -2
- {de_lib-0.0.37.dist-info → de_lib-0.0.39.dist-info}/RECORD +8 -8
- {de_lib-0.0.37.dist-info → de_lib-0.0.39.dist-info}/WHEEL +0 -0
- {de_lib-0.0.37.dist-info → de_lib-0.0.39.dist-info}/licenses/LICENCE +0 -0
- {de_lib-0.0.37.dist-info → de_lib-0.0.39.dist-info}/top_level.txt +0 -0
DE_Lib/DataBase/MsSql.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import pymssql as mssql
|
1
|
+
import pymssql as mssql
|
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
|
-
|
18
|
+
conn = 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!"""
|
DE_Lib/DataBase/SQLite.py
CHANGED
DE_Lib/Utils/Generic.py
CHANGED
@@ -5,9 +5,9 @@ import random as rd
|
|
5
5
|
import re
|
6
6
|
import datetime as dt
|
7
7
|
import sys
|
8
|
-
import
|
9
|
-
|
10
|
-
from
|
8
|
+
import pyautogui
|
9
|
+
import pygetwindow as gw
|
10
|
+
from pywinauto import Application
|
11
11
|
|
12
12
|
|
13
13
|
class GENERIC:
|
@@ -266,23 +266,34 @@ class GENERIC:
|
|
266
266
|
result = False
|
267
267
|
finally:
|
268
268
|
return result
|
269
|
+
# endregion
|
269
270
|
|
270
271
|
@staticmethod
|
271
|
-
def
|
272
|
-
msg
|
272
|
+
def mouse_move(self):
|
273
|
+
msg = result = None, None
|
273
274
|
try:
|
274
|
-
|
275
|
-
|
276
|
-
|
275
|
+
# print([w.title for w in gw.getAllWindows()])
|
276
|
+
# janela = gw.getWindowsWithTitle('Teams')
|
277
|
+
# janela[0].activate() # traz para frente
|
278
|
+
# #time.sleep(0.5)
|
279
|
+
# janela[0].maximize() # op
|
280
|
+
# app = Application().connect(title_re=".*Teams.*") # ou outro app
|
281
|
+
# app.top_window().set_focus()
|
282
|
+
now = dt.datetime.now()
|
283
|
+
date_start = dt.datetime(year=now.year, month=now.month, day=now.day, hour=0, minute=0, second=0)
|
284
|
+
date_end = dt.datetime(year=now.year, month=now.month, day=now.day, hour=18, minute=0, second=0)
|
285
|
+
print("Simulando atividade... Pressione Ctrl+C para parar.")
|
286
|
+
#while True:
|
287
|
+
while True:
|
288
|
+
if dt.datetime.now() >= date_start and dt.datetime.now() <= date_end:
|
289
|
+
pyautogui.moveRel(xOffset=0, yOffset=1, duration=0.1) # move o mouse 1 pixel pra baixo
|
290
|
+
pyautogui.moveRel(xOffset=0, yOffset=-1, duration=0.1) # e volta
|
291
|
+
#pyautogui.click()
|
292
|
+
else:
|
293
|
+
break
|
277
294
|
except Exception as error:
|
278
295
|
msg = error
|
279
296
|
result = msg
|
280
297
|
finally:
|
281
298
|
return result
|
282
299
|
|
283
|
-
|
284
|
-
# endregion
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: DE_Lib
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.39
|
4
4
|
Summary: Biblioteca de funcionalidades
|
5
|
-
Home-page: https://github.com/DE-
|
5
|
+
Home-page: https://github.com/DE-DataEng/DE_Lib.git
|
6
6
|
Author: Almir J Gomes
|
7
7
|
Author-email: almir.jg@hotmail.com
|
8
8
|
Description-Content-Type: text/markdown
|
@@ -17,6 +17,7 @@ Requires-Dist: redshift-connector
|
|
17
17
|
Requires-Dist: SQLAlchemy==2.0.38
|
18
18
|
Requires-Dist: bcrypt==4.3.0
|
19
19
|
Requires-Dist: argon2-cffi==23.1.0
|
20
|
+
Requires-Dist: pyautogui
|
20
21
|
Dynamic: author
|
21
22
|
Dynamic: author-email
|
22
23
|
Dynamic: description
|
@@ -5,14 +5,14 @@ DE_Lib/DataBase/Cache.py,sha256=IpTJCVCrtm8Et4U-_AaWoT_2vf7mBqdzYrWDXbpOORE,3171
|
|
5
5
|
DE_Lib/DataBase/Firebird.py,sha256=dXjt3ImVtdiW99NAHcDIzZhGHF_YIyn4RJbM2QR4g7s,1898
|
6
6
|
DE_Lib/DataBase/Informix.py,sha256=jXqPggYu8PjGrqtxMHwlCsqF5rK03olas5yVMH0Ndkw,1559
|
7
7
|
DE_Lib/DataBase/Metadata.py,sha256=j0iJm26Sf0QvsYpN61hfwkllyW2EOA2XoFnSzEo9plE,3274
|
8
|
-
DE_Lib/DataBase/MsSql.py,sha256=
|
8
|
+
DE_Lib/DataBase/MsSql.py,sha256=tVx7fdFkw1ZNhfjqw-KuyHtT-hqJ9ZNCR2iU_ogSUVk,1640
|
9
9
|
DE_Lib/DataBase/MySql.py,sha256=SWLJMaB30EBqaz32xwMBbc3lnemDPpF2kkkf5umlL3k,2534
|
10
10
|
DE_Lib/DataBase/Oracle.py,sha256=n9ub6J6zNX4z62pUWjut3PGxXzLDZQ9jVhZ6eGzFPEw,9704
|
11
11
|
DE_Lib/DataBase/OracleDDL.py,sha256=8PDTjR52Igtj-FyPQvFUBRjTlXB7crMNB8Xh5LncB_Q,3785
|
12
12
|
DE_Lib/DataBase/Postgres.py,sha256=lMb6sFGvjjuuq4D4k7zzEo7-NtyrC79VITeKQfoDO6U,1667
|
13
13
|
DE_Lib/DataBase/RedShift.py,sha256=ewPi8hxEhfuekBpMl-P1LWgSGfbqPKRpXfjtduCwOKc,1736
|
14
14
|
DE_Lib/DataBase/SQCipher.py,sha256=Bw7nq4tQdhM7ux0INF9PUymsIIjBEwMKcA1Un8orCE8,1625
|
15
|
-
DE_Lib/DataBase/SQLite.py,sha256=
|
15
|
+
DE_Lib/DataBase/SQLite.py,sha256=_KScVOmF-dZGQDGVYTUkmXJdsJJDzR8VORH50HBaCLA,2342
|
16
16
|
DE_Lib/DataBase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
17
|
DE_Lib/Files/Avro.py,sha256=hVXwoOSESHzWROBNYSDOu4myIrcRqSiPqGLRA40vJAk,527
|
18
18
|
DE_Lib/Files/Csv.py,sha256=8mpD2g4Ej2RHQvxMODEpBDbxMV5pWJ8dJHyO8YZchuk,2430
|
@@ -28,7 +28,7 @@ DE_Lib/Log/Log.py,sha256=NyraX9ZpM7XJN4S4o5nYaFdOTH35EAFP9w7GaTFrflk,18839
|
|
28
28
|
DE_Lib/Log/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
29
|
DE_Lib/Utils/Colors.py,sha256=REjcEK2QuhAo7RzRtHtib8EDMf-12TIsZDGJUCfuaTY,5984
|
30
30
|
DE_Lib/Utils/DateUtils.py,sha256=Xl4PIxj66nqj11WAKEzPAc_SGtVzheg97D--jdJEAjc,7818
|
31
|
-
DE_Lib/Utils/Generic.py,sha256=
|
31
|
+
DE_Lib/Utils/Generic.py,sha256=3AUC9lugTxkBLg-TGM3Si1tzOTd_MlJXyPIP1jIKPdI,10608
|
32
32
|
DE_Lib/Utils/Sql.py,sha256=KOEfISWTF4MCydFXlO4z5z-gigU63yH-3eNXK_ss7JI,2646
|
33
33
|
DE_Lib/Utils/System.py,sha256=0ICuCbN9ElNKL6XOd8mtwdiaooN5SRnMwKkMnTd5m_0,3405
|
34
34
|
DE_Lib/Utils/WebHook.py,sha256=dHGP-20z4Q1_FapitEFBiiMlA8fIFlgf9QT4c5pnWfQ,713
|
@@ -42,8 +42,8 @@ DE_Lib/Utils/Cipher/Gcm.py,sha256=fOuCVOyd4sGv389E91yqomujKTtFZu6CyhySrmQKVfY,23
|
|
42
42
|
DE_Lib/Utils/Cipher/Pbkdf2.py,sha256=hRkgf0Fo5hV1gLbWlFGFzhYYUjPEqgpB2R-pPw7N2F8,1210
|
43
43
|
DE_Lib/Utils/Cipher/Rsa.py,sha256=MYG1YsGuq-Q-MoF6pmeMD0TyxMTwt6tuUaLvXcmzQ2k,4126
|
44
44
|
DE_Lib/Utils/Cipher/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
45
|
-
de_lib-0.0.
|
46
|
-
de_lib-0.0.
|
47
|
-
de_lib-0.0.
|
48
|
-
de_lib-0.0.
|
49
|
-
de_lib-0.0.
|
45
|
+
de_lib-0.0.39.dist-info/licenses/LICENCE,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
|
46
|
+
de_lib-0.0.39.dist-info/METADATA,sha256=9jhVq0fl4rKW3cmIPj0hKkVjbejDUVl1VXRH9nF2gD0,2315
|
47
|
+
de_lib-0.0.39.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
48
|
+
de_lib-0.0.39.dist-info/top_level.txt,sha256=yI9fdM_jkhCz_sykPZQbfeUbQ1FRMt-xjv9fJ6YZVLE,7
|
49
|
+
de_lib-0.0.39.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|