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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

mozarbot-0.1.8-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mozarbot-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d647065ce3fc2e4edb610866eb656fb8a500cd9dc3e9fb6c4be19ab448944fe6
MD5 6b9665052470ad8fff6599816b63543d
BLAKE2b-256 3955306760b86de645b34e4aa9cb30c8e2655f3392017defb77ab05c3e5d1e8f

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