Skip to main content

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!

Metadata

Release files for batchop 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for batchop 0.1.2
File Size Uploaded
batchop-0.1.2.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for batchop 0.1.2
File Interpreter ABI Platform
batchop-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / batchop-0.1.2.tar.gz

Download URL batchop-0.1.2.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c901b78f552fb5118c525c6db05d632d8d1453b9bb54992367a9a3b9010e9bc4
BLAKE2b-256 checksum
How to use checksums
907e936d52ee3c7ac152af1940a78f6a50abbf7f26b54904a0fd2f5a6dc3c824
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.5 Darwin/22.6.0

Release files / batchop-0.1.2-py3-none-any.whl

Download URL batchop-0.1.2-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f1651b428d2c20a4fb627a77ce7972d2a09f92e45bd0dbf74ffa692966b5fab
BLAKE2b-256 checksum
How to use checksums
97de59901310468322e5e0e86688b4a38e342e8abb4ea0bff13c6f6882caebcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.5 Darwin/22.6.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page