{"id":24599878,"url":"https://github.com/utkarsh5026/code_lines","last_synced_at":"2025-07-13T03:36:36.002Z","repository":{"id":269274941,"uuid":"906785473","full_name":"utkarsh5026/code_lines","owner":"utkarsh5026","description":"Count the code lines by files to boast about your abilities","archived":false,"fork":false,"pushed_at":"2024-12-23T20:28:16.000Z","size":138,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T13:17:51.025Z","etag":null,"topics":["command-line-tool","python","rich","rich-text","tool"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utkarsh5026.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-21T22:32:58.000Z","updated_at":"2025-01-04T22:36:12.000Z","dependencies_parsed_at":"2024-12-22T11:29:56.606Z","dependency_job_id":"b9efab5f-a679-4967-b2b0-2de56bd20ddf","html_url":"https://github.com/utkarsh5026/code_lines","commit_stats":null,"previous_names":["utkarsh5026/code_lines"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkarsh5026%2Fcode_lines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkarsh5026%2Fcode_lines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkarsh5026%2Fcode_lines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkarsh5026%2Fcode_lines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utkarsh5026","download_url":"https://codeload.github.com/utkarsh5026/code_lines/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173494,"owners_count":20410295,"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":["command-line-tool","python","rich","rich-text","tool"],"created_at":"2025-01-24T13:17:57.433Z","updated_at":"2025-03-18T06:40:31.909Z","avatar_url":"https://github.com/utkarsh5026.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📊 Line Counter CLI\n\nA powerful command-line interface tool for counting lines of code in your projects. This tool provides detailed analysis of your codebase with support for multiple file extensions, ignore patterns, and various viewing options.\n\n## Features\n\n- 📁 Count total lines across your project\n- 🔍 Filter by specific file extensions\n- 🚫 Ignore specific patterns or directories\n- 📊 View results per file or per directory\n- 📈 Progress tracking during analysis\n- 🎨 Beautiful terminal output using Rich\n\n## Installation\n\n```bash\n# Installation instructions (adjust based on your distribution method)\npip install line-counter-cli\n```\n\n## Usage\n\nThe basic command is `cl` (count lines) with various options:\n\n```bash\n# Basic usage (counts all files in current directory)\ncl\n\n# Count specific file extensions\ncl -e py -e js\n\n# Count lines in a specific directory\ncl -d /path/to/directory\n\n# Ignore specific patterns\ncl -i '**/venv/**' -i '**/.git/**'\n\n# Show file-wise breakdown\ncl -f\n\n# Show directory-wise breakdown\ncl -d\n```\n\n## Options\n\n| Option               | Short  | Description                                            |\n| -------------------- | ------ | ------------------------------------------------------ |\n| `--root-dir`       | `-d` | Root directory to analyze (default: current directory) |\n| `--extensions`     | `-e` | File extensions to count (can be used multiple times)  |\n| `--ignore`         | `-i` | Patterns to ignore (can be used multiple times)        |\n| `--file-wise`      | `-f` | Show line count breakdown per file                     |\n| `--directory-wise` | `-d` | Show line count breakdown per directory                |\n\n## Examples\n\n```bash\n# Count Python and JavaScript files, excluding venv directory\ncl -e py -e js -i '**/venv/**'\n\n# Show detailed directory-wise breakdown for a specific path\ncl -d /path/to/project --directory-wise\n\n# Count all files with per-file breakdown\ncl --file-wise\n```\n\n## Output Examples\n\n### Directory-Wise analysis\n![Directory-wise output example](./images/dir_wise.png)\n\n\n### File-Wise analysis\n![File-wise output example](./images/file_wise.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futkarsh5026%2Fcode_lines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futkarsh5026%2Fcode_lines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futkarsh5026%2Fcode_lines/lists"}