DE-Lib 0.0.36.4__py3-none-any.whl → 0.0.38__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/SQLite.py +1 -1
- DE_Lib/Utils/Generic.py +31 -2
- {de_lib-0.0.36.4.dist-info → de_lib-0.0.38.dist-info}/METADATA +3 -2
- {de_lib-0.0.36.4.dist-info → de_lib-0.0.38.dist-info}/RECORD +7 -7
- {de_lib-0.0.36.4.dist-info → de_lib-0.0.38.dist-info}/WHEEL +1 -1
- {de_lib-0.0.36.4.dist-info → de_lib-0.0.38.dist-info}/licenses/LICENCE +0 -0
- {de_lib-0.0.36.4.dist-info → de_lib-0.0.38.dist-info}/top_level.txt +0 -0
DE_Lib/DataBase/SQLite.py
CHANGED
DE_Lib/Utils/Generic.py
CHANGED
@@ -5,6 +5,9 @@ import random as rd
|
|
5
5
|
import re
|
6
6
|
import datetime as dt
|
7
7
|
import sys
|
8
|
+
import pyautogui
|
9
|
+
import pygetwindow as gw
|
10
|
+
from pywinauto import Application
|
8
11
|
|
9
12
|
|
10
13
|
class GENERIC:
|
@@ -265,6 +268,32 @@ class GENERIC:
|
|
265
268
|
return result
|
266
269
|
# endregion
|
267
270
|
|
268
|
-
|
269
|
-
|
271
|
+
@staticmethod
|
272
|
+
def mouse_move(self):
|
273
|
+
msg = result = None, None
|
274
|
+
try:
|
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
|
294
|
+
except Exception as error:
|
295
|
+
msg = error
|
296
|
+
result = msg
|
297
|
+
finally:
|
298
|
+
return result
|
270
299
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: DE_Lib
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.38
|
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
|
@@ -12,7 +12,7 @@ DE_Lib/DataBase/OracleDDL.py,sha256=8PDTjR52Igtj-FyPQvFUBRjTlXB7crMNB8Xh5LncB_Q,
|
|
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.38.dist-info/licenses/LICENCE,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
|
46
|
+
de_lib-0.0.38.dist-info/METADATA,sha256=x4WZVN3jB6QoZMWN_nY5MAhl5Mlrxw4PTcROglvB_0I,2315
|
47
|
+
de_lib-0.0.38.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
48
|
+
de_lib-0.0.38.dist-info/top_level.txt,sha256=yI9fdM_jkhCz_sykPZQbfeUbQ1FRMt-xjv9fJ6YZVLE,7
|
49
|
+
de_lib-0.0.38.dist-info/RECORD,,
|
File without changes
|
File without changes
|