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

Metadata

Release files for yacoru 0.1.0

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.0
File Size Uploaded Provenance Actions
yacoru-0.1.0.tar.gz 3.1 kB Without provenance Details for yacoru-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.8 kB

Release files / yacoru-0.1.0.tar.gz

Download URL yacoru-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1d282da4e8e316f5aa65a730d7ce5179b338a87af2086418c739a41be116f842
BLAKE2b-256 checksum
How to use checksums
1d0f9a88ce6118d3ffdb4b91850aa120417fadcdc53f48b35fad05c2a6908734
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.0-py3-none-any.whl

Download URL yacoru-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
744249c4ec7789cb1710536f4a397305dfeb5f1ea2cbfc9d24e6bce7a89bbdd8
BLAKE2b-256 checksum
How to use checksums
c9598e31a196062299b2cffa451f085b2842b509e4730ac35b277611c248d4ec
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.0

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