Skip to main content

A CLI tool to organize files by their extensions

Project description

Neatify

A simple CLI tool to organize files in a folder by their extensions.

Features

  • Automatically organize files into folders by type (images, documents, videos, etc.)
  • Manage custom extension mappings
  • Add, remove, and list file extension categories
  • Restore default extension mappings

Screenshot

Neatify in action

Organizing files with Neatify

Installation

From Source

# Clone the repository
git clone https://github.com/anmoljhamb/neatify.git
cd neatify

# Install in development mode
pip install -e .

Using pip

pip install neatify

Getting Started

After installation, you'll need to set up your configuration file before organizing files.

  1. Generate the default configuration:
   neatify default

This creates a comprehensive list of file extensions organized by categories (Images, Documents, Videos, etc.).

  1. Verify your configuration (optional):
   neatify list

This shows all configured categories and their extensions.

  1. Organize your first folder:
   neatify organise /path/to/folder

Note: Running neatify organise without first running neatify default will fail because no configuration file exists yet.

Usage

Organize a Folder

neatify organise /path/to/folder

This will organize all files in the specified folder into subfolders based on their file types.

List Extensions

View all configured file extension categories:

neatify list

Add an Extension

Add a new extension to a category:

neatify add Image .webp

Remove an Extension

Remove an extension from a category:

neatify remove Image .webp

Remove a Category

Remove an entire category:

neatify rmcat oldcategory

Clear All Extensions

Clear all extension mappings:

neatify clear

Restore Defaults

Restore the default extension mappings:

neatify default

Custom Extensions File

Use a custom extensions JSON file:

neatify --file custom_extensions.json organise /path/to/folder

Examples

# Organize your Downloads folder
neatify organise ~/Downloads

# Add .svg to the image category
neatify add Image .svg

# View all extensions
neatify list

# Remove a category you don't need
neatify rmcat Audio

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

neatify-1.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

neatify-1.0.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file neatify-1.0.2.tar.gz.

File metadata

  • Download URL: neatify-1.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for neatify-1.0.2.tar.gz
Algorithm Hash digest
SHA256 aa2974cc4823adb7a55c575259bf95a26940f6a0325a56a356cd32cb744dca97
MD5 a9fd178eff54333d0ad220854b01b7d9
BLAKE2b-256 ef7ae48d4daa08f8009171bad4bf39c68fe7cec14a7cb1c4bb966b18e68422ee

See more details on using hashes here.

File details

Details for the file neatify-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: neatify-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for neatify-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58c37474115cb7fd85521c26985c559e2e4cc1af7c7fac23b77cb2e6b97afa53
MD5 8eda92548f3ff5dccc766d4adc437dee
BLAKE2b-256 8f36318ba19108acb148b3d955a33b6381703f6517048f5870f1905a1e25aa78

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