Registry / devops / delegator-py

delegator-py

JSON →
library0.1.1pypypi✓ verified 87d ago

Subprocesses for Humans 2.0, built on top of pexpect and shiv. Latest version 0.1.1 (unmaintained). No recent releases since 2015.

pip install delegator-py
INSTALL
IMPORT
SIG · DELEGATOR-PY
D
delegator-py
devopspythonv0.1.1
Install
1.6s avg
Import
39ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.042s · 18.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.036s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

delegator
import delegator
from delegator import run
direct function import may cause name collisions; import module and use delegator.run()

Basic usage: run non-blocking subprocesses with output capture and interactivity.

import delegator # Run a command and get output c = delegator.run('echo hello') print(c.out) # hello # Interactive command with timeout try: c = delegator.run('python', timeout=3) c.expect('>>>') c.writeline('print(1+1)') c.expect('2') print(c.after) except Exception as e: print(f"Error: {e}")
Debug
Known issues
deprecatedLibrary is no longer maintained. Consider using json, subprocess, or invoke instead.
fix
Migrate to subprocess.run() or invoke.
affects: all
gotchadelegator.run() returns a Command object immediately, not waiting for the process to finish. Access .block() or .out/.err to synchronize.
fix
Ensure you call .block() or access .out after the process completes.
affects: all
gotchaOn Windows, pexpect may not work; delegator may behave differently.
fix
Use on Unix-like systems or test thoroughly on Windows.
affects: all
Errors
Common errors & fixes
AttributeError: module 'delegator' has no attribute 'run'
Incorrect import: trying to import run directly or wrong module name.
fix
Install via pip install delegator-py, then use import delegator and delegator.run().
TypeError: run() got an unexpected keyword argument 'block'
delegator.run() does not have a block argument; it returns immediately.
fix
Do not pass block=True; instead call .block() on the returned Command object.
Upgrade
Version history
0.1.1latest on PyPI · released Sep 17, 2018
Audit
Dependencies
pexpectrequiredcore dependency for subprocess handling
shivrequiredcore dependency for command dispatch
Agent activity
4 hits · last 30 days
node
4
Resources
delegator-py — pip install delegator-py · libregistry