Skip to main content

Utility to create subprocess with support for timeout, tty, and text mode

Project description

k3proc

Build Status Python package Documentation Status Package

easy to use Popen

k3proc is a component of pykit3 project: a python3 toolkit set.

k3proc is utility to create sub process.

Execute a shell script::

>>> returncode, out, err = k3proc.shell_script('ls / | grep bin')

Run a command::

# Unlike the above snippet, following statement does not start an sh process.
returncode, out, err = k3proc.command('ls', 'a*', cwd='/usr/local')

Install

pip install k3proc

Synopsis

>>> returncode, out, err = k3proc.shell_script('ls / | grep bin')

Author

Zhang Yanpo (张炎泼) drdr.xp@gmail.com

Copyright and License

The MIT License (MIT)

Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com

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

k3proc-0.2.14.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

k3proc-0.2.14-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file k3proc-0.2.14.tar.gz.

File metadata

  • Download URL: k3proc-0.2.14.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for k3proc-0.2.14.tar.gz
Algorithm Hash digest
SHA256 61126f137c791e73f71d916fc4cecbcd927f89c4107552f44d3819dc0bff00af
MD5 af3ab15c7b14df6f949b4c3fb72240c3
BLAKE2b-256 d294a5a08bdc6834e533996337f77d56941900fc1545aadde3f093304a42e83a

See more details on using hashes here.

File details

Details for the file k3proc-0.2.14-py3-none-any.whl.

File metadata

  • Download URL: k3proc-0.2.14-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for k3proc-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 c5bc2b8b5e7cf39b46f0095fef3377217c354c21c4fcdd2349f2f55be76d43de
MD5 5b46fd3883240170716f753b3b5aea4f
BLAKE2b-256 2d1156ec8ce09dd745eab294cc035e613b2842675bccb447e7fc5fb769dbf115

See more details on using hashes here.

Supported by

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