worker-automate-hub 0.4.383__tar.gz → 0.4.385__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/PKG-INFO +1 -1
  2. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/pyproject.toml +1 -1
  3. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +2 -2
  4. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +2 -2
  5. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +2 -2
  6. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +2 -2
  7. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +2 -2
  8. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +2 -5
  9. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +2 -2
  10. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +2 -2
  11. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +3 -5
  12. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/README.md +0 -0
  13. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/__init__.py +0 -0
  14. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/api/__init__.py +0 -0
  15. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/api/ahead_service.py +0 -0
  16. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/api/client.py +0 -0
  17. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/api/helpers/__init__.py +0 -0
  18. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
  19. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/api/rpa_historico_service.py +0 -0
  20. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/cli.py +0 -0
  21. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/config/__init__.py +0 -0
  22. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/config/settings.py +0 -0
  23. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/config.py +0 -0
  24. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/core/so_manipulation.py +0 -0
  25. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/decorators/__init__.py +0 -0
  26. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/decorators/deprecation.py +0 -0
  27. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/decorators/rate_limit.py +0 -0
  28. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/decorators/repeat.py +0 -0
  29. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/decorators/retry.py +0 -0
  30. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/decorators/singleton.py +0 -0
  31. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/decorators/timeit.py +0 -0
  32. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/models/__init__.py +0 -0
  33. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/models/dao/__init__.py +0 -0
  34. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
  35. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
  36. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
  37. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/models/dto/__init__.py +0 -0
  38. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
  39. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
  40. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
  41. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/__init__.py +0 -0
  42. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
  43. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
  44. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
  45. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/descartes.py +0 -0
  46. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
  47. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
  48. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
  49. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
  50. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
  51. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
  52. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
  53. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
  54. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +0 -0
  55. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
  56. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
  57. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
  58. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
  59. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/playground.py +0 -0
  60. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
  61. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/jobs/transferencias.py +0 -0
  62. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/task_definitions.py +0 -0
  63. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/tasks/task_executor.py +0 -0
  64. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/utils/__init__.py +0 -0
  65. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/utils/env.py +0 -0
  66. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
  67. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/utils/logger.py +0 -0
  68. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/utils/toast.py +0 -0
  69. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/utils/updater.py +0 -0
  70. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/utils/util.py +0 -0
  71. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
  72. {worker_automate_hub-0.4.383 → worker_automate_hub-0.4.385}/worker_automate_hub/worker.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: worker-automate-hub
3
- Version: 0.4.383
3
+ Version: 0.4.385
4
4
  Summary: Worker Automate HUB é uma aplicação para automatizar rotinas de RPA nos ambientes Argenta.
5
5
  Author: Joel Paim
6
6
  Requires-Python: >=3.12,<4.0
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "worker-automate-hub"
3
- version = "0.4.383"
3
+ version = "0.4.385"
4
4
  description = "Worker Automate HUB é uma aplicação para automatizar rotinas de RPA nos ambientes Argenta."
5
5
  authors = ["Joel Paim"]
6
6
  readme = "README.md"
