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

Uploaded Source

File details

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

File metadata

  • Download URL: pycliwrapper-1.0.tar.gz
  • Upload date:
  • Size: 2.1 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-1.0.tar.gz
Algorithm Hash digest
SHA256 ff7a2e595e35cb3dd6cea9f093efd50b3906a2b37fc50565dca528264eb1bc1a
MD5 569e2d420f457593835d8767daf79a5f
BLAKE2b-256 b828a72c966b1b4d38196c76d107b2b8873adaf69ba2a37cb775b7fc9ac1edff

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