{"id":29671478,"url":"https://github.com/smartlegionlab/commandpack","last_synced_at":"2025-07-22T20:09:37.535Z","repository":{"id":238804132,"uuid":"797633711","full_name":"smartlegionlab/commandpack","owner":"smartlegionlab","description":"A package of modules for working with commands, command packages.","archived":false,"fork":false,"pushed_at":"2025-06-13T11:50:06.000Z","size":60,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-13T12:05:03.255Z","etag":null,"topics":["execute-command","executor","pypi","pypi-package","pypi-packages","python","python3","smartlegionlab","termux"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartlegionlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-08T08:10:49.000Z","updated_at":"2025-06-13T11:48:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b7fbc7f-e913-43e5-8c5f-eef1ce7cb17f","html_url":"https://github.com/smartlegionlab/commandpack","commit_stats":null,"previous_names":["smartlegionlab/commandpack"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/smartlegionlab/commandpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fcommandpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fcommandpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fcommandpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fcommandpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartlegionlab","download_url":"https://codeload.github.com/smartlegionlab/commandpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fcommandpack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266563915,"owners_count":23948689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["execute-command","executor","pypi","pypi-package","pypi-packages","python","python3","smartlegionlab","termux"],"created_at":"2025-07-22T20:09:36.956Z","updated_at":"2025-07-22T20:09:37.513Z","avatar_url":"https://github.com/smartlegionlab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# commandpack \u003csup\u003ev0.3.2\u003c/sup\u003e\n\n***\n\nI recommend using my new library [commandex](https://github.com/smartlegionlab/commandex). \n\n***\n\n[![PyPI Downloads](https://static.pepy.tech/badge/commandpack)](https://pepy.tech/projects/commandpack)\n![GitHub top language](https://img.shields.io/github/languages/top/smartlegionlab/commandpack)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/commandpack?label=pypi%20downloads)](https://pypi.org/project/commandpack/)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/smartlegionlab/commandpack)](https://github.com/smartlegionlab/commandpack/)\n[![GitHub](https://img.shields.io/github/license/smartlegionlab/commandpack)](https://github.com/smartlegionlab/commandpack/blob/master/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/commandpack)](https://pypi.org/project/commandpack)\n[![PyPI - Format](https://img.shields.io/pypi/format/commandpack)](https://pypi.org/project/commandpack)\n[![GitHub Repo stars](https://img.shields.io/github/stars/smartlegionlab/commandpack?style=social)](https://github.com/smartlegionlab/commandpack/)\n[![GitHub watchers](https://img.shields.io/github/watchers/smartlegionlab/commandpack?style=social)](https://github.com/smartlegionlab/commandpack/)\n[![GitHub forks](https://img.shields.io/github/forks/smartlegionlab/commandpack?style=social)](https://github.com/smartlegionlab/commandpack/)\n\n***\n\n## Short Description:\n\n___commandpack___ -  A cross-platform library for creation, storage, management of commands and command packages. Execution of commands, parsing of files with command packages.\n\n***\n\nAuthor and developer: ___A.A Suvorov___\n\n***\n\n## Supported:\n\n- Linux: All.\n- Windows: 7/8/10.\n- Termux (Android).\n\n***\n\n## Requirements:\n\n- [Python](https://python.org) 3.6+\n  - [Download](https://python.org)\n  \n***\n\n## What's new?\n\n___commandpack v0.3.2___\n\n***\n\n## Description:\n\nA cross-platform library for creation, storage, management of commands and command packages. \nExecution of commands, parsing of files with command packages.\n \nUsed to create utilities for working with commands (execution, launch, autorun, storage).\n\nYou can keep your commands in simple and understandable files, collect them in one place,\nsplit into named categories (packages) and execute at any time:\n\nThe files must have the extension *.cfg, or *.json and have the correct structure:\n\n\n### commands.cfg:\n\n```text\n[package name 1]\ncommand 1\ncommand 2\ncommand N\n\n[package name 2]\ncommand 1\ncommand 2\ncommand N\n```\n\n### commands.json:\n\n```json5\n{\n  \"name1\":\n\n  [\n    \"command1\",\n    \"command2\",\n    \"commandN\"\n  ],\n\n  \"name2\":\n\n  [\n    \"command1\",\n    \"command2\",\n    \"commandN\"\n  ]\n}\n```\n\n***\n\n\n## Help:\n\n### Install and Use:\n\n- `pip3 install commandpack`\n\nAvailable tools:\n\n- Command executors\n- Pack makers\n- Parsers\n- Commands\n- Packs\n- Factories\n\n```python\nfrom commandpack.factories import Factory\n\nos_executor = Factory.tools.get_os_executor()\nsub_executor = Factory.tools.get_sub_executor()\nexecutor = Factory.tools.get_executor()\n\ncommand = Factory.tools.command_pack.create_command('pip list')\npack = Factory.tools.command_pack.create_pack('default')\n\ncfg_parser = Factory.tools.parsers.get_cfg_parser()\njson_parser = Factory.tools.parsers.get_json_parser()\nparser = Factory.tools.parsers.get_parser()\n\npack_maker = Factory.tools.makers.get_pack_maker()\n\n```\n\n### Termux support:\n\nUtilities created with use work \"commandpack\", without problems in Termux.\n\n### Windows support:\n\n- Install [python](https://python.org).\n- `pip install commandpack`.\n\nUtilities created with use work \"commandpack\", without problems in Windows:\n\n### Test coverage:\n\n#### Run tests:\n- `pip install pytest`\n- `pytest -v`\n  \n\n#### __Test coverage 100%__\n\n- `pip install pytest-coverage`\n- `pytest --cov`\n\n![commandpack image](https://github.com/smartlegionlab/commandpack/raw/master/data/images/commandpack.png)\n\n\n#### Report html:\n\n- `pytest --cov --cov-report=html`\n\n***\n\n## Disclaimer of liability:\n\n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n***\n\n## Copyright:\n    --------------------------------------------------------\n    Licensed under the terms of the BSD 3-Clause License\n    (see LICENSE for details).\n    Copyright © 2018-2025, A.A Suvorov\n    All rights reserved.\n    --------------------------------------------------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlegionlab%2Fcommandpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartlegionlab%2Fcommandpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlegionlab%2Fcommandpack/lists"}