classifier

Organize files in your directory instantly, by classifying them into different folders

https://github.com/bhrigu123/classifier

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 26 committers (3.8%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary

Keywords

classify-files python
Last synced: 6 months ago · JSON representation

Repository

Organize files in your directory instantly, by classifying them into different folders

Basic Info
  • Host: GitHub
  • Owner: bhrigu123
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 93.8 KB
Statistics
  • Stars: 1,092
  • Watchers: 42
  • Forks: 128
  • Open Issues: 26
  • Releases: 0
Topics
classify-files python
Created about 10 years ago · Last pushed almost 4 years ago
Metadata Files
Readme

README.md

Classifier

Organize files in your current directory, by classifying them into folders of music, pdfs, images, etc.

Installation

sh $ pip install classifier

Compatibility

  • Python 2.7 / Python 3.4
  • Linux / OSX / Windows

Usage

  • Go to your directory, where you want to classify your files.
  • Run the following command in your terminal. sh $ classifier sh >> Scanning Files >> Done!

Example

Before:

Downloads │   ├── project.docx │   ├── 21 Guns.mp3 │   ├── Sultans of Swing.mp3 │   ├── report.pdf │   ├── charts.pdf │   ├── VacationPic.png │   ├── CKEditor.zip │   ├── Cats.jpg │   └── archive.7z

After:

Downloads │   ├── Music │   │   ├── 21 Guns.mp3 │   │   └── Sultans of Swing.mp3 | | │   ├── Documents │   │   ├── project.docx │   │   ├── report.pdf │   │   └── charts.pdf | | │   ├── Archives │   │   ├── CKEditor.zip │   │   └── archive.7z | | │   ├── Pictures │   │   ├── VacationPic.png │   │   └── Cats.jpg

Options

classifier [-dt] [-st SPECIFIC_TYPES [SPECIFIC_TYPES ...]] [-sf SPECIFIC_FOLDER] [-o OUTPUT]

optional arguments:

-h --help               show help message and exit

-dt --date              Classify the files by their Creation Date
-st --specific-types            Move the specific file extensions into the Specific Folder
-sf --specific-folder           Folder to move files with Specific Type

-d --directory              The directory whose files you want to classify
-o --output             Main directory to put organized folders

-v --version                    show version
-t --types                      Show the current list of types and formats
-et --edittypes                 Edit the list of types and formats (edit the CONFIG)

-rst                    Reset the CONFIG file

Example

Classify specific file types

classifier -st py pyc -sf "Python Files"

Before

Workspace │   ├── views.py │   ├── temp.pyc │   ├── game.java │   ├── index.html │   └── script.py

After

``` Workspace │   ├── Python Files │   │   ├── views.py │   │   ├── temp.pyc | | └── script.py | | | ├── game.java | └── index.html

```

Example

Classify by Date:

classifier -dt

Example

Classify files of directory '/home/source' and put them in location '/home/dest':

classifier -d /home/source -o /home/dest

Note: If -d (source directory) is given without -o (output) directory, this will classify the files of source directory Eg:
classifier -d /home/source'
This classifies the directory /home/source.

View the CONFIG, how files will be sorted

classifier -t

Edit the CONFIG, to set up manual settings for classification

classifier -et

Reset the CONFIG file

classifier -rst ```

```

======

The MIT License

Copyright (c) 2015 Bhrigu Srivastava http://bhrigu123.github.io

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Owner

  • Name: Bhrigu Srivastava
  • Login: bhrigu123
  • Kind: user
  • Location: New Delhi, India

GitHub Events

Total
  • Watch event: 27
  • Fork event: 1
Last Year
  • Watch event: 27
  • Fork event: 1

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 97
  • Total Committers: 26
  • Avg Commits per committer: 3.731
  • Development Distribution Score (DDS): 0.526
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Bhrigu Srivastava c****u@g****m 46
lachlan-00 u****r@d****u 13
Sahil Singh s****0@g****m 4
Said s****n@g****m 3
Bhrigu Srivastava b****u@B****l 3
Yask Srivastava y****3@g****m 3
Avi Aryan a****3@g****m 2
Manuel Martín d****s@g****m 2
Yi Tang s****g@g****m 2
lepickle m****7@y****m 2
sachin i****r@g****m 2
Ahmed Kachkach a****h@g****m 1
Been Woo s****g@g****m 1
CK z****k 1
Diego Martins de Siqueira d****0@l****m 1
DrNightmare a****7@g****m 1
Leo Khachatorians l****s@g****m 1
Neui N****i 1
Steve Edson s****n@g****m 1
walkr w****r@l****l 1
lachlan-00 u****r@s****m 1
Michael Lazar m****r@i****m 1
JTG m****l@s****m 1
Tanel Puhu t****l@t****m 1
Tim Sullivan s****m@g****m 1
mounaim m****i@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 34
  • Total pull requests: 56
  • Average time to close issues: 25 days
  • Average time to close pull requests: 3 months
  • Total issue authors: 31
  • Total pull request authors: 39
  • Average comments per issue: 1.68
  • Average comments per pull request: 1.02
  • Merged pull requests: 29
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • manu-chroma (3)
  • ricardovsilva (2)
  • freddiev4 (1)
  • JoAl115 (1)
  • rihenperry (1)
  • jyn514 (1)
  • Endi1 (1)
  • jsabra1 (1)
  • Toltar (1)
  • h8ohmh (1)
  • moun3imy (1)
  • singhpratyush (1)
  • berroteran (1)
  • DrNightmare (1)
  • achekroud (1)
Pull Request Authors
  • yittg (4)
  • leokhachatorians (3)
  • psachin (3)
  • aviaryan (3)
  • reidwagner (3)
  • lachlan-00 (2)
  • mjcortejo (2)
  • SteveEdson (2)
  • zenofsahil (2)
  • yask123 (2)
  • d6o (2)
  • abbbi (2)
  • sqbing (1)
  • patlux (1)
  • Endi1 (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 182 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 11
  • Total versions: 16
  • Total maintainers: 1
pypi.org: classifier

Classify the files in your Downloads folder into suitable destinations.

  • Versions: 16
  • Dependent Packages: 0
  • Dependent Repositories: 11
  • Downloads: 182 Last month
Rankings
Stargazers count: 2.0%
Forks count: 4.2%
Dependent repos count: 4.4%
Average: 6.1%
Downloads: 10.0%
Dependent packages count: 10.0%
Maintainers (1)
Last synced: 6 months ago

Dependencies

setup.py pypi
  • arrow *