csc-cia-stne 0.1.6__py3-none-any.whl → 0.1.8__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.
@@ -426,3 +426,20 @@ class GoogleDrive:
426
426
  return {"success": True, "result": values}
427
427
  except Exception as e:
428
428
  return {"success": False, "result": None, "error": str(e)}
429
+
430
+ def delete_file(self, id_file:str):
431
+ """
432
+ Exclui um arquivo do Google Drive pelo seu ID.
433
+ Args:
434
+ id_file (str): O ID do arquivo a ser excluído.
435
+ Returns:
436
+ dict: Um dicionário indicando se a exclusão foi bem-sucedida.
437
+ - {"success": True} se o arquivo foi excluído com sucesso.
438
+ - {"success": False, "error": <mensagem de erro>} se ocorreu uma exceção.
439
+ """
440
+
441
+ try:
442
+ self.service.files().delete(fileId=id_file, supportsAllDrives=True).execute()
443
+ return {"success": True}
444
+ except Exception as e:
445
+ return {"success": False, "error": str(e)}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csc_cia_stne
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs
5
5
  License: MIT
6
6
  Keywords: karavela,csc,cia,stone,rpa,botcity,stne
@@ -5,7 +5,7 @@ csc_cia_stne/email.py,sha256=K0DcgxTPKa_Rz_SJekjbW8Nw_1L9s_iuDDxZ-69bZfM,8387
5
5
  csc_cia_stne/ftp.py,sha256=M9WCaq2hm56jGyszNaPinliFaZS0BNrT7VrVPMjkMg4,10988
6
6
  csc_cia_stne/gcp_bigquery.py,sha256=foq8azvvv_f7uikMDslX9RcUIrx7RAS-Sn0AGW0QFQc,7231
7
7
  csc_cia_stne/gcp_bucket.py,sha256=nP77BtagZ7jQq6lS88ZEa1qshzBza6e_LvhgS3_JJJk,10268
8
- csc_cia_stne/google_drive.py,sha256=HJt9hT56sz7xI7KFojvpXp1m45rk-v4cNLgPPCBfOVM,16393
8
+ csc_cia_stne/google_drive.py,sha256=j1fvHpgU76_VqCtSEe05JXLOgNwNNfrP6GRKq6eU4b4,17074
9
9
  csc_cia_stne/karavela.py,sha256=jJCYX43D49gGuzmwwK6bN9XVnv2dXdp9iHnnV5H1LMQ,4794
10
10
  csc_cia_stne/logger_json.py,sha256=CXxSCOFGMymDi8XE9SKnPKjW4D0wJLqDLnxqePS26i8,3187
11
11
  csc_cia_stne/logger_rich.py,sha256=fklgkBb4rblKQd7YZ3q-eWfhGg9eflO2k2-z4pGh_yo,5201
@@ -36,8 +36,8 @@ csc_cia_stne/utilitarios/web_screen/__init__.py,sha256=5QcOPXKd95SvP2DoZiHS0gaU6
36
36
  csc_cia_stne/utilitarios/web_screen/web_screen_abstract.py,sha256=PjL8Vgfj_JdKidia7RFyCkro3avYLQu4RZRos41sh3w,3241
37
37
  csc_cia_stne/utilitarios/web_screen/web_screen_botcity.py,sha256=Xi5YJjl2pcxlX3OimqcBWRNXZEpAE7asyUjDJ4Oho5U,12297
38
38
  csc_cia_stne/utilitarios/web_screen/web_screen_selenium.py,sha256=JLIcPJE9ZX3Pd6zG6oTRMqqUAY063UzLY3ReRlxmiSM,15581
39
- csc_cia_stne-0.1.6.dist-info/licenses/LICENCE,sha256=LPGMtgKki2C3KEZP7hDhA1HBrlq5JCHkIeStUCLEMx4,1073
40
- csc_cia_stne-0.1.6.dist-info/METADATA,sha256=BAZ4tL1AjESVs5jqb3mZlmrHLjXgO8mqYoJfEk8bGwU,1463
41
- csc_cia_stne-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
- csc_cia_stne-0.1.6.dist-info/top_level.txt,sha256=ldo7GVv3tQx5KJvwBzdZzzQmjPys2NDVVn1rv0BOF2Q,13
43
- csc_cia_stne-0.1.6.dist-info/RECORD,,
39
+ csc_cia_stne-0.1.8.dist-info/licenses/LICENCE,sha256=LPGMtgKki2C3KEZP7hDhA1HBrlq5JCHkIeStUCLEMx4,1073
40
+ csc_cia_stne-0.1.8.dist-info/METADATA,sha256=JmBuri0NY3N1JNf0oQGJ8HnEIay5iOj0TNM-SGKRkYw,1463
41
+ csc_cia_stne-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
+ csc_cia_stne-0.1.8.dist-info/top_level.txt,sha256=ldo7GVv3tQx5KJvwBzdZzzQmjPys2NDVVn1rv0BOF2Q,13
43
+ csc_cia_stne-0.1.8.dist-info/RECORD,,