huyab-install-tools
Install the dev tools of a machine with one command. It is the scripts/install-tools.sh of huyabhome as a pip package. It needs bash (Linux or macOS) and no Python dependencies.
pip install huyab-install-tools
install-tools
Safe by default
A plain install-tools installs only the generic CLI tools: bws, gh, mise, cf, wrangler, biome, cloudflared, browse, gitleaks, jq, rg, fd, shellcheck, shfmt, sqlite3.
It does not change your git config, your ssh config or your shell rc files, does not log in to any service, and does not write a README. Those are separate steps that run only when you ask:
| Step | What it does when you turn it on |
|---|---|
git-identity |
Sets the global git user.name and user.email. Needs --git-name and --git-email. |
git-hook |
Sets a global pre-commit hook that scans staged changes with gitleaks (changes core.hooksPath). |
ssh |
Adds tailnet hosts to ~/.ssh/config (userspace Tailscale only). |
shell-env |
Makes new shells export CLOUDFLARE_API_TOKEN from bws (edits ~/.bashrc / ~/.zshrc). |
tailscale |
Installs Tailscale and logs in with TS_AUTH_KEY. Uses sudo. |
pipiops |
Clones the author's private pipiops repo with your logged-in gh. Useless without access to it. |
verify |
Checks the Cloudflare and Browserbase keys stored in your bws. |
readme |
Writes ~/README.md for the machine. |
The tools themselves are installed with sudo when the install directory (/usr/local/bin) is not writable. Set INSTALL_DIR to install somewhere else.
Command
| Option | Does |
|---|---|
| (none) | Install the generic tools. |
--with STEP |
Also run a step from the table (repeatable). |
--git-name NAME --git-email EMAIL |
Turn on git-identity with your own name and email. |
--skip-auth |
Set SKIP_AUTH=1: install only, no login, no key checks. |
--list-steps |
List the steps. |
--path / --print |
Print the bundled script path / the script itself. |
--version |
Print the package version. |
Environment variables pass through (BWS_ACCESS_TOKEN, TS_AUTH_KEY, INSTALL_DIR, ...).
Library
import install_tools
install_tools.script_path() # pathlib.Path of the bundled script
install_tools.run() # generic tools only, returns the exit code
install_tools.run(enable=["git-hook"], env={"SKIP_AUTH": "1"})
install_tools.STEPS # the step names
run() raises ValueError for an unknown step, and for git-identity without GIT_USER_NAME and GIT_USER_EMAIL.
The bundled script is the same file as scripts/install-tools.sh in the repo, where curl ... | bash runs every step. The pip command sets INSTALL_SKIP for you; to run the script yourself, use the same variable, for example INSTALL_SKIP="git-identity ssh" bash script.sh.
Release (maintainers)
The script is copied here by pnpm build:install-tools. Do not edit it by hand.
python -m build python/
twine check python/dist/*
Upload with an API token that is read from a secret store into the environment of the twine process only (TWINE_USERNAME=__token__, TWINE_PASSWORD). Never put the token on a command line or in a file. After the first upload, replace the account-wide token with one limited to this project, or switch to PyPI Trusted Publishing.
Metadata
Release files for huyab-install-tools 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| huyab_install_tools-1.0.0.tar.gz | 14.0 kB | Without provenance | Details for huyab_install_tools-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| huyab_install_tools-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for huyab_install_tools-1.0.0-py3-none-any.whl |
Total release size: 27.7 kB
Release files / huyab_install_tools-1.0.0.tar.gz
| Download URL | huyab_install_tools-1.0.0.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdba3f75c1d23f29c430b21f7774a01d14b16f6af739d0f71fdaf91157b28c55
|
|
BLAKE2b-256 checksum How to use checksums |
2eecd20b298f107bafc0113c5722ee63940998b474cbbf2f563f5d19dfdbf284
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / huyab_install_tools-1.0.0-py3-none-any.whl
| Download URL | huyab_install_tools-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ef60afbdeb365dca0c4cc0a950fc49d1b5438bbc49212b231fa9f41c53dbbb0
|
|
BLAKE2b-256 checksum How to use checksums |
df094930d935772857cce83075952a6f861e1487b08f8c93a618bd50b2527a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for huyab-install-tools 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.