Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradleybonitatibus/pic-selector
https://github.com/bradleybonitatibus/pic-selector
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bradleybonitatibus/pic-selector
- Owner: bradleybonitatibus
- Created: 2024-08-05T19:24:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-05T19:26:46.000Z (6 months ago)
- Last Synced: 2024-08-05T22:46:56.080Z (6 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `pic-selector`
This is a small script to help move files between directories, aimed at
simplifying the selection of pictures with some numerical suffix, a prefix,
into a "selected" directory within the folder specified.## Example Use
Out of the following pictures in some directory (`C:\\Users\\me\\Pictures\\2024-08-04`),
I have the following pictures:
- `_DSC0001.JPG`
- `_DSC0002.JPG`
- `_DSC0003.JPG`
- `_DSC0004.JPG`
- `_DSC0005.JPG`and I only want to select `_DSC0001.JPG`, and `_DSC0004.JPG`, my `./config.json`
would look like:
```json
{
"input_directory": "C:\\Users\\me\\Pictures\\2024-08-04",
"extension": ".JPG",
"prefix": "_DSC",
"inclusion_list": [
"0001",
"0005"
]
}
```I would then invoke the CLI program with:
```sh
python pic_selector.py --config ./config.json
```You will then see the selected files copied to `C:\\Users\\me\\Pictures\\2024-08-04\\selected`.