Skip to main content

Universal runner with builder objects to run async, threaded or group commands

Project description

runner (runner-pjpawel)

Universal runner with builder objects to run async, threaded or group commands

Build for my research projects to run multiple scenarios with retry with one command

Remember! This project is on early stage of development

Install

pip install runner-pjpawel

Build runner

  1. Create Runner class.
from runner_pjpawel import Runner
runner = Runner()
  1. Add commands. Use prepared Command classes in runner.commands module or classes that extends runnner.command.BaseCommand
from runner_pjpawel.command.common import ShellCommand
shell = ShellCommand("uname -a")
runner.add_command(shell)
  1. Invoke run or run_sync method.
runner.run_sync()

Build your commands

You can build you own command. To do so, create class that extend class BaseCommand. You have to override _do_work method.

Full examples

  1. Simplest example
from runner_pjpawel import Runner
from runner_pjpawel.command import ShellCommand

r = Runner(show_progress_bar=False)
r.add_command(ShellCommand("uname"))
r.run_sync()
    

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

runner_pjpawel-0.1.3.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

runner_pjpawel-0.1.3-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file runner_pjpawel-0.1.3.tar.gz.

File metadata

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

File hashes

Hashes for runner_pjpawel-0.1.3.tar.gz
Algorithm Hash digest
SHA256 79b7d09b3a92638044931d23fdd9e00c11a6853870813a7aea54e9274acc02b7
MD5 db31a95dc3504f9e314720a2710e2d9d
BLAKE2b-256 6f903878fc564e4c91a2114a6ce7b19ec955c4923233d313eaf036f7e32d3752

See more details on using hashes here.

Provenance

The following attestation bundles were made for runner_pjpawel-0.1.3.tar.gz:

Publisher: pypi.yaml on pjpawel/runner

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

File details

Details for the file runner_pjpawel-0.1.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for runner_pjpawel-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 595ef037df4bb6f2e9fde0d38fb4b853e552ceec45800f247d832c04c138faaa
MD5 cd2ac26987f8b0d3f73d183ee373d9d5
BLAKE2b-256 888461c0bb544e64b7810e32774c8ab067ba43f507e8afd6b32418d11a886173

See more details on using hashes here.

Provenance

The following attestation bundles were made for runner_pjpawel-0.1.3-py3-none-any.whl:

Publisher: pypi.yaml on pjpawel/runner

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