orgpy is a utility that allows you to quickly organize your files in a predefined structure
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of
python3
To install orgpy, follow these steps:
git clone https://github.com/2kabhishek/orgpy
cd orgpy
# Setup symlink, make sure target directory is added to PATH
ln -sfnv "$PWD/orgpy.py" ~/Applications/bin/orgpyUSAGE:
orgpy [-h] [path] [--dry-run] [-c CONFIG_FILE] [--config-path]
Organize your digital mess.
positional arguments:
path The directory path to organize. [Default: current working directory]
options:
-h, --help show this help message and exit
--dry-run Preview changes without actually moving files.
-c, --config CONFIG_FILE
Path to custom configuration file.
--config-path Show configuration file path and exit.
Visit github.com/2KAbhishek/orgpy for more.
EXAMPLE:
orgpy ~/Downloads # Organizes your downloads directory
orgpy ~/Desktop --dry-run # Preview what would be organized in desktoporgpy automatically creates a config file at ~/.config/orgpy.json on first run with default file categories.
You can customize this file to add your own categories or modify existing ones.
# Show config file location
orgpy --config-path
# Use custom config file
orgpy --config /path/to/custom/config.jsonThe project includes a comprehensive test suite with zero external dependencies (uses only Python's built-in unittest):
# Run all tests
python3 tests/test_orgpy.py
# Or run with module discovery
python3 -m unittest discover tests -vHit the β button if you found this useful.