Code Monkey home page Code Monkey logo

downloads-folder-watcher's Introduction

CodeFactor

Downloads Folder Watcher


Hi!
Have you ever fresh-installed your OS and saw how beautiful and clean were the folders inside it, but after a while using it and downloading much stuff from the internet you were not able anymore to easily find something inside your Downloads Folder?

Your problems are solved!!!

This is a simple cross-platform project that aims to organize your Downloads Folder by moving new files from it to other folders.
E.g.: If you download an image file, it wil be moved into your Pictures folder. The same could be for a document file or any other file that you can get a pattern from.

How to use it

First you need to set up the environment by running pip install -r requirements.txt (it is recommended to use a virtual environment).

Then you can simply run the main script by executing: python -m downloads_watcher.

Configuring

You can edit the extensions you wish to track and the destination folders on bin/settings.json.
But here is a snippet from it anyway:

{
    "file_patterns": {
        "Pictures": ["*.png", "*.jpg", "*.jpeg", "*.exif", "*.tiff", "*.gif", "*.bmp"],
        "Documents/TextFiles": ["*.txt"],
        "Documents/PDFFiles": ["*.pdf"],
        "Documents/DocFiles": ["*.doc", "*.docx"],
        "Documents/ExcelFiles": ["*.csv", "*.xls"]
    },
    "watch_folder_path": "C:/Users/LuisHenri/Downloads"
}

Advanced settings

It is also possible to create an executable from it in order to make it simpler to run it at startup.
To do so, install pyinstaller by either running pip install -U pyinstaller or pip install -r requirements-dev.txt.

After finished, you can simply run pyinstaller --clean main.spec and it will create a DownloadsWatcher executable inside a dist folder.

NOTE: It will have an .EXE extension if compiled on Windows or NO extension at all if compiled on Linux.

Now you just need to set your OS to run it at startup:

downloads-folder-watcher's People

Contributors

luishenri avatar

Watchers

 avatar

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.