{"id":24642518,"url":"https://github.com/luciancooper/cparse","last_synced_at":"2025-03-20T13:34:19.520Z","repository":{"id":57428988,"uuid":"166346265","full_name":"luciancooper/cparse","owner":"luciancooper","description":"Code parsing command line tool","archived":false,"fork":false,"pushed_at":"2019-04-14T08:36:15.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T14:06:36.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luciancooper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-18T04:56:51.000Z","updated_at":"2019-04-14T08:34:55.000Z","dependencies_parsed_at":"2022-09-02T16:39:02.651Z","dependency_job_id":null,"html_url":"https://github.com/luciancooper/cparse","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luciancooper%2Fcparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luciancooper%2Fcparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luciancooper%2Fcparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luciancooper%2Fcparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luciancooper","download_url":"https://codeload.github.com/luciancooper/cparse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244619493,"owners_count":20482423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-25T13:12:01.366Z","updated_at":"2025-03-20T13:34:19.500Z","avatar_url":"https://github.com/luciancooper.png","language":"Python","readme":"# cparse\n\n[![PyPI version shields.io](https://img.shields.io/pypi/v/cparse.svg?style=flat-square)](https://pypi.python.org/pypi/cparse/)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/cparse.svg?style=flat-square)](https://pypi.python.org/pypi/cparse/)\n[![PyPI license](https://img.shields.io/pypi/l/cparse.svg?style=flat-square)](https://pypi.python.org/pypi/cparse/)\n[![readthedocs](https://readthedocs.org/projects/cparse/badge/?version=latest\u0026style=flat-square)](https://cparse.readthedocs.io)\n\nCode parsing command line tool.\n\n\n## Installation\n\nWith `pip` via [PyPi](https://pypi.org)\n\n```bash\npip install cparse\n```\n\nClone the repository and install\n\n```bash\ngit clone git://github.com/luciancooper/cparse.git\ncd cparse\npython setup.py install\n```\n\n## Documentation\nFull documentation can be found [**here**](https://cparse.readthedocs.io)\n\n`cparse ` currently includes 6 commands\n\n * [`ls`](#ls) - list files in directory\n * [`tree`](#tree) - print file tree\n * [`stat`](#stat) - directory file extension stats\n * [`py`](#py) - python code parsing\n * [`html`](#html) - html link parsing\n * [`css`](#css) - css code parsing\n\n### `ls`\nPrints a list of the files in a directory. \n\n```bash\ncparse ls [-r] [-n \u003cdepth\u003e] [-d | -f] [-a] [-lim \u003ccount\u003e] [-fmt \u003cformat\u003e]\n          [-exc \u003cpath\u003e] [-inc \u003cpath\u003e]\n          [-wc \u003cpattern\u003e] [-grep \u003cregexp\u003e] [-ft \u003cfiletype\u003e]\n          [-m | -M | -c | -C | -b | -B | -i | -I | -g | -G] \u003cpath\u003e\n```\n\n### `tree`\nPrints a tree representation of the contents of a directory.\n\n```bash\ncparse tree [-d | -f] [-a] [-n \u003cdepth\u003e] [-fmt \u003cformat\u003e]\n            [-exc \u003cpath\u003e] [-inc \u003cpath\u003e]\n            [-wc \u003cpattern\u003e] [-grep \u003cregular-expression\u003e] [-ft \u003cfile-extension\u003e]\n            [-m | -M | -c | -C | -b | -B | -i | -I | -g | -G] \u003cpath\u003e\n```\n\n### `stat`\n\nPrints a table displaying the file extension proportions of a directory\n\n```bash\ncparse stat [-a] \u003cpath\u003e\n```\n\n### `py`\n\nParses the code of a provided python file\n\n```bash\ncparse py \u003cpath\u003e\n```\n\n### `html`\n\nParses the links in an HTML file and represents them as a file tree.\n\n```bash\ncparse html \u003cpath\u003e\n```\n\n### `css`\n\nParses CSS code, providing options to condense redundant rules and group identical selectors. \n\n```bash\ncparse css [-g] [-c] [-s] \u003cpath\u003e\n```\n\n\n## Dependencies\n\n * [pydecorator](https://github.com/luciancooper/pydecorator)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluciancooper%2Fcparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluciancooper%2Fcparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluciancooper%2Fcparse/lists"}