Skip to main content

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, ...>
```

Project details


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.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

metatask-1.0.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file metatask-1.0.2.tar.gz.

File metadata

  • Download URL: metatask-1.0.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for metatask-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5a20ea558c04a1b1374c60d69bb9c06acaf2e9b6513c1598cd9d19cb477a7540
MD5 895694dc634d367a28f4778d53452d80
BLAKE2b-256 3f3bd8cc3db2bf8fce6da4dcfdc06581658fecaadf4b33673b05e3f3de7fc427

See more details on using hashes here.

Provenance

File details

Details for the file metatask-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for metatask-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c23072347e6f8626a9a4a369e13aa92ccb21dcbe29e87a23f7755a694952a96
MD5 b2b9a70355150ba00e713596c7a59232
BLAKE2b-256 cde83f641a79158815baa82d225ebb6d1bc08aa09ebf7c17e0a1d25523e0dc06

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page