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.3

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.3
File Size Uploaded Provenance Actions
yacoru-0.1.3.tar.gz 3.2 kB Without provenance Details for yacoru-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 6.8 kB

Release files / yacoru-0.1.3.tar.gz

Download URL yacoru-0.1.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0db3c3f26b637749bb1416556025084607d2c2fb858a3c6c2db8e5c4117d617e
BLAKE2b-256 checksum
How to use checksums
9e5e78b3d3423126ce5e4a02d237e8c2c74bebac3890a6931cf6deb29df885b9
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.3-py3-none-any.whl

Download URL yacoru-0.1.3-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96beef6455a9a954b84d8ea824e2c80eddd1383d9f2070fd51bbda51a1d4df2a
BLAKE2b-256 checksum
How to use checksums
dcd394f362497c3dbb8df62b69d266f110890590f58ebabe230f91ca3217f456
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.3

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