Name | stressy JSON |
Version |
1.0.3
JSON |
| download |
home_page | |
Summary | a tool to repeatedly run a command until failure |
upload_time | 2024-03-17 19:48:04 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | The MIT License (MIT) Copyright (c) 2021 Daniel Pauli 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 |
testing
repeat
forever
retry
shell
cli
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
[![pypi](https://img.shields.io/pypi/v/stressy)](https://pypi.org/project/stressy)
# stressy
A simple tool to repeatedly run a shell command until failure.
## Installation
```bash
pip install stressy
```
## Usage
```
usage: stressy.py [-h] [-n RUNS] [-d DURATION] [-p PROCESSES] [-t TIMEOUT] [-s SLEEP] [-c] [-q | -l] [-r] [--clear-results] [command ...]
stressy v1.0.3 - a tool to repeatedly run a command until failure
https://github.com/dapaulid/stressy
positional arguments:
command the shell command to execute
options:
-h, --help show this help message and exit
-q, --quiet print subprocess output only if command fails
-l, --logfile write subprocess output to log files
execution:
-n RUNS, --runs RUNS number of repetitions, like 1000 or 10k
-d DURATION, --duration DURATION
repetition duration, like 30min or 12h
-p PROCESSES, --processes PROCESSES
number of processes to run the command in parallel
-t TIMEOUT, --timeout TIMEOUT
maximum duration for command to complete
-s SLEEP, --sleep SLEEP
duration in seconds to wait before next run
-c, --continue continue after first failure
result history:
-r, --results print result history for the given command
--clear-results clear result history for the given command
examples:
stressy.py echo hello # repeat until failure or ctrl-c
stressy.py -n 1k -q echo hello # repeat 1000 times, output failures only
stressy.py -d 12h -p 4 echo hello # repeat for 12 hours with 4 processes in parallel
stressy.py -n 3 -c bad_command # repeat after first failure
stressy.py -r # output previous results and statistics
```
Raw data
{
"_id": null,
"home_page": "",
"name": "stressy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "testing,repeat,forever,retry,shell,cli",
"author": "",
"author_email": "Daniel Pauli <dapaulid@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/86/02/ec4ce82f24b837e6ffe3079136f8f10511feb85f9956871d6adf36582168/stressy-1.0.3.tar.gz",
"platform": null,
"description": "[![pypi](https://img.shields.io/pypi/v/stressy)](https://pypi.org/project/stressy)\n\n# stressy\n\nA simple tool to repeatedly run a shell command until failure.\n\n## Installation\n\n```bash\npip install stressy\n```\n\n## Usage\n\n```\nusage: stressy.py [-h] [-n RUNS] [-d DURATION] [-p PROCESSES] [-t TIMEOUT] [-s SLEEP] [-c] [-q | -l] [-r] [--clear-results] [command ...]\n\nstressy v1.0.3 - a tool to repeatedly run a command until failure\n https://github.com/dapaulid/stressy\n\npositional arguments:\n command the shell command to execute\n\noptions:\n -h, --help show this help message and exit\n -q, --quiet print subprocess output only if command fails\n -l, --logfile write subprocess output to log files\n\nexecution:\n -n RUNS, --runs RUNS number of repetitions, like 1000 or 10k\n -d DURATION, --duration DURATION\n repetition duration, like 30min or 12h\n -p PROCESSES, --processes PROCESSES\n number of processes to run the command in parallel\n -t TIMEOUT, --timeout TIMEOUT\n maximum duration for command to complete\n -s SLEEP, --sleep SLEEP\n duration in seconds to wait before next run\n -c, --continue continue after first failure\n\nresult history:\n -r, --results print result history for the given command\n --clear-results clear result history for the given command\n\nexamples:\n stressy.py echo hello # repeat until failure or ctrl-c\n stressy.py -n 1k -q echo hello # repeat 1000 times, output failures only\n stressy.py -d 12h -p 4 echo hello # repeat for 12 hours with 4 processes in parallel\n stressy.py -n 3 -c bad_command # repeat after first failure \n stressy.py -r # output previous results and statistics\n```\n",
"bugtrack_url": null,
"license": "The MIT License (MIT) Copyright (c) 2021 Daniel Pauli 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": "a tool to repeatedly run a command until failure",
"version": "1.0.3",
"project_urls": {
"Bug Tracker": "https://github.com/dapaulid/stressy/issues",
"Changelog": "https://github.com/dapaulid/stressy",
"Documentation": "https://github.com/dapaulid/stressy",
"Homepage": "https://github.com/dapaulid/stressy",
"Repository": "https://github.com/dapaulid/stressy.git"
},
"split_keywords": [
"testing",
"repeat",
"forever",
"retry",
"shell",
"cli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a51736326e5c83a35294e386bc37387dff10950a694b0b66faf9b9c71035679a",
"md5": "52f5b237a7a0b29e869b7b0f2709fc49",
"sha256": "2741369175f22315acee72af9ed8e8050636df8add587d196599e1c8c2762478"
},
"downloads": -1,
"filename": "stressy-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "52f5b237a7a0b29e869b7b0f2709fc49",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 12479,
"upload_time": "2024-03-17T19:48:03",
"upload_time_iso_8601": "2024-03-17T19:48:03.405004Z",
"url": "https://files.pythonhosted.org/packages/a5/17/36326e5c83a35294e386bc37387dff10950a694b0b66faf9b9c71035679a/stressy-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8602ec4ce82f24b837e6ffe3079136f8f10511feb85f9956871d6adf36582168",
"md5": "3784fc8cb56ad2c961753a87383c8aeb",
"sha256": "b6b0627ea84d6011472b3387a94cacf4c127d4d6aea030dddde88440e3351504"
},
"downloads": -1,
"filename": "stressy-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "3784fc8cb56ad2c961753a87383c8aeb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 12402,
"upload_time": "2024-03-17T19:48:04",
"upload_time_iso_8601": "2024-03-17T19:48:04.673776Z",
"url": "https://files.pythonhosted.org/packages/86/02/ec4ce82f24b837e6ffe3079136f8f10511feb85f9956871d6adf36582168/stressy-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-17 19:48:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dapaulid",
"github_project": "stressy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "stressy"
}