Code parser tool
Project description
cparse
Code parsing command line tool.
Installation
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
Documentation
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
ls
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>
tree
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>
stat
Prints a table displaying the file extension proportions of a directory
cparse stat [-a] <path>
py
Parses the code of a provided python file
cparse py <path>
html
Parses the links in an HTML file and represents them as a file tree.
cparse html <path>
css
Parses CSS code, providing options to condense redundant rules and group identical selectors.
cparse css [-g] [-c] [-s] <path>
Dependencies
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
Built Distribution
File details
Details for the file cparse-0.0.2.tar.gz
.
File metadata
- Download URL: cparse-0.0.2.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 383ea836ccab101af8967682e4ef0173e6b05a0bbb66b9a028de286a516bdf21 |
|
MD5 | 902662f1ffab8b1ff09041fbd9e93de6 |
|
BLAKE2b-256 | 9815e202eb9b79db19fe89a1796225fb8c6f936b9e1df781eb3761dbe6357cb2 |
File details
Details for the file cparse-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: cparse-0.0.2-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fead9e030305c48eda401b78ae9f735b5d718bf718a6bf82c7760b05f0b18e7 |
|
MD5 | a9aa5ec15bd5afd554ce967c62bfb240 |
|
BLAKE2b-256 | 92f01dff52602db2340ccea9ddac4f95d4dba4320d00ab926ce80784471146b9 |