Skip to main content

SDK para automações do Mozarbot

Project description

RPA Client

Instalação

pip install mozarbot

Como usar?

from mozarbot.sdk import rpa

rpa.info(task_id, message)

Documentação

Para gerar alertas

rpa.info(task_id, message)
rpa.error(task_id, message)
rpa.warning(task_id, message)

Para retornar informações da execução atual

rpa.get_execution_data()

O retorno é um JSON com as informações da execução atual, com os seguintes campos:

{
  task: {
    id: string # ID da execução
    robotId: string # ID do robô
    runnerId: string # ID do runner
    automationId: string # ID da automação
  } | null
}

Para retornar informações dos parametros da execução atual

rpa.get_params(automation_id)

O retorno é um JSON com os parametros da execução atual, com os seguintes campos:

{
  parameters: [
    {
      id: string # ID do parametro
      type: string # Tipo do parametro
      label: string # Label do parametro
      required: boolean # Se o parametro é obrigatório
      defaultValue: string # Valor default do parametro
    }
  ]
}

Para retornar os secrets do automação

# label é opcional
rpa.get_secrets(label)

O retorno é um JSON com os secrets da automação, com os seguintes campos:

{
  secrets: [
    {
      id: string
      label: string
      value: string
    }
  ]
}

Para reportar o tempo de execução da task

rpa.report_saving(task_id, automation_id, time_spent)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mozarbot-0.1.7.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mozarbot-0.1.7-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file mozarbot-0.1.7.tar.gz.

File metadata

  • Download URL: mozarbot-0.1.7.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for mozarbot-0.1.7.tar.gz
Algorithm Hash digest
SHA256 916c7e4f711b5bfa39ad66e624ce07a2c51ca2f318551b7291edce04888b22b6
MD5 008c03c06ba0ef74dcdffa5f696d6e8a
BLAKE2b-256 478361c8c07c8069bd535226fea48f7e8f8854c131049fd3a6d1d30249c4b69e

See more details on using hashes here.

File details

Details for the file mozarbot-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: mozarbot-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for mozarbot-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d4f37ddf8121809f5aaddf6ca0bee755115356b15bca09249e3182c1c1356ab0
MD5 35d3ef85e13e0d544eedfe81708b1df8
BLAKE2b-256 6f8943d1a0fd35f52df0382e8a8b2f09310c04660216c46777be06e69ce480c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page