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.5.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.5.tar.gz.
File metadata
- Download URL: mozarbot-0.1.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ff27ce82c40f693ccbf0ca78b9a09f7ffb025ed16d0a3c56f4cdf029fc3790e
|
|
| MD5 |
316b1ddb42b7540972c817c227b7aaff
|
|
| BLAKE2b-256 |
9464f255f9e11c48b45722966384bac5bb6fe26d78e8b94e2d9c2bbdf53e4302
|
File details
Details for the file mozarbot-0.1.5-py3-none-any.whl.
File metadata
- Download URL: mozarbot-0.1.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b31a4815e91c78ae04c150cdb91713ffa539e5bb1d887c108ed9c31751dc50be
|
|
| MD5 |
7a078943c4a2c8f90cc3c92a5dd2bc65
|
|
| BLAKE2b-256 |
c3245704a6acc69f3bdd5214a15ca3caeb020d6d88487ec9e883a61213ba4004
|