py-execute 0.1.7
pip install py-execute
Latest version
Released:
External process executor wrapper
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (UNKNOWN)
- Author: Julia S.Simon
- Tags process, execute, output
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
External Process Execution Wrapper
-----------------------------------
Allows you to execute external commands getting large outputs in real-time but also getting
all the output as a return variable.
Examples
--------
from py_execute import run_command
ret = run_command.execute('echo "Hello World"')
Hello World
ret
'Hello World
'
ret = run_command.execute('read -p "Do you like py-executor?" yn; case $yn in [yY]* ) echo "cool";; esac', user_input='y
')
cool
ret
'cool
'
-----------------------------------
Allows you to execute external commands getting large outputs in real-time but also getting
all the output as a return variable.
Examples
--------
from py_execute import run_command
ret = run_command.execute('echo "Hello World"')
Hello World
ret
'Hello World
'
ret = run_command.execute('read -p "Do you like py-executor?" yn; case $yn in [yY]* ) echo "cool";; esac', user_input='y
')
cool
ret
'cool
'
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (UNKNOWN)
- Author: Julia S.Simon
- Tags process, execute, output
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file py-execute-0.1.7.tar.gz
.
File metadata
- Download URL: py-execute-0.1.7.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8684a1bbf13ce18ae3d7569569f553e9c39d111733eb12ad6251974907b4ce50 |
|
MD5 | 01f3b4fd58f6e297c9077d1ade3b0812 |
|
BLAKE2b-256 | f640b87fe4f4605fc002e9496a347407fb861251d1173f21e6d513b699e2cc75 |