Metadata-Version: 2.1
Name: process-executor
Version: 0.0.1
Summary: 
Home-page: https://github.com/pavelmaksimov/process-executor
License: Apache-2.0
Author: Pavel Maksimov
Author-email: vur21@ya.ru
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: GitPython (>=3.1.27,<4.0.0)
Requires-Dist: asyncio (>=3.4.3,<4.0.0)
Requires-Dist: better-exceptions (==0.3.3)
Requires-Dist: confz (==1.8.1)
Requires-Dist: fastapi (>=0.88,<0.89)
Requires-Dist: loguru (>=0.6.0,<0.7.0)
Requires-Dist: orjson (>=3.8.4,<4.0.0)
Requires-Dist: pydantic (>=1.9.0,<2.0.0)
Requires-Dist: script-master-helper (>=0.0.2,<0.0.3)
Requires-Dist: typer (>=0.7.0,<0.8.0)
Requires-Dist: uvicorn[standart] (>=0.20.0,<0.21.0)
Description-Content-Type: text/markdown

# Python Process Ececutor

Эта микросервис запускающий bash скрипты.\
Скрипты беруться только из Git.\
Скрипты выполняются в своем виртуальном окружении.

Пример конфига для процесса
```
{
  "workplan_id": "821e40ee-d3c9-41da-85d2-d12d5183998a",
  "name": "1",
  "command": [
    "{executable}", "./scripts/yandex_direct_export_to_file.py", "--body_filepath", "./scripts/body-clients.json", "--filepath", "clients.tsv", "--resource", "clients", "--token", ""
  ],
  "git": {
    "url": "https://github.com/pavelmaksimov/tapi-yandex-direct"
  },
  "venv": {
    "version": "3.7",
    "requirements": [
      "tapi_yandex_direct"
    ]
  },
  "time_limit": 100,
  "expires_utc": "2023-01-16T15:15:54.818Z",
  "save_stdout": false,
  "save_stderr": true
}
```




## Run
Set environment variable `PROCESS_EXECUTOR_HOME`

    process_executor --help
    process_executor
