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 readme.md
# 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 -

Development

Setup with uv.

uv venv
. .venv/bin/activate
uv pip sync

Tests are run through pytest.

uv run pytest tests/ -v

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pmmv-0.4.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pmmv-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"EndeavourOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pmmv-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffe51ea0aff59008be480fd76cf3c48eb26b0bcef3ae4492c467f2f4272a15fd
MD5 727a032f73a6b039eb24d335340b9f2c
BLAKE2b-256 5e4aa97436e6f2ded6bdc6dbc2b364b2b9555f5e21039ebf97a701a74460845b

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