Batch file operations with an intuitive syntax and safe defaults
Project description
WARNING: batchop
is in early beta. It has bugs. Only use it on files that you have backed up.
batchop
is a command-line tool and Python library for doing operations on sets of files, with an
intuitive, human-readable syntax.
# or use `pipx` to install it in an isolated environment
$ pip install batchop
$ alias bop=batchop
$ bop list files with ext jpg
05_27_beach.jpg
05_27_cabin.jpg
05_28_hike.jpg
batchop
can list, count, rename, and delete files. It's a general-purpose
replacement for find
, xargs
, hand-written bash
loops, etc.
# change mm/dd to dd/mm/yyyy
$ bop rename '*_*_*.jpg' to '#2_#1_2024_#3.jpg'
# delete big out-takes
$ bop delete '*.jpg' in outtakes gt 5mb
Oh, and you can undo commands, too:
$ bop undo
# out-takes are back!
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
batchop-0.1.2.tar.gz
(12.8 kB
view details)
Built Distribution
batchop-0.1.2-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file batchop-0.1.2.tar.gz
.
File metadata
- Download URL: batchop-0.1.2.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c901b78f552fb5118c525c6db05d632d8d1453b9bb54992367a9a3b9010e9bc4 |
|
MD5 | 2b56f030494e19ad556c8f6367af89c9 |
|
BLAKE2b-256 | 907e936d52ee3c7ac152af1940a78f6a50abbf7f26b54904a0fd2f5a6dc3c824 |
File details
Details for the file batchop-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: batchop-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f1651b428d2c20a4fb627a77ce7972d2a09f92e45bd0dbf74ffa692966b5fab |
|
MD5 | ba2cf373ce815774bb2d8a078cc2a0be |
|
BLAKE2b-256 | 97de59901310468322e5e0e86688b4a38e342e8abb4ea0bff13c6f6882caebcf |