skillfed

robocorp-tasks

The automation framework for Python

robocorp-tasks v4.1.1 335.6K downloads/30d#7,474 on PyPI646
Permissive license Apache-2.0 Active released

What it is and what it does

robocorp-tasks is a Python framework that standardizes how you write and run automation scripts. Instead of ad-hoc scripts, you decorate functions with @task and run them through a managed runner that handles logging, lifecycle events, and result capture automatically. The framework integrates robocorp-log to provide detailed execution traces—method calls, arguments, variable assignments—and outputs structured logs to HTML for post-execution analysis.

You define tasks as parameterless functions decorated with @task, then invoke them via command line (python -m robocorp.tasks run <path> -t <task_name>). The runner discovers tasks from files matching *task*.py patterns, manages one task per invocation, and produces an output/log.html report. It's designed for teams building multiple automation projects who need consistency, observability, and maintainability across different codebases.

Use it for:

  • Build repeatable RPA workflows with automatic detailed logging and HTML result reports.
  • Standardize task structure across a team's automation projects to reduce ad-hoc script sprawl.
  • Debug automation failures by reviewing structured execution logs showing all method calls and state changes.
  • Integrate Python automations into CI/CD pipelines with a consistent command-line interface.
  • Set up and tear down test environments or data pipelines with lifecycle-managed task execution.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

robocorp-tasks is a Python framework for building and running automation tasks with built-in logging and lifecycle management, using a simple decorator-based API.

Yes. robocorp-tasks is production-stable, actively maintained, has low install friction, carries no known vulnerabilities, and solves a real problem—replacing ad-hoc automation scripts with a structured, observable framework. It's particularly valuable if you're building multiple automation projects or need detailed execution logging for debugging and compliance. The Apache-2.0 license poses no restrictions.

Install

robocorp-tasks on PyPI

pip

pip install robocorp-tasks

uv

uv add robocorp-tasks

poetry

poetry add robocorp-tasks

Installing robocorp-tasks

Before you install

Low install friction with a pure-wheel distribution. The package is actively maintained with a recent commit on 2026-07-24 and carries production-stable status. Four runtime dependencies are all common utilities (packaging, psutil, docstring_parser_fork, robocorp-log), suggesting a straightforward integration.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most automation projects without licensing concerns.

Quickstart

pip install robocorp-tasks

from robocorp.tasks import task

@task
def my_task():
    print('Running automation')

# Run via: python -m robocorp.tasks run <file.py> -t my_task

Requires Python 3.10 or later (supports up to 3.14).

Verify before relying

  • Whether robocorp-log dependency brings additional system requirements or native bindings that could affect portability.
  • Performance characteristics when running many tasks or long-running automations.
  • Integration patterns with existing CI/CD systems beyond the command-line interface.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 4 — docstring_parser_fork, packaging, psutil, robocorp-log
Maintenance actively maintained — 154 days since the last release
Last repo commit
First released
Downloads 335,650/month — #7,474 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: robocorp_tasks-4.1.1-py3-none-any.whl

Development Status :: 5 - Production/StableLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Application Frameworks

Tags

python automation frameworktask runner with loggingrobotic process automation pythonstructured task executionautomation task decoratorpython task runnerautomation logging framework
automationtask-runnerrpa

More Application Frameworks packages