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
Release history Release notifications | RSS feed
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.9.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mozarbot-0.1.9.tar.gz.
File metadata
- Download URL: mozarbot-0.1.9.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98f2dbc536535dd39de2a1c056f6a5e0970cbd22637f978fc38e0443099036c7
|
|
| MD5 |
91d256a3973bf47e76c20c1431092062
|
|
| BLAKE2b-256 |
707bb91c70ce2fe554fc8c8da989c04ff15f7bc2a4630d1fbb8cc5712f18364f
|
File details
Details for the file mozarbot-0.1.9-py3-none-any.whl.
File metadata
- Download URL: mozarbot-0.1.9-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
028fba1af4791bfa6a9b8df184c4b2ba19152047250b3a4ac0dec7d021829450
|
|
| MD5 |
289b7d7bd6ddca32f7ad8055f5d8c45d
|
|
| BLAKE2b-256 |
31418cbc277bc3eddb7fe05c41469b58c7b45efc63deb27db5582695dc183681
|