Skip to main content

Simplified and configurable wrapper for Python's subprocess.Popen

Project description

>_ comrun

PyPI version codecov Docs

comrun (shorthand for command runner) is a simple, configurable wrapper for Python's subprocess.Popen, focused on making it easy to run external commands from Python scripts.

Installation

Add to your project with uv:

uv add comrun

Usage

Just create a CommandRunner instance and call it with the command you want to run:

from comrun import CommandRunner

runner = CommandRunner()

# Run your command – instance is callable
result = runner('echo "The cake is a lie."')

# (prints "The cake is a lie." to the console)

The same runner instance can be reused indefinitely to call other commands.

Full documentation can be found here.

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

comrun-0.3.2.dev0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

comrun-0.3.2.dev0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file comrun-0.3.2.dev0.tar.gz.

File metadata

  • Download URL: comrun-0.3.2.dev0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.12

File hashes

Hashes for comrun-0.3.2.dev0.tar.gz
Algorithm Hash digest
SHA256 c511bd2b05bd1035b28ab627b5091ae322e44a1d0d4bbfcd5c773cd4ae4fde39
MD5 27ca9f8c300bacce3ba2dde4f4182d2d
BLAKE2b-256 f47d8d85a649fee9053e2a227815f65d34414499bf9252b359c4a7a050c36fba

See more details on using hashes here.

File details

Details for the file comrun-0.3.2.dev0-py3-none-any.whl.

File metadata

  • Download URL: comrun-0.3.2.dev0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.12

File hashes

Hashes for comrun-0.3.2.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 92cf02e1c154e6b0ea00654d791c6529e4a76b34cc1b0f5f3aed9cc8b9a98e13
MD5 00e366d6b4bfa3bf5f4189d473814492
BLAKE2b-256 f309ebfbb1c7810b3fe3e45fec7efa53710ffd368321dc45e9fc9a89c505e8c7

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