{"id":13448135,"url":"https://github.com/bhrigu123/classifier","last_synced_at":"2025-05-15T13:04:27.578Z","repository":{"id":43339072,"uuid":"47931294","full_name":"bhrigu123/classifier","owner":"bhrigu123","description":"Organize files in your directory instantly, by classifying them into different folders","archived":false,"fork":false,"pushed_at":"2022-03-07T12:25:12.000Z","size":96,"stargazers_count":1087,"open_issues_count":26,"forks_count":129,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-07T16:13:30.107Z","etag":null,"topics":["classify-files","python"],"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/bhrigu123.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}},"created_at":"2015-12-13T18:34:17.000Z","updated_at":"2025-03-19T09:47:16.000Z","dependencies_parsed_at":"2022-09-22T14:52:35.310Z","dependency_job_id":null,"html_url":"https://github.com/bhrigu123/classifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhrigu123%2Fclassifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhrigu123%2Fclassifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhrigu123%2Fclassifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhrigu123%2Fclassifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhrigu123","download_url":"https://codeload.github.com/bhrigu123/classifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961186,"owners_count":21189991,"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":["classify-files","python"],"created_at":"2024-07-31T05:01:36.688Z","updated_at":"2025-04-14T20:56:42.277Z","avatar_url":"https://github.com/bhrigu123.png","language":"Python","readme":"\n# Classifier\nOrganize files in your current directory, by classifying them into folders of music, pdfs, images, etc.\n\n## Installation\n```sh\n$ pip install classifier\n```\n#### Compatibility\n* Python 2.7 / Python 3.4\n* Linux / OSX / Windows\n\n\n## Usage\n* Go to your directory, where you want to classify your files.\n* Run the following command in your terminal.\n```sh\n$ classifier\n```\n```sh\n\u003e\u003e Scanning Files\n\u003e\u003e Done!\n```\n\n## Example\n### Before:\n```\nDownloads\n│   ├── project.docx\n│   ├── 21 Guns.mp3\n│   ├── Sultans of Swing.mp3\n│   ├── report.pdf\n│   ├── charts.pdf\n│   ├── VacationPic.png\n│   ├── CKEditor.zip\n│   ├── Cats.jpg\n│   └── archive.7z\n```\n\n### After:\n```\nDownloads\n│   ├── Music\n│   │   ├── 21 Guns.mp3\n│   │   └── Sultans of Swing.mp3\n|   |\n│   ├── Documents\n│   │   ├── project.docx\n│   │   ├── report.pdf\n│   │   └── charts.pdf\n|   |\n│   ├── Archives\n│   │   ├── CKEditor.zip\n│   │   └── archive.7z\n|   |\n│   ├── Pictures\n│   │   ├── VacationPic.png\n│   │   └── Cats.jpg\n```\n\n\n## Options\n`classifier [-dt] [-st SPECIFIC_TYPES [SPECIFIC_TYPES ...]] [-sf SPECIFIC_FOLDER] [-o OUTPUT]`\n\noptional arguments:\n\n\t-h --help\t\t\t\tshow help message and exit\n\t\n\t-dt --date\t\t\t\tClassify the files by their Creation Date\n\t-st --specific-types\t\t\tMove the specific file extensions into the Specific Folder\n\t-sf --specific-folder\t\t\tFolder to move files with Specific Type\n\t\n\t-d --directory\t\t\t\tThe directory whose files you want to classify\n\t-o --output\t\t\t\tMain directory to put organized folders\n\t\n\t-v --version         \t\t\tshow version\n\t-t --types           \t\t\tShow the current list of types and formats\n\t-et --edittypes      \t\t\tEdit the list of types and formats (edit the CONFIG)\n\t\n\t-rst\t\t\t\t\tReset the CONFIG file\n\n\n### Example\n###### Classify specific file types\n`classifier -st py pyc -sf \"Python Files\"`\n\n### Before\n```\nWorkspace\n│   ├── views.py\n│   ├── temp.pyc\n│   ├── game.java\n│   ├── index.html\n│   └── script.py\n```\n\n\n### After\n```\nWorkspace\n│   ├── Python Files\n│   │   ├── views.py\n│   │   ├── temp.pyc\n|   |\t└── script.py\n|   |\n|   ├── game.java\n|   └── index.html\n\n```\n\n### Example\n###### Classify by Date:\n`classifier -dt`\n\n### Example\n###### Classify files of directory '/home/source' and put them in location '/home/dest':\n`classifier -d /home/source -o /home/dest`\n\n`Note: ` If -d (source directory) is given without -o (output) directory, this will classify the files of source directory Eg:\u003cbr\u003e\n`classifier -d /home/source'`\u003cbr\u003e\nThis classifies the directory /home/source.\n\n\n\n### View the CONFIG, how files will be sorted\n`classifier -t`\n\n### Edit the CONFIG, to set up manual settings for classification\n`classifier -et`\n\n### Reset the CONFIG file\n`classifier -rst`\n```\n\n```\n\n======\n\n## The MIT License\n\u003e Copyright (c) 2015 Bhrigu Srivastava http://bhrigu123.github.io\n\n\u003e Permission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\n\u003e The above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n","funding_links":[],"categories":["Python","\u003ca name=\"file-dir-cleanup\"\u003e\u003c/a\u003eClean up of files and directories"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhrigu123%2Fclassifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhrigu123%2Fclassifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhrigu123%2Fclassifier/lists"}