Skip to main content

Linux command line interface package

Project description

Bushi

This package contains functions to handle commands in a Linux based terminal. The main purpose of this package is to replace Shell Script with a simplier Python based functions.

Target

Version 1.0

Major

  • Terminal input and output formatting. (done since 0.1.0)
  • Manage multiple sessions with tmux command.
  • Build a ROS based package with colcon command.
  • Manage a Git repository with git command.
  • Manage an APT package with apt-get command.

Minor

  • cmd.run() must preserve the output formating.

Changelogs

Version 0.2.0 (13/03/2020)

  • Add cmd class that handle subprocess run with the following functionality:
    • run() to run a subprocess with outputs.
    • runmuted() to run a subprocess without any outputs.
  • Add path class that handle files and directories with the following functionality:
    • Check existence of files and directories using isfile(), and isdir().
    • Get and change working directory using getdir() and changedir() respectively.
    • Some others functionality that also exist in the os.path.
  • Modify functions in the io as follow:
    • Change how output should behave.
    • Modify output format for the process command.
    • Change how process symbol be animated.
    • Output the duration in the process command.

Version 0.1.0 (12/03/2020)

  • Add io class that handle terminal input and output with the following functionality:
    • Output to the terminal using info(), warn(), fail(), succes(), info_list(), warn_list(), fail_list(), success_list(), and process().
    • Input from the terminal using ask(), and ask_secret().
    • Both input and output will emphasize a string between *. (ex: *here*)
    • Exit current process using terminate(). With empty argument, this function will return 0. Else, it will output the arguments and return 1.

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

bushi-0.2.1.tar.gz (3.5 kB view hashes)

Uploaded Source

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