A tool and library to run task or moves on many files
Project description
# Meta Task
Tools that support:
- Runs commands on a set of files
- Multi process the for fast run
- Read metadata from the file with exiftool
- Use metadata in rename or command
- Set metadata on the file
- Support jinja template
- Rename or move the file
Config file `<Standard config path>/metatask.yaml`, `~/.config/metatask.yaml` on Linux
Syntax:
```yaml
nb_process: <number of concurent process>
ignore_dir: <list of directory regexpto be ignored>
task:
<name>:
display: <text>
source-mime: <mime type>
merge: <True|False, use to combine files, defaut is False>
keep: <True|False, uset to keep the source file, default is False>
commands: [<list of commands or command names>]
cmds:
<name>:
display: <text>
metadata: True # => get some metadata with `exiftool` and can be used with python format syntax
...
<name>:
display: <text>
cmd: <the command with {in} and {out} (if not inplace)>
out_ext: <the output extension (optional)>
inplace: <True|False default is False>
<name>:
display: <text>
type: rename
from: <regexp>
to: <pattern with \1, ...>
<name>:
display: <text>
type: rename
do:
- from: <regexp>
to: <pattern with \1, ...>
<name>:
display: <text>
type: rename
from: <regexp>
format: <lower|higher>
<name>:
display: <text>
type: metadata
name: <metadata name>
value_get: <regexp used on filename>
value_format: <pattern with \1, ...>
```
Tools that support:
- Runs commands on a set of files
- Multi process the for fast run
- Read metadata from the file with exiftool
- Use metadata in rename or command
- Set metadata on the file
- Support jinja template
- Rename or move the file
Config file `<Standard config path>/metatask.yaml`, `~/.config/metatask.yaml` on Linux
Syntax:
```yaml
nb_process: <number of concurent process>
ignore_dir: <list of directory regexpto be ignored>
task:
<name>:
display: <text>
source-mime: <mime type>
merge: <True|False, use to combine files, defaut is False>
keep: <True|False, uset to keep the source file, default is False>
commands: [<list of commands or command names>]
cmds:
<name>:
display: <text>
metadata: True # => get some metadata with `exiftool` and can be used with python format syntax
...
<name>:
display: <text>
cmd: <the command with {in} and {out} (if not inplace)>
out_ext: <the output extension (optional)>
inplace: <True|False default is False>
<name>:
display: <text>
type: rename
from: <regexp>
to: <pattern with \1, ...>
<name>:
display: <text>
type: rename
do:
- from: <regexp>
to: <pattern with \1, ...>
<name>:
display: <text>
type: rename
from: <regexp>
format: <lower|higher>
<name>:
display: <text>
type: metadata
name: <metadata name>
value_get: <regexp used on filename>
value_format: <pattern with \1, ...>
```
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
metatask-1.0.0.tar.gz
(7.5 kB
view details)
Built Distribution
metatask-1.0.0-py2-none-any.whl
(10.1 kB
view details)
File details
Details for the file metatask-1.0.0.tar.gz
.
File metadata
- Download URL: metatask-1.0.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bfdf4bbbeada865ca2fb238ce8dab78ad8059b23860328ec192acf11ea57f42 |
|
MD5 | b70ea317cf376117fa4c9385d5feb5fb |
|
BLAKE2b-256 | ca186a3a151d4ed636b5257587a2ae667ab490fe1e57cf36bdd28963dc42918d |
Provenance
File details
Details for the file metatask-1.0.0-py2-none-any.whl
.
File metadata
- Download URL: metatask-1.0.0-py2-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8e931c29b5b890312a571e67d364da997208f87209b96ab9d4899e599ce9526 |
|
MD5 | 3993e58ef31114ecdc567fc541469fe9 |
|
BLAKE2b-256 | 8c925c0ed39526898cdccbbe90a88a89776515e3514d86c0a50e6a857e3307d5 |