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.0.0.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.0.0-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robocorp_tasks-4.0.0.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for robocorp_tasks-4.0.0.tar.gz
Algorithm Hash digest
SHA256 dbb7567539f04e60e91e2bf0a0a28ad4c545341dd83c8437b97bda0624eaad6f
MD5 ce8fb874fdb9b11bb1fe5d01f42db61a
BLAKE2b-256 fea32b7101b442979eec4c72f04193ecade98336caefec8998820d601cb6f382

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robocorp_tasks-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 42.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for robocorp_tasks-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07544753e6eb7652068f9bf2e60e70ca907b7937bb3dd004d15d3505a5118b73
MD5 e74ed1639524257862224cce9907e6a4
BLAKE2b-256 f5abdd1bc9642a9da1d59f0dd1cd8ee274c1e194e161d04dba4d23c67c5045f7

See more details on using hashes here.

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