Skip to main content

phxutils

This is going to be a handy little repo where I maintain some of useful scripts that I use on a regular basis. I have a private repo where I have maintained most of these scripts for a long time, but some of them could prove useful to the general public, and half the time I forget what they do and end up re-writing them.

This repo will be a place for me to keep them up-to-date and document what they do.

Some aren't even big enough to be called scripts and are more like bash/zsh functions, but it's easier having the commands at my fingertips by having all my tools installed instead of finding/copy/pasting functions into my ~/.bashrc/~/.zshrc.

The structure includes an individual folder for each script with a README.md documenting what the script does. Additionally, there will be a bin directory where I will symlink all of the actual scripts for easy importing into your $PATH.

This project is also maintained on PyPi for easy installation via pip.

For more information, browse to the subfolders to view the individual README files.

I will continue to add scripts to this repo as I have time and as the need for them arises.

Requirements:

In order to fully-utilize all of the scripts included in phxutils, Linux is a pre-requisite, but many will work on MacOS (some may need to be tweaked a bit).

To view individual requirements, feel free to view each package's README file.

The following additional requirements are necessary:

  • /bin/sh (many scripts)
  • bash (some scripts)
  • python3 (some scripts)

Simple Installation via pip

Installation is extremely simple using pip:

Install from PyPi:

pip3 install --user phxutils

or install latest version from GitHub:

pip3 install --user git+https://github.com/phx/phxutils

For what it's worth, most of the phxutils scripts use sh and bash.

The only Python scripts at the time of this writing are Python3, and are executable with hashbangs pointing to /usr/bin/env python3 and only use the standard library.

This means, you won't clutter your native Python intallation by installing a bunch of third party libraries outside of virtual environments.

Upgrading via pip

pip3 install --upgrade --user phxutils

or

pip3 install --upgrade --user git+https://github.com/phx/phxutils

Uninstall

pip3 uninstall phxutils

Advanced Installation

To add these programs to your $PATH without using pip3, I would do something like the following:

Note: replace .bashrc with .zshrc or .bash_profile, etc., as necessary.

mkdir -p "$HOME/bin"
cd "$HOME/bin"
git clone https://github.com/phx/phxutils
echo 'PHX_UTILS="$HOME/bin/phxutils/bin"' >> ~/.bashrc
echo 'export PATH="$PHX_UTILS:$PATH"' >> ~/.bashrc
source ~/.bashrc

The benefits to this method are an easier upgrade.

Easy Upgrade via Advanced Install Method

cd "$HOME/bin/phxutils" && git pull

Uninstall

sed -i '/PHX_UTILS/d' ~/.bashrc && rm -rf "$HOME/bin/phxutils"

Note: replace .bashrc with .zshrc or .bash_profile, etc., as necessary in the above command.

Metadata

Release files for phxutils 1.1.64

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phxutils 1.1.64
File Size Uploaded
phxutils-1.1.64.tar.gz 28.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for phxutils 1.1.64
File Interpreter ABI Platform
phxutils-1.1.64-py3-none-any.whl Python 3 none any Details

Total release size: 62.8 kB

Release files / phxutils-1.1.64.tar.gz

Download URL phxutils-1.1.64.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6e69da12a9d6ddec61406ee01fe4e36dd47f959f633cb4c4102e840895a6d74b
BLAKE2b-256 checksum
How to use checksums
aac7e6cb3327a9a416c7ce723769202237133af9ef369b7bf07fb655f5fafd6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.20

Release files / phxutils-1.1.64-py3-none-any.whl

Download URL phxutils-1.1.64-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a902873671efad0feb0088512c30f6b7aa1c76af806419bb85afd95705a62a37
BLAKE2b-256 checksum
How to use checksums
f13c0dc6f351291c29572c0836067bc1e345b19c3dfd6e9f692a2b0b515cab90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.20

Release history Release notifications | RSS feed

This release

1.1.64 This release

2 release files

1.1.63

2 release files

1.1.61

2 release files

1.1.60

2 release files

1.1.59

2 release files

1.1.58

2 release files

1.1.57

2 release files

1.1.56

2 release files

1.1.55

2 release files

1.1.47

2 release files

1.1.39

2 release files

1.1.36

2 release files

1.1.35

2 release files

1.1.34

2 release files

1.1.31

2 release files

1.1.30

2 release files

1.1.29

2 release files

1.1.25

2 release files

1.1.24

2 release files

1.1.23

2 release files

1.1.22

2 release files

1.1.21

2 release files

1.1.20

2 release files

1.1.14

2 release files

1.1.13

2 release files

1.1.12

2 release files

1.1.11

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page