A Python Package to deploy tasks on Automation Anywhere 360
Project description
Automation Anywhere Python API Integration
About
This Python module is used to talk to Automation Anywhere 360 and start Tasks on selected machines.
Automation Anywhere does have a basic check if the task was "asked to be deployed" successfully, albeit very simple, it's still better then nothing.
Install
There are some minimum dependencies:
pip install requests>=2.21
After installing them, you can proceed with the installation:
pip install automation_anywhere
Usage
As is, for the version 360, you can use the package to deploy a task as such:
from automation_anywhere.executor import Executor
base_url = 'https://your-automation-controlroom-url'
username = 'your-username'
password = 'your-password'
aa_executor = Executor(base_url, username, password)
devices, _, error = aa_executor.list_devices()
if error is not None:
# handle the error
pass
automations, _, error = aa_executor.list_automations(name='Test')
if error is not None:
# handle the error
pass
# Get the device id to execute, we'll just get the first one
device_id = int(devices[0]['id'])
# Get the automation id to execute, we'll just get the first one
automation_id = int(automations[0]['id'])
# Deploy
success, error, deployment_id, deployment_name = aa_executor.deploy(automation_id, [device_id])
if success:
# handle the error
pass
else:
print(f'Deployed on id {deployment_id} with name {deployment_name}')
aa_executor.logout()
The errors will come 100% from the APIs of the Control Room.
What about task status?
I'm still trying to figure out how this works on AA360. So for now, there's nothing regarding this.
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
Built Distribution
Hashes for automation_anywhere-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b89e54fbf64b57b0365cfa4b9a6317cb0e83c935a96d0445bf10af7154908dd0 |
|
MD5 | 1dd654e23d87028df107289219626f40 |
|
BLAKE2b-256 | 15531a71906d79b2244788308123b68f24d4c846e5f9fe800bba8c4f3d5df91a |
Hashes for automation_anywhere-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141a8150daaa20ad374a5a89f0500371b7eac935e5393ced140f0ef69d330267 |
|
MD5 | 16321873bcbe4070307e31d24cf43237 |
|
BLAKE2b-256 | 7bcccc101d0b005de02794a24514f76d64f17e5b47b9eeb3a4429a2b159f23e3 |