Skip to main content

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.

License

MIT. See LICENSE. The tools this package installs keep their own licenses.

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.1

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

Source distribution (sdist)

Source distribution for huyab-install-tools 1.0.1
File Size Uploaded Provenance Actions
huyab_install_tools-1.0.1.tar.gz 14.8 kB Without provenance Details for huyab_install_tools-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for huyab-install-tools 1.0.1
File Interpreter ABI Platform Actions
huyab_install_tools-1.0.1-py3-none-any.whl Python 3 none any Details for huyab_install_tools-1.0.1-py3-none-any.whl

Total release size: 29.5 kB

Release files / huyab_install_tools-1.0.1.tar.gz

Download URL huyab_install_tools-1.0.1.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fdce64f165fb02c7d0288747dac6189c770ff8ce8840667f475381911ce5c085
BLAKE2b-256 checksum
How to use checksums
b168efa79a0a0999574fc8afb1e4f8060d5312a23cab458603bb288c2920dd01
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.1-py3-none-any.whl

Download URL huyab_install_tools-1.0.1-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1866ec2461e2cbfddc36d212bdff8beefd9e4954e0681c7423b5a663fd535775
BLAKE2b-256 checksum
How to use checksums
c4184727e8d7af79b8be382287a5029a3be547b6fe1e761dbab5e5b205bd2a86
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.1

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.

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