The automation framework for Python
Project description
robocorp-tasks
robocorp-tasks
is a Python framework designed to simplify the development
of Python automations.
Why
While Python is widely used in the automation world, many solutions end up being ad-hoc, making it difficult to navigate different projects and keep up with the features required for analysing the results of such automations afterwards.
How
robocorp-tasks
provides a runner for running tasks that offers logging
out of the box for Python code (showing method calls, arguments, assigns, etc)
by leveraging robocorp-log
, and managing the lifecycle for running such tasks.
Getting started
Replace the code in your __main__
with a method that has the name of your task
(which should not have parameters) and decorate it with the @task
decorator, like this:
i.e.:
from robocorp.tasks import task
@task
def my_task():
...
- Call your task using the command line below, customizing the directory and task name as needed:
python -m robocorp.tasks run <path/to/file.py or directory> -t <task_name>
Note: if you have only one defined task in your target, the -t <task_name>
option is not needed.
Note: the task name is the name of the method decorated with @task
.
Note: if a directory is given, only files named *task*.py
will be used for collection.
Note: in the current version only one task can be run per invocation. If more than one task is found an error will be given and no tasks will be run.
- View the log results in
output/log.html
.
Guides
API Reference
Information on specific functions or classes: robocorp.tasks
Changelog
A list of releases and corresponding changes can be found in the changelog.
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
File details
Details for the file robocorp_tasks-3.0.0.tar.gz
.
File metadata
- Download URL: robocorp_tasks-3.0.0.tar.gz
- Upload date:
- Size: 33.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f203703ef6148dc56f1a122358a625d2e4e33217403a2dbd633dcd814f44453d |
|
MD5 | 21ba43ed486b276506e8ea6957812056 |
|
BLAKE2b-256 | 37a60825ac8098b7e303415b54e9145654c83af881d7b71af707d4254e0bb7a7 |
File details
Details for the file robocorp_tasks-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: robocorp_tasks-3.0.0-py3-none-any.whl
- Upload date:
- Size: 40.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 327fd7fe03e9430e1fb8dd31221355061142310bc1289934112abcd6ccda4cee |
|
MD5 | c7671d9bf02c0d2b8354bd53bf82ee8f |
|
BLAKE2b-256 | 51975966b156f87dddbb310365b7bf5a7d47a1f8a4513aca4b86dc2990357ca7 |