Collective utility functions for python projects
Project description
pyhelper-utils
Repository for various python utilities
Installation
python3 -m pip install pyhelper-utils
Release new version
requirements:
- Export GitHub token
export GITHUB_TOKEN=<your_github_token>
-
Run the following once (execute outside repository dir for example
~/
):
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:
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.
Sample code:
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"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyhelper_utils-0.0.42.tar.gz
(9.7 kB
view details)
File details
Details for the file pyhelper_utils-0.0.42.tar.gz
.
File metadata
- Download URL: pyhelper_utils-0.0.42.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45d60797b92d463d534e253f9dd5a7e2e2e1c26ea98becc5928cc4546130c20e |
|
MD5 | 33d1b4b01c1f092a78a3e1c35e81f890 |
|
BLAKE2b-256 | 48d4f961d328fdc9717a9a6b5679369cccccabb48bf5b8b0da806b6a83425313 |