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-2.0.0.tar.gz
(10.8 kB
view details)
File details
Details for the file pyhelper_utils-2.0.0.tar.gz.
File metadata
- Download URL: pyhelper_utils-2.0.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4decb58db7ed49894612151ad142dddc9b4d729b35b61cb043b2d54a08fe7775
|
|
| MD5 |
e5f4dee6ee2207b02bb57c2a9b4161df
|
|
| BLAKE2b-256 |
8bd000161ed607273db4c78305d8c8267ff306537a08e465e75b7fe781bb7696
|