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 since0.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()
, andisdir()
. - Get and change working directory using
getdir()
andchangedir()
respectively. - Some others functionality that also exist in the
os.path
.
- Check existence of files and directories using
- 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()
, andprocess()
. - Input from the terminal using
ask()
, andask_secret()
. - Both input and output will emphasize a string between
*
. (ex:*here*
) - Exit current process using
terminate()
. With empty argument, this function will return0
. Else, it will output the arguments and return1
.
- Output to the terminal using
Project details
Release history Release notifications | RSS feed
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)