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

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

Built distribution (wheel)

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

Total release size: 6.8 kB

Release files / yacoru-0.1.1.tar.gz

Download URL yacoru-0.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
448b675e6e19f66f8b6906b45824821dfc1385fcbb7060245097ad3be8fc1d12
BLAKE2b-256 checksum
How to use checksums
ab0360e50256ff1e48b3855013f5b3ff2d16e63d04b81af701a653aaf2bceb9b
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.1-py3-none-any.whl

Download URL yacoru-0.1.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98db5828baf935a7e4882e97e8866410f1fae04f983f929df659ef4ea04cbf05
BLAKE2b-256 checksum
How to use checksums
9adf1ee746e888b20b2f890c5c062184f3deee45668b14848dde789a86094dd4
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.1

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