Skip to main content

CLI tool to organize and rename files.

Project description

batchwork: A Tool to Organize and Rename File

Introduction

This is a command-line utility tool written in Python that helps you organize and rename files in a directory. It sorts files into different folders based on their file extensions and renames files with a specified prefix.

Features

  1. File sorting: The script sorts files into the following categories:

    • Image files (.jpg, .png, .gif, etc.)
    • Audio files (.mp3, .wav, .flac, etc.)
    • Video files (.mp4, .avi, .mov, etc.)
    • Document files (.pdf, .doc, .txt, etc.)
    • Other files
  2. File renaming: The script renames files in a directory with a specified prefix and sequential numbers.

Usage

  1. File sorting:
    bw_sort <directory_path>
    

Replace <directory_path> with the path to the directory containing the files you want to sort. Recommended to cd to the directory that contains the folder you want to sort.

  1. File renaming:
    bw_rename <prefix> <directory_path>
    

Replace with the desired prefix for the files and <directory_path> with the path to the directory containing the files you want to rename. Recommended to cd to the directory that contains the folder whose contents you want to rename.

Installation

  1. Clone the repository to your machine

    git clone https://github.com/UgyenNorbu/batchwork_tools.git
    
  2. Navigate to the project directory:

    cd batchwork_tools
    
  3. Run the command

    python setup.py install
    

For this, setuptools is required. If it is not already installed. install by running; bash pip install setuptools

Dependencies

Contributing

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

batch_work-0.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file batch_work-0.1.tar.gz.

File metadata

  • Download URL: batch_work-0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for batch_work-0.1.tar.gz
Algorithm Hash digest
SHA256 49dc73b987cf3e7a5a3808e267b42a69412da1447296f5bc316e1c2ad6dbaf28
MD5 6156ca20976583f83c4b6cb3d15a3998
BLAKE2b-256 8a2f7d430804ba9e6ae1ad80bc629d9e7b1891e7fc6d5135b2d21bdff1cfd832

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page