Skip to main content

altb

altb is a cli utility influenced by update-alternatives of ubuntu.
Linked paths are added to $HOME/.local/bin according to XDG Base Directory Specification.
Config file is located at $HOME/.config/altb/config.yaml.

How to start?

Must use Python > 3.9 execute:

pipx install altb

to track new binary use:

altb track path <app_name>@<app_tag> /path/to/binary

for example:

altb track path python@2.7 /bin/python2.7
altb track path python@3.8 /bin/python3.8
# altb track path python ~/Downloads/python # will also work and generate a new hash for it

List all tracked versions:

$ altb list -a
python
|----   2.7 - /bin/python2.7
|----   3.8 - /bin/python3.8

Use specific version:

altb use <app_name>[@<app_tag>]

example:

altb use python@2.7

this will link the tracked path to ~/.local/bin/<app_name> in this case - ~/.local/bin/python

Copy specific standalone binary automatically to ~/.local/share/altb/versions/<app_name>/<app_name>_<tag>

altb track path helm@3 ~/Downloads/helm --copy

You can run custom commands using:

altb track command special_command@latest "echo This is a command"

this especially useful for latest developments, example:

altb track command special_command@latest "go run ./cmd/special_command" --working-directory "$HOME/special_command"

Docs

Migrations

Metadata

Release files for altb 0.5.2

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

Source distribution (sdist)

Source distribution for altb 0.5.2
File Size Uploaded
altb-0.5.2.tar.gz 11.1 kB Details

Built distribution (wheel)

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

Total release size: 25.1 kB

Release files / altb-0.5.2.tar.gz

Download URL altb-0.5.2.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a3789b4aae06983942d9833e63849716be191f6af156f0544a51ae4d8959de57
BLAKE2b-256 checksum
How to use checksums
a2099a2664a740d4b9c06262cf648cf6982dad6a56f7f1142e149ff2a2532e38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.16 Linux/5.15.0-1035-azure

Release files / altb-0.5.2-py3-none-any.whl

Download URL altb-0.5.2-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8876841e5da68b69cfd7d239368cf8a4d5d84f6929d84ac5b6f6f01858bfc407
BLAKE2b-256 checksum
How to use checksums
31450178d2a12ab8b328f7b576e486f1961d940854124ac62c34488010ad9f50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.16 Linux/5.15.0-1035-azure

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 release files

0.5.1

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

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