Skip to main content

recursively rename files and folders to remove spaces and format with optional flags

Project description

NoSpace

Video Demo: https://www.youtube.com/watch?v=j8HY4FUUE9w

Description:

Do you use the command line a lot? Are you tired of spaces and/or capitalization in your files that you have to waste precious keystrokes to put quotes around or hold the shift key? NoSpace might be for you!

I built this script as my final project for Harvard's CS50P, Introduction to Programming With Python.


Installation



pip install nospace

Usage


example usage

nospace -p test_directory -c lower -d 1 -o files -s -
usage: nospace [-h] [-d DEPTH] [-c {lower,title,upper}] [-o {both,files,folders}] [-s SEPERATOR] [-p PATH]

rename files in bulk to remove spaces

options:
  -h, --help            show this help message and exit
  -d DEPTH, --depth DEPTH
                        maximum depth of folders to traverse
  -c {lower,title,upper}, --case {lower,title,upper}
                        case of the renamed files and folders (lower, title, or upper)
  -o {both,files,folders}, --objects {both,files,folders}
                        objects to process (files, folders, or both)
  -s SEPERATOR, --seperator SEPERATOR
                        separator to replace spaces with (default is _)
  -p PATH, --path PATH  optional file path to start with

LICENSE

This repo is licensed under the permissive MIT license. You can do whatever you want with it.

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

nospace-0.1.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

nospace-0.1.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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