Allows creating executable wrappers for any executable
Project description
exec-wrapper
Allows creating executable wrappers for any executable. Tested on Linux, Windows.
Example
import os
import subprocess
from exec_wrapper import write_exec_wrapper
wrapper = '/tmp/ssh-wrapper'
write_exec_wrapper(wrapper, ['ssh', '-i', 'my-key', '-o', 'BatchMode=yes'])
subprocess.run(['git', 'fetch', '...'], env={**os.environ, 'GIT_SSH': wrapper})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exec-wrapper-0.1.0.tar.gz
(50.1 kB
view hashes)
Built Distribution
Close
Hashes for exec_wrapper-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68efbd4942a6dcc599ce93758d20235d6a9035c87ea3bd42ea84def827f7a359 |
|
MD5 | a9bad5c4b653123a60c56e1345f0d5c0 |
|
BLAKE2b-256 | 173acc8ab94a60b3ad4728f263bf42c5b85aac800634a41472543e35ae0e1ee6 |