Implement Bash command with Python


Keywords
bash, ls
License
MIT
Install
pip install pash==0.0.3

Documentation

pash

travis

Implement Bash ls command using Python

Quickstart

git clone git@github.com:Windsooon/pash.git
cd pash
python3 ls.py -lS
# Other Examples
python3 ls.py -p path_location -l
python3 ls.py -lSaR

Usage

usage: ls.py [-h] [-p PATH] [-l] [-a] [-S] [-R]

optional arguments:
  -h, --help  show this help message and exit
  -p PATH     Spectify the path
  -l          use a long listing format
  -a          do not ignore entries starting with .
  -S          sort by file size
  -R          list subdirectories recursively

API

pip3 install pash

>>> import pash
>>> pash.ls()
LICENSE                   README.md                 __pycache__               
build                     dist                      htmlcov                   
ls.py                     pash                      pash.egg-info             
run_tests.py              setup.py                  src                       
tests