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.16.tar.gz (9.5 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.16-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: k3proc-0.2.16.tar.gz
  • Upload date:
  • Size: 9.5 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.16.tar.gz
Algorithm Hash digest
SHA256 790b700ca7dfe271e7a157bf001abf683099f5a0934bf939f3da7ae9979bac9c
MD5 b7d7b525a70d0a6edbccddb9782db030
BLAKE2b-256 de7cff9ad9b1b9ffc642ee9f63effb26852900ac14975dc561c5f25437014868

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k3proc-0.2.16-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 51b64c1b3bc8912b6a0e4b96779cf0dc1726ca2ea60e762a9c98d0537d015962
MD5 dc263c493bf803cf12cc4e70029d06f4
BLAKE2b-256 de13592b57ed364b403286e35e60e6340242d9cb16d7dde8d80bd2e8b716e8c3

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