Skip to main content

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.

Metadata

Release files for freshen-sorter 1.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for freshen-sorter 1.6.3
File Size Uploaded
freshen-sorter-1.6.3.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for freshen-sorter 1.6.3
File Interpreter ABI Platform
freshen_sorter-1.6.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / freshen-sorter-1.6.3.tar.gz

Download URL freshen-sorter-1.6.3.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b3618bd79732b7feeb3bf7c189e827b21e73001623bbef24dc440164835dc446
BLAKE2b-256 checksum
How to use checksums
2ccb8e39583938c4e70fd9df50a0796b4b1fba8cc681d35fb82599861443bebb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / freshen_sorter-1.6.3-py3-none-any.whl

Download URL freshen_sorter-1.6.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52dbda300b42b11a0801f4fdb4690fc305aef7109904c4b6d5ae0685f03cfb53
BLAKE2b-256 checksum
How to use checksums
3b092c825f3d760587b676f0ba596cfda5102d2adab1081f18d9f609f077741c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.6.3 This release

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.12

2 release files

1.5.11

2 release files

1.5.10

2 release files

1.5.9

2 release files

1.5.8

2 release files

1.5.7

2 release files

1.5.6

2 release files

1.5.5

2 release files

1.5.4

2 release files

1.5.3

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page