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.3.tar.gz
(1.7 kB
view details)
File details
Details for the file pycliwrapper-0.3.tar.gz
.
File metadata
- Download URL: pycliwrapper-0.3.tar.gz
- Upload date:
- Size: 1.7 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 | 84e40799158680e894b32536c1d7b6ad20891295c54b144989730270f2601d6c |
|
MD5 | 4ac85585ffc8250c359930ce904ffef9 |
|
BLAKE2b-256 | d9e382db9ef1bb66d142c214ac38d04ccfe4cce4e6e589b865e25a63abf772ce |