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.15.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.15-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: k3proc-0.2.15.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.15.tar.gz
Algorithm Hash digest
SHA256 4ac1b882b1c3bd905d14f211a0cf7ce53b6378ebb5c38bcde63cae63979ff386
MD5 dc764d9224d6e22573df084ea0d8981c
BLAKE2b-256 9dc94ea08d7af8c8e00ea97cbf02f38c849a25730e4323b3c1b0e8f81dbc16a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k3proc-0.2.15-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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 5810e5f522cf5bc50e51c72d322049672b8a97d7e95c0d20ae336002261d82ce
MD5 08330d72495a78b09c391d1d493618cc
BLAKE2b-256 77f246d587109c567b36f1bb2c07d480eb5bfed46a546536f7b4e5eedeea0bf2

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