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

Uploaded Source

File details

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

File metadata

  • Download URL: pyhelper_utils-0.0.40.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

Hashes for pyhelper_utils-0.0.40.tar.gz
Algorithm Hash digest
SHA256 20f8c2a7d0c9ae3983fcfb60249e74ee0d674cbe742d375357474fa990a497ed
MD5 36e81310e25b622036a306fe6d39c121
BLAKE2b-256 6ec4ad22bb157567a5ab89c6f18e2cd9b7aacd209f255308fafc6b2b98eb1173

See more details on using hashes here.

Supported by

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