Giter Club home page Giter Club logo

classer's Introduction

Build Status

classer

'classify' in French

Organize a directory by classifying files into different places.

USAGE

Example directory:

Downloads
├── a_document.docx
├── a_draft.txt
├── a_picture.jpg
├── a_song.mp3
├── a_video.mp4
├── mydocs
│   ├── a_book.epub
│   └── a_document.docx
└── mypodcasts
    └── a_podcast.wav
USING MANUEL
$ classer manuel -c '*.docx' '*.epub' Downloads Downloads/Documents
Downloads
├── a_draft.txt
├── a_picture.jpg
├── a_song.mp3
├── a_video.mp4
├── mypodcasts
│   └── a_podcast.wav
└── Documents
    ├── a_book.epub
    ├── a_document (2).docx
    └── a_document.docx
USING AUTO
$ classer auto classer/config/sample_criteria.json
Downloads
├── Documents
│   ├── a_book.epub
│   ├── a_document (2).docx
│   ├── a_document.docx
│   └── a_draft.txt
├── Music
│   └── a_song.mp3
├── mypodcasts
│   └── a_podcast.wav
├── Pictures
│   └── a_picture.jpg
└── Videos
    └── a_video.mp4
USING UNDO
$ classer auto classer/config/sample_criteria.json
$ classer undo --autoclean
Downloads
├── a_document.docx
├── a_draft.txt
├── a_picture.jpg
├── a_song.mp3
├── a_video.mp4
├── mydocs
│   ├── a_book.epub
│   └── a_document.docx
└── mypodcasts
    └── a_podcast.wav

NOTES

  • Use --help option for more further information.
  • To work with history, use histoire command.
  • In command-line mode aka manuel command, ALWAYS put quote marks around EXPRS so as not to confligs with the OS.
  • Criteria files are in json format. Check out the sample file in config/sample_criteria.json.
  • Because click does not support options with infinite values like arguments, you must explicitly add as many -x/--exclude as you need. eg: classer manuel -x NO_TOUCH -x .ignore '*.txt' . .

INSTALLATION

Only compatible with Python >= 3.6

$ git clone https://github.com/lqmanh/classer.git
$ cd classer
$ pip install -r requirements.txt
$ pip install .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.