Skip to main content

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.2.tar.gz (1.3 kB view details)

Uploaded Source

File details

Details for the file pycliwrapper-0.2.tar.gz.

File metadata

  • Download URL: pycliwrapper-0.2.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

Hashes for pycliwrapper-0.2.tar.gz
Algorithm Hash digest
SHA256 8b69df374cc431d94ef857e7be9650034ba4edc1062b79288cc8a96e2f04544e
MD5 e9d0d6e9431f8bbc1fff774d033eb274
BLAKE2b-256 46a5061d8a7d8def1d899fd0581d31ef9ab1af7ccb8bc522d8424ffd838ad2fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page