Classes
InstallerInfo
4
▼
Information about detected installer.
InstallerInfo
4
▼
Information about detected installer.
Attributes
| Name | Type | Description |
|---|---|---|
name |
str
|
— |
command |
list[str]
|
— |
display_command |
str
|
— |
Methods
is_available
0
bool
▼
Check if the installer executable is available in PATH.
property
is_available
0
bool
▼
def is_available(self) -> bool
Returns
bool
Functions
detect_installer
0
InstallerInfo
▼
Detect how Bengal was installed.
**Attempts detection in priority order:**
1. …
detect_installer
0
InstallerInfo
▼
def detect_installer() -> InstallerInfo
Detect how Bengal was installed.
Attempts detection in priority order:
- uv (preferred for Bengal projects)
- pipx (isolated CLI tools)
- conda (Anaconda/Miniconda environments)
- pip in venv (standard virtual environments)
- pip --user (fallback for global installs)
Returns
InstallerInfo
_is_uv_project
0
bool
▼
Check if current directory is a uv-managed project.
**Looks for:**
- uv.lock i…
_is_uv_project
0
bool
▼
def _is_uv_project() -> bool
Check if current directory is a uv-managed project.
Looks for:
- uv.lock in current directory or parent directories
- UV_* environment variables (UV_CACHE_DIR, UV_PYTHON)
Returns
bool
_is_pipx_install
0
bool
▼
Check if Bengal was installed via pipx.
Runs `pipx list --short` and checks if…
_is_pipx_install
0
bool
▼
def _is_pipx_install() -> bool
Check if Bengal was installed via pipx.
Runspipx list --shortand checks if 'bengal' appears in output.
Uses a 5s timeout to avoid hanging on slow systems.
Returns
bool