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

Uploaded Python 3

File details

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

File metadata

  • Download URL: comrun-0.3.1.dev0.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.dev0.tar.gz
Algorithm Hash digest
SHA256 11ed73686a37db43cfbc03e7f53a578aeb392d9ad144cc1eb3306a2343c42fa6
MD5 c93af36848a1188e5018c96cfbdf3e44
BLAKE2b-256 fb4fb3cad4ae052b14ed58f45dcb37199ff5887eb781faab04357051acaeadf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: comrun-0.3.1.dev0-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.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 25e022b4812081e6686ec3beb028574c13a0362a6d392dea9278a3768c6f210f
MD5 be393d4eb4104aef3beb38714cec2448
BLAKE2b-256 5e9c012941aff5d5d70c7ab62ef3d1a2f63abc82716eb86c8b59a01e9e0d7507

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