Skip to main content

PMMV - Python Mass Move: A tool for batch renaming/moving files with an interactive editor

Project description

PMMV - Python Mass Move

PMMV is a tool for batch renaming/moving files with an interactive editor. Most useful when you need to rename a huge amount of files and could benefit from scripted macros. Works best with fd.

Features:

  • Rename files in the comfort of your favourite editor.
  • .pmmv.undo files allow you to undo your last renaming!
  • Git integration for renaming files.

Installation

Install using pip:

uv tool install pmmv

Usage

This was built with vim in mind, though any editor will work. The script will look at the EDITOR variable to determine which editor to use. For instance, export EDITOR=code would open vscode.

uvx pmmv *.txt
# Or include a full directory
uvx pmmv my_dir/

Or pipe files from another command:

find . -name "*.txt" | uvx pmmv
# Or try the much faster fd-find
fd -e txt | uvx pmmv

Acknowledgements

This is my first project that's almost entirely vibe-coded. I used an initial prompt to claude sonnet 4.5 which can be seen at docs/initial_prompt.txt. I then used qwen3-coder-30b-a3 from cpatonn through vllm 0.11.0 and Qwen Code 0.0.14 to iterate further on the code.

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

pmmv-0.2.0.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.

pmmv-0.2.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pmmv-0.2.0.tar.gz.

File metadata

  • Download URL: pmmv-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for pmmv-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e4f41b86b5ead65e052e48c05f6f29a992ac5e1c99ca192cb3f50b424fcc3fd0
MD5 e43668a6f890a5b0fbe178311c0744b9
BLAKE2b-256 17073bb5d3e08632d910877702864267c220fb37dfd87bd930410b09ca3d0041

See more details on using hashes here.

File details

Details for the file pmmv-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pmmv-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for pmmv-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee60fa0d22370e8c057bb78b2a607814c008ee4e2b9d4d135c0f484de807a338
MD5 46968fe19238c7c9217c43a5a2a3cd3c
BLAKE2b-256 be51c3b737642944421133a5e55471d15dd8f1137b61b2ced575e2f0b5204135

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