{"id":23050291,"url":"https://github.com/iprakharv/unix-wc-tool","last_synced_at":"2025-04-03T03:41:32.606Z","repository":{"id":259075103,"uuid":"876259229","full_name":"iPrakharV/Unix-wc-tool","owner":"iPrakharV","description":"wc is a Python-based command-line tool that replicates some of the functionalities of the Unix wc utility. This tool allows users to count bytes, words, lines, and characters in a given text file or standard input.","archived":false,"fork":false,"pushed_at":"2024-10-21T17:41:11.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T18:58:22.827Z","etag":null,"topics":["cli","unix","word-counter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iPrakharV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-10-21T17:01:53.000Z","updated_at":"2024-10-21T18:08:17.000Z","dependencies_parsed_at":"2024-10-22T23:44:08.139Z","dependency_job_id":null,"html_url":"https://github.com/iPrakharV/Unix-wc-tool","commit_stats":null,"previous_names":["iprakharv/unix-wc-tool"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iPrakharV%2FUnix-wc-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iPrakharV%2FUnix-wc-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iPrakharV%2FUnix-wc-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iPrakharV%2FUnix-wc-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iPrakharV","download_url":"https://codeload.github.com/iPrakharV/Unix-wc-tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933357,"owners_count":20857052,"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":["cli","unix","word-counter"],"created_at":"2024-12-15T23:31:23.086Z","updated_at":"2025-04-03T03:41:32.586Z","avatar_url":"https://github.com/iPrakharV.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unix Word Counter\n\n`wc` is a Python-based command-line tool that replicates some of the functionalities of the Unix `wc` utility. This tool allows users to count bytes, words, lines, and characters in a given text file or standard input.\n\n## Features\n\n- Count the number of bytes in the text.\n- Count the number of lines in the text.\n- Count the number of words in the text.\n- Count the number of characters in the text.\n- Read input from a file or standard input.\n\n## Installation\n\nClone this repository to your local machine:\n\n```bash\nhttps://github.com/iPrakharV/Unix-wc-tool.git\n```\nNavigate to the cloned directory:\n```bash\ncd wc\n```\n## Usage\nTo use pywc, you can pass in a filename or pipe text into it from standard input. Here are some examples of how to use pywc:\n```bash\n# Count lines, words, and characters in a file\npython3 wc.py test.txt\n\n# Count only lines from standard input\ncat test.txt | python3 wc.py -l\n\n# Count only words in a file\npython3 wc.py -w test.txt\n\n# Count only characters in a file\npython3 wc.py -m test.txt\n\n# Count only bytes in a file\npython3 wc.py -c test.txt\n```\n## Options\n- -c, --bytes Count the number of bytes.\n- -l, --lines Count the number of lines.\n- -w, --words Count the number of words.\n- -m, --chars Count the number of characters.\n## Contributing\nContributions are welcome! Please feel free to submit a pull request or open an issue if you have suggestions or improvements.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiprakharv%2Funix-wc-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiprakharv%2Funix-wc-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiprakharv%2Funix-wc-tool/lists"}