Skip to main content

A small example package

Project description

UnRun

A simple CLI tool to run commands from a YAML file.

Installation

pip install unrun

Usage & Features

Create an unrun.yaml file in your project root:

hello: echo "Hello, world!"
foo:
    bar: echo "This is foo bar"
baz:
    - echo "This is baz item 1"
    - echo "This is baz item 2"

Single Command

You can run a single command by specifying its key:

unrun hello

Output:

Hello, world!

Nested Command

You can run nested commands by specifying the full path:

unrun foo.bar

Output:

This is foo bar

List Command

To run all commands under a key that contains a list, you can simply specify the key:

unrun baz

Output:

This is baz item 1
This is baz item 2

Arguments

  • key: The key of the command to run.
  • --file: Specify a custom YAML file (default is unrun.yaml).
  • extra: Additional arguments to pass after each command.

License

MIT License

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

unrun-0.2.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

unrun-0.2.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file unrun-0.2.0.tar.gz.

File metadata

  • Download URL: unrun-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for unrun-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fda070025c051fed35c428bab0ca8bab3d4b8db30d38dd132a639b2c8c68c2f5
MD5 5af0c88f209fe5611d0ef65d4dc8aa39
BLAKE2b-256 dd32086b92c9631a9530778640dd69716d54ee85941e3c48ea73866844243df0

See more details on using hashes here.

File details

Details for the file unrun-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: unrun-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for unrun-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52d66eca6c185765ce5d5c4d66bf99bbfac3dbcf219f13d5540c9ed360a977ef
MD5 ec9f8f5b09bdf671151641626c93487a
BLAKE2b-256 c4077722e75cfda01a05ff173f4ff11255a3bdd44fa74bf26cbb58e2c76c501f

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