Skip to main content

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


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 details)

Uploaded Source

Built Distribution

exec_wrapper-0.1.0-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

Details for the file exec-wrapper-0.1.0.tar.gz.

File metadata

  • Download URL: exec-wrapper-0.1.0.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for exec-wrapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8e8e82e9c790403abeae50fb2ec95bbd6f29c8907de1c575f42f736370daf001
MD5 1eb40c0567a69f4763c027982bd74eea
BLAKE2b-256 924016e0dc3d6f1a79cc1980cf50397e628e7c66a3486b6d2b2ae2cdda259db7

See more details on using hashes here.

File details

Details for the file exec_wrapper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: exec_wrapper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 50.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for exec_wrapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68efbd4942a6dcc599ce93758d20235d6a9035c87ea3bd42ea84def827f7a359
MD5 a9bad5c4b653123a60c56e1345f0d5c0
BLAKE2b-256 173acc8ab94a60b3ad4728f263bf42c5b85aac800634a41472543e35ae0e1ee6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page