Wrap any CLI tool to Python like syntax
Project description
Generic Python CLI Wrapper
Wrap any CLI tool to Python like syntax.
Usage example
from pycliwrapper import CliWrapper
apt_cache = CliWrapper("apt-cache", parser=lambda stdout: stdout.splitlines())
# Equivalent to run: "apt-cache search bash"
res = ~apt_cache.search.bash
print(res)
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
pycliwrapper-1.0.tar.gz
(2.1 kB
view hashes)