Skip to main content

Yet Another Command Runner

Yacoru (pronounced /ˈja.ko.ɾu/) provides artefacts for running commands on terminal in a very easy way.

Installation

Just install it from your favourite package manager:

$ pip install yacoru
or ...
$ uv add yacoru

Usage

This package provides an «OOP like API» to run commands on terminal:

>>> from yacoru import Command

>>> cmd = Command('whoami')

>>> cmd
whoami

>>> cmd.run()  # True if returncode == 0
True

>>> cmd.output
'sdelquin\n'

>>> cmd.returncode
0

You can also add a bunch of commands step by step:

>>> cmd = Command()

>>> cmd.add('whoami')
>>> cmd.add('head -2 pyproject.toml')
>>> cmd.add('du -sh')

>>> cmd
whoami && head -2 pyproject.toml && du -sh

>>> cmd.run()
True

>>> cmd.output
'sdelquin\n[project]\nname = "yacoru"\n 51M\t.\n'

>>> print(cmd.output)
sdelquin
[project]
name = "yacoru"
 51M	.

You can detach commands to run in a different process:

>>> cmd = Command()

>>> cmd.add('sleep 5')
>>> cmd.add('whoami')

>>> cmd.run(detach=True)
True

>>> cmd.output
'sdelquin\n'

>>> cmd.returncode
0

>>> cmd.succeded
True

API

Find the full API documentation here.

Changelog

Check out the Changelog here.

Metadata

Release files for yacoru 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yacoru 0.1.2
File Size Uploaded Provenance Actions
yacoru-0.1.2.tar.gz 3.2 kB Without provenance Details for yacoru-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yacoru 0.1.2
File Interpreter ABI Platform Actions
yacoru-0.1.2-py3-none-any.whl Python 3 none any Details for yacoru-0.1.2-py3-none-any.whl

Total release size: 6.8 kB

Release files / yacoru-0.1.2.tar.gz

Download URL yacoru-0.1.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dec93b9fcb6c36faa5bbb01c8797caaab13e3e25a14bb87f4a8edf9b1d27797c
BLAKE2b-256 checksum
How to use checksums
3be962ddb7064fa6f5c74e09498aca22dc2ef16f120273a5b77ffa2946818202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / yacoru-0.1.2-py3-none-any.whl

Download URL yacoru-0.1.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8aae80b83dc26cfed95a6026b5db5cfa8f0f4acd248849d6813dd9eef4b20af0
BLAKE2b-256 checksum
How to use checksums
24c8240e80f13bf640ff1f6278c9f035c35fe9158c78773b90d1d3e5548f9a5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for yacoru 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page