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-0.1.tar.gz
(1.3 kB
view details)
File details
Details for the file pycliwrapper-0.1.tar.gz
.
File metadata
- Download URL: pycliwrapper-0.1.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93d6f3f6683002803d82d6f6aa2d85ee482ebf358a6c1771ae6a726a00427418 |
|
MD5 | d430664143982f1b2b730469380ec206 |
|
BLAKE2b-256 | 235c8d6591d3e21aac5c5f91f4fb23b264cb2abf6db289e642999d3b95bb68bb |