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.2.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.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mozarbot-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ccc0d92f0d5bbf1f124c01d891c8317af4f9de60a5d42ef8d413550e0baafb34
MD5 bc5055267b1430cf3f4c07c625970b58
BLAKE2b-256 d0aea32cacd87527eb55b2fd5f41fa9bd106859205df1b4bf9feff43e324e831

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mozarbot-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 653d916ccc1da11407d0baaa762d1453b711ce1050076a0ab90fccdc37dece49
MD5 223f2e36440e1f4b33eb743a43b0f730
BLAKE2b-256 b3396c249cbc970aa4b9e6c7db5a35cd9891962156ebae20d9a03a8c0733ff32

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