Code parsing command line tool.
With pip
via PyPi
pip install cparse
Clone the repository and install
git clone git://github.com/luciancooper/cparse.git
cd cparse
python setup.py install
Full documentation can be found here
cparse
currently includes 6 commands
ls
- list files in directorytree
- print file treestat
- directory file extension statspy
- python code parsinghtml
- html link parsingcss
- css code parsing
Prints a list of the files in a directory.
cparse ls [-r] [-n <depth>] [-d | -f] [-a] [-lim <count>] [-fmt <format>]
[-exc <path>] [-inc <path>]
[-wc <pattern>] [-grep <regexp>] [-ft <filetype>]
[-m | -M | -c | -C | -b | -B | -i | -I | -g | -G] <path>
Prints a tree representation of the contents of a directory.
cparse tree [-d | -f] [-a] [-n <depth>] [-fmt <format>]
[-exc <path>] [-inc <path>]
[-wc <pattern>] [-grep <regular-expression>] [-ft <file-extension>]
[-m | -M | -c | -C | -b | -B | -i | -I | -g | -G] <path>
Prints a table displaying the file extension proportions of a directory
cparse stat [-a] <path>
Parses the code of a provided python file
cparse py <path>
Parses the links in an HTML file and represents them as a file tree.
cparse html <path>
Parses CSS code, providing options to condense redundant rules and group identical selectors.
cparse css [-g] [-c] [-s] <path>