Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install rbco.rename

How to install rbco.rename

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install rbco.rename
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.5 Available View build log
0.4 Available View build log
0.2 Available View build log
Windows (64-bit)
0.5 Available View build log
0.4 Available View build log
0.2 Available View build log
Mac OS X (10.5+)
0.5 Available View build log
0.4 Available View build log
0.2 Available View build log
Linux (32-bit)
0.5 Available View build log
0.4 Available View build log
0.2 Available View build log
Linux (64-bit)
0.5 Available View build log
0.4 Available View build log
0.2 Available View build log
 
License
LGPL
Depended by
Imports
Lastest release
version 0.5 on Jun 27th, 2011

Introduction

rbco.rename provides a set of Python scripts to rename files in batch.

Install

  1. Install setuptools.

  2. Run:

    easy_install rbco.rename
    

This will install the renaming scripts mentioned in the following section.

Usage

  • rendel STR FILES

    Deletes the string STR from the names of all files in FILES.

  • rendeln N FILES

    Deletes the N first characters from the names of all files in FILES.

  • renlu FILES

    Renames all files in FILES performing the following operations:
    • replaces ' ' by '_';
    • replaces ' - ' and '- ' by '-';
    • lowercase the names;
    • remove leading and trailing spaces.
  • renmp3 FILES

    Renames all files in FILES performing the following operations:
    • replaces all accentuated characters by their ASCII counterparts.
    • replaces '_' by ' ';
    • replaces ' - ' and '- ' by '-';
    • titlecase the names;
    • lowcase file extension;
    • remove leading and trailing spaces;
    • replace ' ' by '-' after the track number, if needed;
    • makes track numbers have always 2 digits.
  • renid3 FILES

    USAGE: renid3 FILES

    Rename all FILES based on the ID3 tags and the FORMAT. Example of FORMAT: '%(tracknumber)s-%(artist)s-%(title)s.mp3'. Other tags can be specified: date, author, composer, performer, discnumber, album, etc.

    FORMAT is retrieved from the RBCO_RENAME_ID3_FORMAT environment variable. If there's no such variable then a default format is used.

  • renpre PREFFIX FILES

    Renames all files in FILES adding PREFFIX in the beggining of the file name.

  • renrep OLDSTR NEWSTR FILES

    Renames all files in FILES replacing OLDSTR by NEWSTR.

  • rensuf SUFFIX FILES

    Renames all files in FILES adding SUFFIX in the end of the file name. File extension is preserved.

  • unhide FILES

    Unhides all hidden files in FILES.

  • renremoveacc FILES

    Rename the FILES by replacing all accentuated characters by their ASCII counterparts.

Changelog

0.5 (2011-06-26)
  • Added renid3 script.
0.4 (2011-01-31)
  • Refactoring: moved funcionality out of console.renmp3 to renaming.rename_mp3.
  • Now "mp3" renaming -- provided by the renmp3 script -- also removes accentuation.
0.3 (2011-01-31)
  • Added renaming.rename_remove_accentuation and console.renremoveacc -- and its corresponding console script entry-point.
0.2 (2010-08-18)
  • Fixed bad setup.py.
0.1 (2010-08-15)
  • Initial release

Subscribe to package updates

Last updated Jun 27th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.