https://github.com/redhatqe/pyhelper-utils
Repository for python utilities
https://github.com/redhatqe/pyhelper-utils
Last synced: 6 months ago
JSON representation
Repository for python utilities
- Host: GitHub
- URL: https://github.com/redhatqe/pyhelper-utils
- Owner: RedHatQE
- License: apache-2.0
- Created: 2024-04-01T16:19:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-20T08:20:55.000Z (6 months ago)
- Last Synced: 2025-07-20T10:17:10.266Z (6 months ago)
- Language: Python
- Size: 612 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyhelper-utils
Repository for various python utilities
## Installation
```bash
python3 -m pip install pyhelper-utils
```
## Release new version
### requirements:
- Export GitHub token
```bash
export GITHUB_TOKEN=
```
- [release-it](https://github.com/release-it/release-it)
- Run the following once (execute outside repository dir for example `~/`):
```bash
sudo npm install --global release-it
npm install --save-dev @j-ulrich/release-it-regex-bumper
rm -f package.json package-lock.json
```
### usage:
- Create a release, run from the relevant branch.
To create a new release, run:
```bash
git checkout main
git pull
release-it # Follow the instructions
```
### Examples:
Enables running a command against a remote server over SSH. It expects a host object, created using [python-rrmngmnt](https://github.com/rhevm-qe-automation/python-rrmngmnt).
#### Sample code:
```bash
from rrmngmnt import Host, UserWithPKey
host = Host("1.1.1.1")
user = UserWithPKey('user', '/path/to/pkey'))
host.executor_user = user
run_ssh_command(host=host, commands=shlex.split("ls -l"))
```