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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file nospace-0.1.1.tar.gz
.
File metadata
- Download URL: nospace-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.9 Linux/6.1.9-arch1-2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 006655d3c24699fa9136f9c931e0d615107674a7a75001fe4bdc0b221a8dfc7e |
|
MD5 | 2ace563b5d2e23c51e65c3642b4a91bb |
|
BLAKE2b-256 | d11f99802c01621397866c0865ac9c2f2c2e6f1f4f811ecdda8925353cb6fe4a |
File details
Details for the file nospace-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: nospace-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.9 Linux/6.1.9-arch1-2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 999822b06bd2ed51af20fa4dfe898ac46ee9ddff038b16875750989d4c0286d5 |
|
MD5 | 74ad3390d6837710f784e521967a5093 |
|
BLAKE2b-256 | 9e75cf98f0a13c92643607bca6bd7ffd72df5372314d19077595bbe9f1aeb991 |