This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

This version
History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
metatask-1.0.1-py2-none-any.whl (10.1 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Aug 27, 2016
metatask-1.0.1.tar.gz (7.8 kB) Copy SHA256 Checksum SHA256 Source Aug 27, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting