{"id":27155475,"url":"https://github.com/amirali104/code-cleaner","last_synced_at":"2025-08-21T10:17:50.359Z","repository":{"id":286647161,"uuid":"962082852","full_name":"AmirAli104/code-cleaner","owner":"AmirAli104","description":"A program to automatically remove line numbers and python shell prompt characters from a code","archived":false,"fork":false,"pushed_at":"2025-06-25T09:35:08.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T18:00:10.680Z","etag":null,"topics":["argparse","automation","code-cleaner","code-cleanup","console-application","line-number","line-numbers","python","python3","regex","regex-pattern","script"],"latest_commit_sha":null,"homepage":"","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/AmirAli104.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,"zenodo":null}},"created_at":"2025-04-07T16:10:35.000Z","updated_at":"2025-06-25T09:35:12.000Z","dependencies_parsed_at":"2025-06-25T10:38:32.889Z","dependency_job_id":null,"html_url":"https://github.com/AmirAli104/code-cleaner","commit_stats":null,"previous_names":["amirali104/code-cleaner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AmirAli104/code-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirAli104%2Fcode-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirAli104%2Fcode-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirAli104%2Fcode-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirAli104%2Fcode-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmirAli104","download_url":"https://codeload.github.com/AmirAli104/code-cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirAli104%2Fcode-cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271462094,"owners_count":24763858,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["argparse","automation","code-cleaner","code-cleanup","console-application","line-number","line-numbers","python","python3","regex","regex-pattern","script"],"created_at":"2025-04-08T19:40:49.902Z","updated_at":"2025-08-21T10:17:50.342Z","avatar_url":"https://github.com/AmirAli104.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# code-cleaner\n\nMaybe you have experienced that sometimes you copy a code from somewhere to paste it in your computer and run it. But in some websites they have placed the line numbers in such a way that when you copy the code the line numbers are also copied. You can remove these with this program.\n\nYou can also remove python shell prompts (`\u003e\u003e\u003e` and `...`) from python codes.\n\ncommand-line options\n---\n\n|option|description|\n|------|------|\n|`-n,--line`|files/directories to clear line numbers|\n|`-s,--shell`|files/directories to clear shell prompt characters|\n|`-d,--directory`|Consider the values given to '--shell' and '--line' as directories. You must give the file extentions you want to clean them to this argument. Its default is '.py' files.|\n|`-t,--tree`|If the both '--directory' and '--tree' are enabled it searches all subdirectories to find files|\n|`-v,--verbose`|Enable verbose mode|\n\nExamples\n---\n\n```\npython code-cleaner.py -s a.py b.py -n a.c\n```\n\nThe above command cleans the line numbers from `a.c` and the shell prompt characters from `a.py`.\n\n\n```\npython code-cleaner.py -n codes_directory -d .c .py -t -l\n```\n\nThe above command cleares the line numbers from the `.c` and `.py` files in the given directory and also shows the log. Because of the `-t` argument it checks all subdirectories.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirali104%2Fcode-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirali104%2Fcode-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirali104%2Fcode-cleaner/lists"}