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.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-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: comrun-0.3.2.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.tar.gz
Algorithm Hash digest
SHA256 381a1877008104a589f9d02eddb11ef389a1b0f85e1356c988aaa704b0e20044
MD5 e9808e5d53e3107c0ff3aeb2decd3317
BLAKE2b-256 369ebf024b675a02fbbff05745e6d5bea01401b2e223a99c66ced1af8e304843

See more details on using hashes here.

File details

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

File metadata

  • Download URL: comrun-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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-py3-none-any.whl
Algorithm Hash digest
SHA256 9b4213ec7ff782d728930cda7efa40ab837d4023d6ff7ed124fa7d4af1b30837
MD5 ffc5a2f78173ef51a20571d813ef865c
BLAKE2b-256 d3be8cfb0d995217b646a8b84ffae129abf5c6e5f5855d2150c6d0cd4c6fc49b

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