spaceminator is a command line tool to help you get rid off those nasty spaces in your filenames!
Table of Contents
1. Requirements
spaceminator works on both Python 2 and Python 3 (tested on python2.7 and python3.5+) and is Linux and Windows compatible (tested on Linux Mint 18.3 and Windows 7).
Dependencies:
spaceminator is written purely in Python. Tests depend on pytest, pytest-runner, pytest-mock and mock.
2. Installation
spaceminator can be easily installed using pip:
pip install -U spaceminator
3. Usage
To run spaceminator just type spaceminator --help in your terminal and hit Enter to get list of available options.
~$ spaceminator --help
usage: spaceminator [-h] [-p PATH] [-l] [-q] [-c CHAR] [-r] [-d | -f | -ln]
spaceminator is a command line tool to help you get rid off those nasty spaces
in filenames!
optional arguments:
-h, --help show this help message and exit
-p PATH, --path PATH Absolute path to work on (defaults to current working
directory)
-l, --list List files and directories only
-q, --quiet Disable verbose mode
-c CHAR, --char CHAR Replace char (default: _)
-r, --recursive Go inside directories
-d, --dirs-only Rename directories only
-f, --files-only Rename files only
-ln, --links-only Rename symlinks only
For example, to only list files and directories which include spaces in their names, type:
~$ spaceminator -l -r File: '/home/user/long dir name/file inside dir' Dir: '/home/user/long dir name' File: '/home/user/long file name'
To rename all files and directories in a current directory, type:
~$ spaceminator -r Renamed File '/home/user/long dir name/file inside dir' -> 'file_inside_dir' Renamed Dir '/home/user/long dir name' -> 'long_dir_name' Renamed File '/home/user/long file name' -> 'long_file_name'
4. Contributing
5. Support
If you need assistance, want to report a bug or request a feature, please raise an issue here.
6. License
spaceminator is released under the terms of the MIT License. Please refer to the LICENSE.txt file for more details.
Metadata
Release files for spaceminator 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spaceminator-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for spaceminator-1.0.0-py2.py3-none-any.whl |
Release files / spaceminator-1.0.0-py2.py3-none-any.whl
| Download URL | spaceminator-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
98f6c8f1b650ae8f2447cbad40c0a6318643c627182e3d6785a7fbef1e6eade2
|
|
BLAKE2b-256 checksum How to use checksums |
e78d45ec50a6e5700e089349f220916ff2d69244f182e1dd567c68bdc9b75c0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for spaceminator 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.