Skip to main content

A command-line tool for fast and flexible file and directory renaming.

Project description

Renamer-CLI

Renamer-CLI is a simple command-line tool designed to streamline file management tasks, particularly for data scientists and developers. With customizable naming patterns and intuitive features, Renamer-CLI empowers users to effortlessly organize and rename files, saving time and enhancing productivity across various projects and workflows.

Table of Contents

Installation

Renamer-CLI requires Python 3 and pip to be installed on your system. You can install Renamer-CLI using pip:

pip install renamer-cli

Usage

Renamer-CLI offers a variety of powerful features to streamline your file management tasks.

usage: renamer [-h] [-d DIRECTORY] [-p PATTERN] [-f] [-D] [-e EXTENSIONS [EXTENSIONS ...]] [-r] [-i] [-u]

Rename files and directories based on a user-defined pattern

options:
  -h, --help            show this help message and exit
  -d DIRECTORY, --directory DIRECTORY
                        Path to the directory containing files and directories to be renamed.
  -p PATTERN, --pattern PATTERN
                        Naming pattern for renaming files and directories. Use placeholders like {name}, {parent}, {date}, etc.
  -f, --files-only      Rename only files, not directories.
  -D, --directories-only
                        Rename only directories, not files.
  -e EXTENSIONS [EXTENSIONS ...], --extensions EXTENSIONS [EXTENSIONS ...]
                        Rename only files with specified extensions.
  -r, --recursive       Perform renaming recursively, including files and directories in subdirectories.
  -i, --interactive     Enable interactive mode for manual confirmation of each renaming operation.
  -u, --undo            Undo the last file and directory renaming operation.

Patterns

Name and Extension

Renamer-CLI allows you to customize filenames by incorporating both name and extension.

name pattern

Parent Directory

Easily include the parent directory name in your filenames for better organization.

Parent dir pattern

Date

Automatically add date information to your filenames for versioning or sorting.

Date pattern

More Soon...

Stay tuned for additional pattern options coming soon!

Options

All these options can be combined to tailor the renaming process to your specific needs.

File Only

Effortlessly filter and rename files only, leaving directories untouched.

file only

Directory Only

Similarly, focus exclusively on directories, perfect for organizing your file structure.

Directory only

Extension

Refine your renaming process by filtering files based on specific extensions.

By Extension

Interactive

Engage with an interactive mode to confirm each renaming operation.

Interactive

Recursive

Enable recursive mode to apply renaming operations to all subdirectories.

Recursive

Undo

Effortlessly revert the last renaming operation with the undo feature.

Undo option

Contributing

Thank you for considering contributing to renamer-cli! Contributions are welcome from everyone.

How to Contribute

If you'd like to contribute to renamer-cli, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your changes and commit them to your branch.
  4. Push your changes to your fork.
  5. Submit a pull request to the main repository.

Code Style

Please adhere to the project's code style and conventions.

Reporting Issues

If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.

License

This project is licensed under the MIT License.

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

renamer-cli-1.2.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

renamer_cli-1.2.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file renamer-cli-1.2.2.tar.gz.

File metadata

  • Download URL: renamer-cli-1.2.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for renamer-cli-1.2.2.tar.gz
Algorithm Hash digest
SHA256 8231e5172cd6a1cfbb1153a9828781b38bfc8a803c4f10406582220a1be8ba90
MD5 24883e1f8eb4635008a6d1d359df626d
BLAKE2b-256 f94b37c99264b62d5304e6f644e4d80561290d0467a94806667e24ca584411d9

See more details on using hashes here.

File details

Details for the file renamer_cli-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: renamer_cli-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for renamer_cli-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a51bac75e602e211962d6f59b72d4ef73ec6f776e56b14b9451fe095b62bf3cd
MD5 d2b149e6faee1b0deeb4f600a9a58997
BLAKE2b-256 620bb37e01835b5a98b92c993e7b629fdfa36c0166bf508e32e18bc1e149eb0e

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