Skip to main content

use OS terminal

Project description

cli_sender

Designed to send commands into OS terminal

Features

  1. send commands into OS terminal
  2. check if cli commands are accessible (special utilities is installed)
  3. access to standard parts of result in a simple ready-to-use form (stdout/stderr/retcode/full state)

License

See the LICENSE file for license rights and limitations (MIT).

Release history

See the HISTORY.md file for release history.

Installation

pip install cli-user

Import

from cli_user import *

GUIDE

USAGE

from cli_user import *

victim = CliUser()

cmd_line = "ping localhost"
victim.send(cmd_line, timeout=0.1)
victim.print_state()
"""
==================================================
self.last_cmd='ping -n 1 localhost'
self.last_finished_success=True
self.last_finished=True
self.last_retcode=0
--------------------------------------------------
self.last_stdout=
	
    ###STDOUT PING!!!
	
--------------------------------------------------
self.last_stderr=
--------------------------------------------------
self._last_exx_timeout=None
==================================================
"""

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

cli_user-0.0.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

cli_user-0.0.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file cli_user-0.0.4.tar.gz.

File metadata

  • Download URL: cli_user-0.0.4.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for cli_user-0.0.4.tar.gz
Algorithm Hash digest
SHA256 dbc0e828e34f352be8bedefae5a9bc68b32940e301f52e9df624ecf9dd6ebf4b
MD5 5e6bde6bd5ace82c0b2a6a33d31ded34
BLAKE2b-256 480caa93826dd056c9c7557cb3e448de592364c3e353533f73ee8e9186aee4cb

See more details on using hashes here.

File details

Details for the file cli_user-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cli_user-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for cli_user-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 837c2bea24908c2200ed316b8dee3caf91e40b08ae592c544210d492a62233fb
MD5 9e6796a03825a6e2958f238c6ae02640
BLAKE2b-256 b6a1662c0da2cb11799a812d0760b276cb0d965a29de6eb3c1675a1e585dd667

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