Skip to main content

Command

https://travis-ci.org/helgi/python-command.png

Wrapper around subprocess.popen with on the fly debug / logging capabilities and timeout handling.

Uses tempfiles for stdout/stderr to get past the 64kb subprocess.PIPE bug/limitation in python.

Normal command run

import command
response = command.run(['ls'])
print response.output
print response.exit

Print the output as it happens

import command
def debug(text):
    print text

response = command.run(['ls'], debug=debug)
print response.output
print response.exit

License

MIT - See LICENSE

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Command-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file Command-0.1.0.tar.gz.

File metadata

  • Download URL: Command-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Command-0.1.0.tar.gz
Algorithm Hash digest
SHA256 825af5adb84df91a4130c3fd112df0b33fbbb8ae77b16c29d21c6eb655102bf0
MD5 54ff29fb8a100a4bdbd508afca4333ea
BLAKE2b-256 f1aafd642369a793e4a79c99f8da8cf3f7541276c43fbe1c47f7f49c1d64928e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page