@@ -32,7 +32,7 @@ from worker_automate_hub.utils.util import (
32
32
  is_window_open,
33
33
  is_window_open_by_class,
34
34
  itens_not_found_supplier,
35
- kill_process,
35
+ kill_all_emsys,
36
36
  login_emsys,
37
37
  read_xml_file,
38
38
  select_documento_type,
@@ -64,7 +64,7 @@ async def entrada_de_notas_207(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
64
64
  set_variable("timeout_multiplicador", multiplicador_timeout)
65
65
 
66
66
  # Fecha a instancia do emsys - caso esteja aberta
67
- await kill_process("EMSys")
67
+ await kill_all_emsys()
68
68
 
69
69
  # Download XML
70
70
  console.log("Realizando o download do XML..\n")
@@ -41,7 +41,7 @@ from worker_automate_hub.utils.util import (
41
41
  is_window_open,
42
42
  is_window_open_by_class,
43
43
  itens_not_found_supplier,
44
- kill_process,
44
+ kill_all_emsys,
45
45
  login_emsys,
46
46
  rateio_despesa,
47
47
  select_documento_type,
@@ -76,7 +76,7 @@ async def entrada_de_notas_32(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
76
76
  set_variable("timeout_multiplicador", multiplicador_timeout)
77
77
 
78
78
  # Fecha a instancia do emsys - caso esteja aberta
79
- await kill_process("EMSys")
79
+ await kill_all_emsys()
80
80
 
81
81
  # Download XML
82
82
  console.log("Realizando o download do XML..\n")
@@ -38,7 +38,7 @@ from worker_automate_hub.utils.util import (
38
38
  is_window_open,
39
39
  is_window_open_by_class,
40
40
  itens_not_found_supplier,
41
- kill_process,
41
+ kill_all_emsys,
42
42
  login_emsys,
43
43
  rateio_despesa,
44
44
  select_documento_type,
@@ -72,7 +72,7 @@ async def entrada_de_notas_33(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
72
72
  set_variable("timeout_multiplicador", multiplicador_timeout)
73
73
 
74
74
  # Fecha a instancia do emsys - caso esteja aberta
75
- await kill_process("EMSys")
75
+ await kill_all_emsys()
76
76
 
77
77
  # Download XML
78
78
  console.log("Realizando o download do XML..\n")
@@ -38,7 +38,7 @@ from worker_automate_hub.utils.util import (
38
38
  is_window_open,
39
39
  is_window_open_by_class,
40
40
  itens_not_found_supplier,
41
- kill_process,
41
+ kill_all_emsys,
42
42
  login_emsys,
43
43
  rateio_despesa,
44
44
  select_documento_type,
@@ -72,7 +72,7 @@ async def entrada_de_notas_34(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
72
72
  set_variable("timeout_multiplicador", multiplicador_timeout)
73
73
 
74
74
  # Fecha a instancia do emsys - caso esteja aberta
75
- await kill_process("EMSys")
75
+ await kill_all_emsys()
76
76
 
77
77
  # Download XML
78
78
  console.log("Realizando o download do XML..\n")
@@ -37,7 +37,7 @@ from worker_automate_hub.utils.util import (
37
37
  is_window_open,
38
38
  is_window_open_by_class,
39
39
  itens_not_found_supplier,
40
- kill_process,
40
+ kill_all_emsys,
41
41
  login_emsys,
42
42
  select_documento_type,
43
43
  carregamento_import_xml,
@@ -69,7 +69,7 @@ async def entrada_de_notas_36(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
69
69
  set_variable("timeout_multiplicador", multiplicador_timeout)
70
70
 
71
71
  # Fecha a instancia do emsys - caso esteja aberta
72
- await kill_process("EMSys")
72
+ await kill_all_emsys()
73
73
 
74
74
  # Download XML
75
75
  console.log("Realizando o download do XML..\n")
@@ -34,7 +34,7 @@ from worker_automate_hub.utils.util import (
34
34
  is_window_open,
35
35
  is_window_open_by_class,
36
36
  itens_not_found_supplier,
37
- kill_process,
37
+ kill_all_emsys,
38
38
  login_emsys,
39
39
  select_documento_type,
40
40
  select_nop_document_type,
@@ -66,7 +66,7 @@ async def entrada_de_notas_500(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
66
66
  set_variable("timeout_multiplicador", multiplicador_timeout)
67
67
 
68
68
  # Fecha a instancia do emsys - caso esteja aberta
69
- await kill_process("EMSys")
69
+ await kill_all_emsys()
70
70
 
71
71
  #Verifica se a nota ja foi lançada
72
72
  console.print("\nVerifica se a nota ja foi lançada...")
@@ -619,6 +619,3 @@ async def entrada_de_notas_500(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
619
619
  logger.error(observacao)
620
620
  console.print(observacao, style="bold red")
621
621
  return {"sucesso": False, "retorno": observacao}
622
-
623
- finally:
624
- await kill_process("EMSys")
@@ -32,7 +32,7 @@ from worker_automate_hub.utils.util import (
32
32
  is_window_open,
33
33
  is_window_open_by_class,
34
34
  itens_not_found_supplier,
35
- kill_process,
35
+ kill_all_emsys,
36
36
  login_emsys,
37
37
  select_documento_type,
38
38
  set_variable,
@@ -63,7 +63,7 @@ async def entrada_de_notas_505(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
63
63
  set_variable("timeout_multiplicador", multiplicador_timeout)
64
64
 
65
65
  # Fecha a instancia do emsys - caso esteja aberta
66
- await kill_process("EMSys")
66
+ await kill_all_emsys()
67
67
 
68
68
  # Download XML
69
69
  console.log("Realizando o download do XML..\n")
@@ -30,7 +30,7 @@ from worker_automate_hub.utils.util import (
30
30
  is_window_open,
31
31
  is_window_open_by_class,
32
32
  itens_not_found_supplier,
33
- kill_process,
33
+ kill_all_emsys,
34
34
  login_emsys,
35
35
  select_documento_type,
36
36
  set_variable,
@@ -61,7 +61,7 @@ async def entrada_de_notas_7139(task: RpaProcessoEntradaDTO) -> RpaRetornoProces
61
61
  set_variable("timeout_multiplicador", multiplicador_timeout)
62
62
 
63
63
  # Fecha a instancia do emsys - caso esteja aberta
64
- await kill_process("EMSys")
64
+ await kill_all_emsys()
65
65
 
66
66
  # Download XML
67
67
  console.log("Realizando o download do XML..\n")
@@ -35,7 +35,7 @@ from worker_automate_hub.utils.util import (
35
35
  is_window_open,
36
36
  is_window_open_by_class,
37
37
  itens_not_found_supplier,
38
- kill_process,
38
+ kill_all_emsys,
39
39
  login_emsys,
40
40
  select_documento_type,
41
41
  set_variable,
@@ -66,7 +66,7 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
66
66
  set_variable("timeout_multiplicador", multiplicador_timeout)
67
67
 
68
68
  # Fecha a instancia do emsys - caso esteja aberta
69
- await kill_process("EMSys")
69
+ await kill_all_emsys()
70
70
 
71
71
  # Download XML
72
72
  console.log("Realizando o download do XML..\n")
@@ -652,9 +652,7 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
652
652
  )
653
653
  console.print(f"Processo de incluir pagamento realizado com sucesso... \n")
654
654
  elif (not "vibra" in nota.get("nomeFornecedor").lower() and vencimento == False):
655
- pattern = r"Vcto:\s*(\d{2}/\d{2}/\d{4})"
656
- match = re.search(pattern, nota.get("observacoes"))
657
- data_vencimento = match.group(1) if match else None
655
+ data_vencimento = nota.get("dataVencimento")
658
656
 
659
657
  await worker_sleep(2)
660
658
  console.print(f"Removendo registro de parcelamento do pagamento... \n")