Skip to main content

dirganize

Declutter you folders and get peace of mind. A command-line tool to organize files into category directories.

Tests Code Quality codecov

Installation

pip install dirganize

Usage

Dirganize has an ultra simple command-line interface. Just move into the directory you want to organize, and run dirganize.

You can also specify which folder to organize by using the path option.

dirganize --path ~/Downloads

If no path is specified, dirganize works on the current directory.

Configuration

By default dirganize determines the destination folder for a particular file by guessing its type from its extension. The guess_type function of python's inbuilt module mimetypes is used for this purpose.

NOTE Dotfiles are not affected by dirganize.

You can put a .dirganize.yml file ( inside the folder you want to dirganize ) to provide a custom configuration.

# .dirganize.yml
# folder: [ext1,ext2, ...]
Animations: [gif]
Binaries: [bin,dat]

Basically you have the folder name, mapped to the list of file types to put in that folder.

Dirganize will first try to determine the destination directory from the .dirganize.yml. When the yaml configuration file is absent or the folder for an encountered file type is not defined in the configuration, dirganize will fallback to the default technique.

Metadata

Release files for dirganize 0.1.0

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

Source distribution (sdist)

Source distribution for dirganize 0.1.0
File Size Uploaded
dirganize-0.1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dirganize 0.1.0
File Interpreter ABI Platform
dirganize-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / dirganize-0.1.0.tar.gz

Download URL dirganize-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3c3780e85e1e928a90d5c014d36c025d96eb999582ad116d41aaa1e45b687b2f
BLAKE2b-256 checksum
How to use checksums
caf8fd7019a91c7bd857a3914e3dbb45424849f16385d3f944ccb91c535b3b3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-55-generic

Release files / dirganize-0.1.0-py3-none-any.whl

Download URL dirganize-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3e921ddbbcac950e66a69619b31edbe15166fd458c2fa1a22f1651292c3f05f
BLAKE2b-256 checksum
How to use checksums
069801303f154cb8f2b4e533017b3ea2fd657a8c24775265ad63dc1559c4f4c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-55-generic

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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