Skip to main content

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>
  • release-it

  • 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


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.2.tar.gz (11.6 kB view details)

Uploaded Source

File details

Details for the file pyhelper_utils-2.0.2.tar.gz.

File metadata

  • Download URL: pyhelper_utils-2.0.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pyhelper_utils-2.0.2.tar.gz
Algorithm Hash digest
SHA256 016b4c9e05cb0456e9ba79467d5496252abaea640b397faae6727ec945d9c293
MD5 7466aca06d3b8eb98b8cf45edd448118
BLAKE2b-256 7635b25edd35d656ecb595098013a17db51e1b60035d93ac7318a815a77e08ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page