Skip to main content

A program that sorts files based on various attributes from the (currently only windows) context menu.

Project description

freshen

PyPI license PyPI - Python Version PyPI - Implementation PyPI - Wheel PyPI

What is freshen?

A program that sorts files based on various attributes from the windows context menu. Simply install the program and your context menu will have an added Sort Files entry.

Nothing complicated, it gets the job done.

What is the context menu?

The context menu is the option menu created from right clicking, such as:

Installation

Install from PyPI

First, install the pip package

pip install freshen-sorter

Install the dependencies:

pip install pyyaml
pip install context_menu

and run the following command to install to the context menu. This requires administrator permissions.

freshen -i

And you're done!

To uninstall, simply run:

freshen -u

Installing from Source files

  1. Download the latest release from the repository.

  2. Unzip the folder to a location where it won't be moved.

  3. Run the reginstall.py file

Usage

Made to be simple! No complicated command lines needed. 1. Install the required files. 2. Right click on the background of any Directory 3. Go to the Sort Files option and selected the desired organizer.

Organizers

There are four different options to organize files.

Sort by File Type

Probably the most useful organizer. Sorts each file into a folder based on the config/filegroups.yml file. The file already comes with the most common file extensions for each type of file(pictures, videos, etc.)

filegroups.yml

As mentioned earlier, the Sort by File Type uses the filegroups.yml to determine organization. This file can be manually changed to change the desired output, and the organization is quite straightforward.

# Audio Files
audio:
  - aif
  - cda
  - mid
  - midi
  - mp3
  - mpa
  - ogg
  - wav
  - wma
  - wpl
# Archive files
archives:
  - 7z
  - arj
  - deb
  - pkg
  - rar
  - rpm
  - tar.gz
  - z
  - zip
# etc.

You can either change the filegroups.yml file in the src directory and use the files built from the src folder, or if you already have the built files you can directly change the file in the dist directory. The context menu reads the file every time it is ran, so it will instantly update.

Sort by extension

Quite straightforward. Sorts each file into folders exclusively based on their extension.

Sort by Date

The only option that uses a cascading context menu(nested menus).

Sorts each file by the DATE MODIFIED attribute of the file. Has three options:

Day

Sorts up to the Day modified. Takes into account the year, month, and day.

shortcuts
├── _2019-05-16
├── _2019-05-19
├── _2019-05-24
└── _2019-06-28

Month

Sorts up to the Month modified. Takes into account the year and month.

shortcuts
├── _2019-05
└── _2019-06

Year

Sorts up to the Year modified. Takes into account only the year. '

shortcuts
└── _2019

Uproot Files

The only option that isn't actually a sort. Recursively moves every file of every subdirectory from the current location to the current location. Useful for getting rid of unnecessary folders and flattening out a directory. For example:

  dummies
  ├── Others
     └── database.accdb
  ├── audio
     ├── _2019-12-06
        └── music.mp3
     └── _2019-12-28
         └── music_.mp3
  ├── documents
     ├── _docx
        ├── document.docx
        ├── essay.docx
        └── grades.docx
     └── _txt
         └── notes.txt
  ├── executables
     └── test.py
  └── videos
      └── video.mp4

Would be converted to:

dummies
├── database.accdb
├── document.docx
├── essay.docx
├── grades.docx
├── music.mp3
├── music_.mp3
├── notes.txt
├── test.py
└── video.mp4

BE VERY CAREFUL USING THIS! It is easy to permanently ruin a directory or files, especially if something relies on a specific folder tree, for example the windows directory.

Extra Information

If you are working with the source files do NOT move the files after running reginstall.py as it might cause the code to be unstable. The registry points to the absolute path of the files when installed and does not update.

Files shouldn't be deleted or corrupted, as they haven't through all my testing so far. But keep in mind anything is possible, and if you data is THAT important you should probably back it up somewhere. Keep in mind I am NOT responsible for any damages that may arise from this program. Use it at your own risk.

I also created some articles about this project! Check them out:

Licensing

This project is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freshen-sorter-1.6.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

freshen_sorter-1.6.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file freshen-sorter-1.6.3.tar.gz.

File metadata

  • Download URL: freshen-sorter-1.6.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for freshen-sorter-1.6.3.tar.gz
Algorithm Hash digest
SHA256 b3618bd79732b7feeb3bf7c189e827b21e73001623bbef24dc440164835dc446
MD5 cca6abe32cd71cd3dfb0d3a359b054dc
BLAKE2b-256 2ccb8e39583938c4e70fd9df50a0796b4b1fba8cc681d35fb82599861443bebb

See more details on using hashes here.

File details

Details for the file freshen_sorter-1.6.3-py3-none-any.whl.

File metadata

  • Download URL: freshen_sorter-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for freshen_sorter-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 52dbda300b42b11a0801f4fdb4690fc305aef7109904c4b6d5ae0685f03cfb53
MD5 487f4193f40b2e299a4e3968178fce31
BLAKE2b-256 3b092c825f3d760587b676f0ba596cfda5102d2adab1081f18d9f609f077741c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page