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

Uploaded Source

Built Distribution

metatask-1.0.1-py2-none-any.whl (10.1 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for metatask-1.0.1.tar.gz
Algorithm Hash digest
SHA256 29092e2b8bc68187483e86d62d758254763659584be632145ea8fa9dc097e185
MD5 5c4c8b9e67297f1d1b7e41527b8d1ac7
BLAKE2b-256 bba4f34c16f4ced7fc4339302ac8db480261d1b390bf6583c47585b2f68c9442

See more details on using hashes here.

Provenance

File details

Details for the file metatask-1.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for metatask-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 d9594cb20ae622a5c70c31ba12efee47a3d393f1061c30658510d10f47dd0240
MD5 f1711805a463f82b5cf74fb3c8dfa962
BLAKE2b-256 4e279df5aac7d027062092a2ea9f3779dc8c800c14cb6f3b73fd892c9fba06d9

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