detox-jar


Namedetox-jar JSON
Version 1.0.1 PyPI version JSON
download
home_pageNone
SummaryCommand line automation tool in pure Python
upload_time2024-09-27 13:38:47
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT License Copyright (c) 2024 Kaloyan Ivanov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords automation cli tool command line
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img src="https://github.com/kaliv0/detox/blob/main/assets/detox-jar.jpg?raw=true" width="250" alt="Detox jar">
</p>

# Detox jar

![Python 3.x](https://img.shields.io/badge/python-3.11-blue?style=flat-square&logo=Python&logoColor=white)
[![PyPI](https://img.shields.io/pypi/v/detox-jar.svg)](https://pypi.org/project/detox-jar/)

<br>Command line automation tool in pure Python

---------------------------
### How to use
- Describe jobs as tables in a detox.toml file inside the root directory of your project
```toml
[test]
description = "test project"
dependencies = ["pytest", "pytest-cov"]
commands = "pytest -vv --disable-warnings -s --cache-clear"
```

- <i>description</i> and <i>dependencies</i> could be optional but not <i>commands</i>
```toml
[no-deps]
commands = "echo 'Hello world'"
```

- <i>dependencies</i> and <i>commands</i> could be strings or (in case of more than one) a list of strings
```toml
commands = ["ruff check --fix", "ruff format --line-length=100 ."]
```

- You could provide a [run] table inside the toml file with a <i>'suite'</i> - list of selected jobs to run
```toml
[run]
suite = ["lint", "format", "test"]
```
---------------------------
- Run the tool in the terminal with a simple <b>'detox'</b> command
```shell
$ detox
```
```shell
(logs omitted...)
$ All jobs succeeded! ['lint', 'format', 'test']
Detoxing took: 14.088007061000098
```
- In case of failing jobs you get general stats
```shell
(logs omitted...)
$ Unsuccessful detoxing took: 13.532951637999759
Failed jobs: ['format']
Successful jobs: ['lint', 'test']
```
or
```shell
$ Unsuccessful detoxing took: 8.48367640699962
Failed jobs: ['format']
Successful jobs: ['lint']
Skipped jobs: ['test']
```
---------------------------
- You could run specific jobs in the command line
```shell
$ detox -j lint
```
or a list of jobs
```shell
$ detox -j lint format
```
<b>NB:</b> If there is a [run] table in the toml file the jobs specified in the command line take precedence

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "detox-jar",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "automation, cli tool, command line",
    "author": null,
    "author_email": "Kaloyan Ivanov <kaloyan.ivanov88@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ac/58/bba9f553c56327b0aa11cbc27e148ff09b28b12cc470b5c929a959e104f8/detox_jar-1.0.1.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <img src=\"https://github.com/kaliv0/detox/blob/main/assets/detox-jar.jpg?raw=true\" width=\"250\" alt=\"Detox jar\">\n</p>\n\n# Detox jar\n\n![Python 3.x](https://img.shields.io/badge/python-3.11-blue?style=flat-square&logo=Python&logoColor=white)\n[![PyPI](https://img.shields.io/pypi/v/detox-jar.svg)](https://pypi.org/project/detox-jar/)\n\n<br>Command line automation tool in pure Python\n\n---------------------------\n### How to use\n- Describe jobs as tables in a detox.toml file inside the root directory of your project\n```toml\n[test]\ndescription = \"test project\"\ndependencies = [\"pytest\", \"pytest-cov\"]\ncommands = \"pytest -vv --disable-warnings -s --cache-clear\"\n```\n\n- <i>description</i> and <i>dependencies</i> could be optional but not <i>commands</i>\n```toml\n[no-deps]\ncommands = \"echo 'Hello world'\"\n```\n\n- <i>dependencies</i> and <i>commands</i> could be strings or (in case of more than one) a list of strings\n```toml\ncommands = [\"ruff check --fix\", \"ruff format --line-length=100 .\"]\n```\n\n- You could provide a [run] table inside the toml file with a <i>'suite'</i> - list of selected jobs to run\n```toml\n[run]\nsuite = [\"lint\", \"format\", \"test\"]\n```\n---------------------------\n- Run the tool in the terminal with a simple <b>'detox'</b> command\n```shell\n$ detox\n```\n```shell\n(logs omitted...)\n$ All jobs succeeded! ['lint', 'format', 'test']\nDetoxing took: 14.088007061000098\n```\n- In case of failing jobs you get general stats\n```shell\n(logs omitted...)\n$ Unsuccessful detoxing took: 13.532951637999759\nFailed jobs: ['format']\nSuccessful jobs: ['lint', 'test']\n```\nor\n```shell\n$ Unsuccessful detoxing took: 8.48367640699962\nFailed jobs: ['format']\nSuccessful jobs: ['lint']\nSkipped jobs: ['test']\n```\n---------------------------\n- You could run specific jobs in the command line\n```shell\n$ detox -j lint\n```\nor a list of jobs\n```shell\n$ detox -j lint format\n```\n<b>NB:</b> If there is a [run] table in the toml file the jobs specified in the command line take precedence\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Kaloyan Ivanov  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Command line automation tool in pure Python",
    "version": "1.0.1",
    "project_urls": {
        "Repository": "https://github.com/kaliv0/detox.git"
    },
    "split_keywords": [
        "automation",
        " cli tool",
        " command line"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "80bb466049e5fbd967ad549bdac00c561d4645685a2d8738cbe0327260f1ce76",
                "md5": "eece4e0c13fed642bed2f746b7ec9580",
                "sha256": "4395b108502e49fe6975511db812bf1056db7d570dc6d7bfb6e12986d4670415"
            },
            "downloads": -1,
            "filename": "detox_jar-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eece4e0c13fed642bed2f746b7ec9580",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 6856,
            "upload_time": "2024-09-27T13:38:45",
            "upload_time_iso_8601": "2024-09-27T13:38:45.844568Z",
            "url": "https://files.pythonhosted.org/packages/80/bb/466049e5fbd967ad549bdac00c561d4645685a2d8738cbe0327260f1ce76/detox_jar-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ac58bba9f553c56327b0aa11cbc27e148ff09b28b12cc470b5c929a959e104f8",
                "md5": "882884102306506518078387fc5e41f7",
                "sha256": "a57cd4c269323587a3ff2617a59aa7020a8bd92482ff64eaf0f79871973519de"
            },
            "downloads": -1,
            "filename": "detox_jar-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "882884102306506518078387fc5e41f7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 5557,
            "upload_time": "2024-09-27T13:38:47",
            "upload_time_iso_8601": "2024-09-27T13:38:47.608208Z",
            "url": "https://files.pythonhosted.org/packages/ac/58/bba9f553c56327b0aa11cbc27e148ff09b28b12cc470b5c929a959e104f8/detox_jar-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-27 13:38:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kaliv0",
    "github_project": "detox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "detox-jar"
}
        
Elapsed time: 0.63718s