
Product
Socket for ClickUp Is Now Available
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.
procwire
Advanced tools
Process lifecycle orchestration and task piping for Python services. Manage spawned processes with tracking, timeout control, and event-driven lifecycle hooks.
pip install procwire
import procwire
# Spawn a tracked background process
worker = procwire.spawn('my-worker', 'python', ['-m', 'myapp.worker'], timeout=30000)
print(f"Worker PID: {worker['pid']}")
# Check process status
info = procwire.status('my-worker')
print(f"Running: {info['running']}, Uptime: {info['uptime']:.1f}s")
# Run synchronous command with captured output
result = procwire.run_sync('git', ['status', '--short'], timeout=10)
print(result['stdout'])
# Lifecycle events
procwire.on('exit', lambda name, code: print(f'{name} exited: {code}'))
procwire.on('timeout', lambda name, ms: print(f'{name} timed out after {ms}ms'))
# Restart crashed workers
procwire.restart('my-worker', 'python', ['-m', 'myapp.worker'])
# Graceful shutdown
procwire.cleanup()
spawn(name, cmd, args=None, timeout=None, detached=True, hide=True) — spawn tracked processspawn_shell(name, command, timeout=None) — spawn via shellrun_sync(cmd, args=None, timeout=30, capture=True) — run and waitkill(name, sig=None) — terminate tracked processrestart(name, cmd=None, args=None, **kwargs) — kill and respawnlist_processes() — list tracked nameshas(name) — check if trackedstatus(name) — get status dictstatus_all() — all statusesis_running(name) / pid_of(name) / uptime(name)cleanup() — kill all tracked processeswait_all(timeout=None) — wait for all to exiton(event, fn) / once(event, fn) / off(event, fn)spawn — process startedexit — process exitedtimeout — process timed outkill — process killedMIT
FAQs
Process lifecycle orchestration and task piping for Python services
We found that procwire demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.