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
Metadata
Release files for cparse 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cparse-0.0.2.tar.gz | 21.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cparse-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.0 kB
Release files / cparse-0.0.2.tar.gz
| Download URL | cparse-0.0.2.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
383ea836ccab101af8967682e4ef0173e6b05a0bbb66b9a028de286a516bdf21
|
|
BLAKE2b-256 checksum How to use checksums |
9815e202eb9b79db19fe89a1796225fb8c6f936b9e1df781eb3761dbe6357cb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / cparse-0.0.2-py3-none-any.whl
| Download URL | cparse-0.0.2-py3-none-any.whl |
|---|---|
| Size | 34.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fead9e030305c48eda401b78ae9f735b5d718bf718a6bf82c7760b05f0b18e7
|
|
BLAKE2b-256 checksum How to use checksums |
92f01dff52602db2340ccea9ddac4f95d4dba4320d00ab926ce80784471146b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for cparse 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.