معرفی شرکت ها


batchexec-0.0.5


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Batch execute any task, with simple json config
ویژگی مقدار
سیستم عامل -
نام فایل batchexec-0.0.5
نام batchexec
نسخه کتابخانه 0.0.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Krzysztof Grabowski
ایمیل نویسنده grabowski.krzysztof@gmail.com
آدرس صفحه اصلی https://github.com/krisu-g/Universal_batch_executer
آدرس اینترنتی https://pypi.org/project/batchexec/
مجوز GNU GPLv3
# Batch execute any task, with simple json config This module makes it possible to batch execute almost every program that runs from command line on files in input directory and outputs those into output directory (including directory structure). Settings are taken from config.json file. In the future there will be new features added. ## Installation ```pip install batchexec``` ## How to use it? Import module batchexec: ```import batchexec``` Use the class UniversalBatchExecuter with the config file as a parameter (default: 'config.json'): ```batch_executer = batchexec.UniversalBatchExecuter('config.json')``` Then run it with optional additional parameters, e.g.: ```batch_executer.run('--verbose')``` ## Parameters in json config file: ``` { // Relative or absolute path to input dir. Default: "input" "input_dir": "input", // Whether to include subdirectories or not. Possible [true, false], Default: true "include_subdirs": true, // Filter only file masks/extensions to execute apps "file_masks": ["*.jpg", "*.jpeg", "*.png", "*.gif"], // Relative or absolute path to output dir. If not exists, it will be created. Default: "output" "output_dir": "output", // Relative or absolute path to own application directory that we want to run. Default: "app" "app_dir": "app", // Relative path to application executable file that we want to run. Default: "app.exe" "app_name": "bin/app.exe", // Additional arguments to the application. Default: "" "app_args": "-q 75", // Parameter after which the input file name is specified. Default: "" "app_input_parameter": "-i", // Parameter after which the output file name is specified. Default: "-o" "app_output_parameter": "-o", // When the output file should have specified extension, we can enter it here. Default: "" (extension won't be changed) "app_output_file_extension": ".jpg", // When the output file already exists, should it be replaced. Possible [true, false], Default: true "replace_files": true, // When the output file already exists and it will be replaced, should the backup file be created. Possible [true, false], Default: true "replaced_files_backup": true, // Log output of the application to specified (relative or absolute path to) file. Default: "stdout.log" "log_output_to": "stdout.log", // Log error output of the application to specified (relative or absolute path to) file. Default: "stderr.log" "error_log_output_to": "stderr.log", } ``` ## License © 2021 Krzysztof Grabowski This repository is licensed under the GPLv3 license. See LICENSE for details. # Changelog All notable changes to this project will be documented in this file. ## [Unreleased] ### Added - Support for specifying absolute/relative path to app executable file instead of app_dir and relative app file separately - Log files - option to append or overwrite files. ### Fixed - Add getters/setters to UniversalBatchExecuter class. ## [0.0.5] - 2021-02-26 ### Fixed - making directories more than one level deep ## [0.0.4] - 2021-02-16 ### Fixed - Error message shwowing when incorrect data in config.json - Some minor changes to the project structure. - Copyright sign in README.md ## [0.0.3] - 2021-02-15 ### Added - README.md file. - This CHANGELOG.md file. - LICENSE.txt file. - MANIFEST.in file. - Made PyPi Package. ## [0.0.2] - 2021-02-14 ### Added - Class UniversalBatchExecuter, where all the data is stored. - Support for reading json config file. - Basic argparse support. ## [0.0.1] - 2021-01-29 ### Added - Made environment, requirements.txt file - First, initial version of the project


نحوه نصب


نصب پکیج whl batchexec-0.0.5:

    pip install batchexec-0.0.5.whl


نصب پکیج tar.gz batchexec-0.0.5:

    pip install batchexec-0.0.5.tar.gz