Skip to main content

Simplified and configurable wrapper for Python's subprocess.Popen

Project description

>_ comrun

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

comrun = 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 comrun 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.1.tar.gz (5.3 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.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: comrun-0.3.1.tar.gz
  • Upload date:
  • Size: 5.3 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.1.tar.gz
Algorithm Hash digest
SHA256 a762153ccd823e0d738ab3da1611c41767b475c219afea3890436f41d23e3f71
MD5 bdf36c33ff4763fe36daee7fe841ae16
BLAKE2b-256 9bed1ac64fa7b123e1e436b7a5102448de29869c11846365763a844cdb99bde2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: comrun-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d5c78321af78cfe04ca91ad90f4a25e5747355dc2a93cad8518c7174ac3b17c
MD5 340819a431910beb8a86342af2db8334
BLAKE2b-256 216c5608066d9c9cf6561baa9105b65e06490c6fe74518b46fe98301f0a1a26e

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