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.3.tar.gz (2.3 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.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mozarbot-0.1.3.tar.gz
  • Upload date:
  • Size: 2.3 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.3.tar.gz
Algorithm Hash digest
SHA256 b6142580d312542c6e83a83e4c20ddfc69676f76bfd0acd27fc5419515a0dfd0
MD5 8699d886cad053ed122345feea6809b7
BLAKE2b-256 cb2c2d5b56cd73ce9c73b660cf46399401d782e7bd0a4d08654c8a843a1a1d67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mozarbot-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b23fb5c49a0de8ff8d198c5eb7ef0761bf95d986fd13d6c0cc583ae79924c3e4
MD5 5cb96ec7907a4c1e29a9d83850f24ca2
BLAKE2b-256 b3dfb942abdc7eb41c3303c3b135e044fffcca7c1025ad794a4b95329d3b421e

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