Skip to main content

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

Explore our API for extensive documentation.

Changelog

A list of releases and corresponding changes can be found in the changelog.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robocorp_tasks-4.1.1.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robocorp_tasks-4.1.1-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

Details for the file robocorp_tasks-4.1.1.tar.gz.

File metadata

  • Download URL: robocorp_tasks-4.1.1.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for robocorp_tasks-4.1.1.tar.gz
Algorithm Hash digest
SHA256 fb254020133c89b4a5015ad0f4a13dfceeb6f68eb2459d5291fe8ce975307c94
MD5 30fb7e779bc7c13401e01b6e0e24c83d
BLAKE2b-256 ae9f8b75b0bdfb872175fc133be0acc2235458e842b48609d1766649805e58fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for robocorp_tasks-4.1.1.tar.gz:

Publisher: tasks_release.yml on robocorp/robocorp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file robocorp_tasks-4.1.1-py3-none-any.whl.

File metadata

  • Download URL: robocorp_tasks-4.1.1-py3-none-any.whl
  • Upload date:
  • Size: 42.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for robocorp_tasks-4.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d2b69f342db58e6cf5f5adb83c63ab2c7485620a4af670fd67efeca9f86543d
MD5 faa4a983ccfe00a88956f8fa0d999f62
BLAKE2b-256 80e05917d07db19ead1be1a5b9a926a752e6a96d284ceaf1275fbd4bbcfddf68

See more details on using hashes here.

Provenance

The following attestation bundles were made for robocorp_tasks-4.1.1-py3-none-any.whl:

Publisher: tasks_release.yml on robocorp/robocorp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page