1- # abx-pkg Guide
1+ # abxpkg Guide
22
33This is a python package and CLI tool to help install and run binary package dependencies from a variety
44of providers (etc apt, brew, pip, npm, docker, env, bash script, etc.).
@@ -8,7 +8,7 @@ It provides nice safe pydantic type interfaces for `Binary`, `BinProvider`, `Sem
88### Python API
99
1010``` python
11- from abx_pkg import Binary, apt, brew, env, BinProvider
11+ from abxpkg import Binary, apt, brew, env, BinProvider
1212
1313wget = env.load(' wget' ) or apt.install(' wget' ) or brew.install(' wget' )
1414
@@ -29,27 +29,27 @@ wget.uninstall()
2929### CLI
3030
3131```
32- abx-pkg --version
33- abx-pkg install --binproviders=env,apt,brew wget
34- abx-pkg load|install|update|uninstall|run [--flags...] [binary] [args...]
32+ abxpkg --version
33+ abxpkg install --binproviders=env,apt,brew wget
34+ abxpkg load|install|update|uninstall|run [--flags...] [binary] [args...]
3535
3636# abx alias cli:
37- abx wget --version # just a thin wrapper around `abx-pkg run --install [--flags...] [binary] [args...]`
37+ abx wget --version # just a thin wrapper around `abxpkg run --install [--flags...] [binary] [args...]`
3838```
3939
4040also usable as a shebang in scripts similar to uv run -S, auto installs dependencies before running the script:
4141``` javascript
42- #! / usr/ bin/ env abx - pkg run -- script node -- abort- on- uncaught- exception
42+ #! / usr/ bin/ env abxpkg run -- script node -- abort- on- uncaught- exception
4343// /// script
4444// dependencies = [
4545// {name = "node", binproviders = ["env", "apt", "brew"], min_version: "22.0.0"},
4646// {name = "playwright", binproviders = ["playwright", "pnpm", "npm", "yarn"]},
4747// {name = "chromium", binproviders = ["env", "playwright", "puppeteer", "apt"], min_version: "146.0.0"},
4848// ]
49- // [tool.abx-pkg ]
50- // ABX_PKG_LIB_DIR =/tmp/abxlib
51- // ABX_PKG_MIN_RELEASE_AGE =14
52- // ABX_PKG_POSTINSTALL_SCRIPTS =False
49+ // [tool.abxpkg ]
50+ // ABXPKG_LIB_DIR =/tmp/abxlib
51+ // ABXPKG_MIN_RELEASE_AGE =14
52+ // ABXPKG_POSTINSTALL_SCRIPTS =False
5353// ///
5454
5555import {playwright } from ' playwright' ;
0 commit comments