process-executor


Nameprocess-executor JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/pavelmaksimov/process-executor
Summary
upload_time2023-01-29 07:28:11
maintainer
docs_urlNone
authorPavel Maksimov
requires_python>=3.10,<4.0
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pavelmaksimov/process-executor",
    "name": "process-executor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Pavel Maksimov",
    "author_email": "vur21@ya.ru",
    "download_url": "https://files.pythonhosted.org/packages/c5/54/41a2506a446288b606be314bc077afc80032f256f82ddb135f06d8145c56/process_executor-0.0.1.tar.gz",
    "platform": null,
    "description": "# Python Process Ececutor\n\n\u042d\u0442\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0438\u0439 bash \u0441\u043a\u0440\u0438\u043f\u0442\u044b.\\\n\u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0431\u0435\u0440\u0443\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 Git.\\\n\u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u0441\u0432\u043e\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438.\n\n\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\n```\n{\n  \"workplan_id\": \"821e40ee-d3c9-41da-85d2-d12d5183998a\",\n  \"name\": \"1\",\n  \"command\": [\n    \"{executable}\", \"./scripts/yandex_direct_export_to_file.py\", \"--body_filepath\", \"./scripts/body-clients.json\", \"--filepath\", \"clients.tsv\", \"--resource\", \"clients\", \"--token\", \"\"\n  ],\n  \"git\": {\n    \"url\": \"https://github.com/pavelmaksimov/tapi-yandex-direct\"\n  },\n  \"venv\": {\n    \"version\": \"3.7\",\n    \"requirements\": [\n      \"tapi_yandex_direct\"\n    ]\n  },\n  \"time_limit\": 100,\n  \"expires_utc\": \"2023-01-16T15:15:54.818Z\",\n  \"save_stdout\": false,\n  \"save_stderr\": true\n}\n```\n\n\n\n\n## Run\nSet environment variable `PROCESS_EXECUTOR_HOME`\n\n    process_executor --help\n    process_executor",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "",
    "version": "0.0.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aeb9bb1c129d2322d1a017edf1b9bba7d41d5d2936268ba4f6ab2fd99807999a",
                "md5": "29647696cf55911785d01dce06ba1180",
                "sha256": "78a82ad6595f56106f69fabd9dbe061fb5c0bb97081538ffd27741a31e7a980c"
            },
            "downloads": -1,
            "filename": "process_executor-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "29647696cf55911785d01dce06ba1180",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 23448,
            "upload_time": "2023-01-29T07:28:09",
            "upload_time_iso_8601": "2023-01-29T07:28:09.392414Z",
            "url": "https://files.pythonhosted.org/packages/ae/b9/bb1c129d2322d1a017edf1b9bba7d41d5d2936268ba4f6ab2fd99807999a/process_executor-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c55441a2506a446288b606be314bc077afc80032f256f82ddb135f06d8145c56",
                "md5": "428c1f589959af4a29c07ad6d7cf8af7",
                "sha256": "b273a0d24dab57dedde9b840a63739758122cc6153d3b9674feeec2a9136861c"
            },
            "downloads": -1,
            "filename": "process_executor-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "428c1f589959af4a29c07ad6d7cf8af7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 15187,
            "upload_time": "2023-01-29T07:28:11",
            "upload_time_iso_8601": "2023-01-29T07:28:11.200176Z",
            "url": "https://files.pythonhosted.org/packages/c5/54/41a2506a446288b606be314bc077afc80032f256f82ddb135f06d8145c56/process_executor-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-29 07:28:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "pavelmaksimov",
    "github_project": "process-executor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "process-executor"
}
        
Elapsed time: 0.03588s