@uipath/codedagents-tool
v0.1.5
Published
Tool for creating, debugging and executing Python packages with version validation and caching
Readme
Python Tool
A command-line tool over uipath-python
Features
- Automatic Python version detection
- Python path caching for improved performance
- Package installation verification
- Interactive command execution support
Commands
setup
Detects Python installation and verifies required package is installed.
uipath ca setup [options]Options:
--force- Force re-detection of Python even if cached
exec
Executes the configured Python package with provided arguments.
uipath ca exec [args...]Options:
--interactive- enable interactive mode
All arguments are passed directly to the Python package.
Configuration
Static Configuration
The following settings are configured in the code and can be overridden via environment variables:
Python Versions
Default: 3.11, 3.12, 3.13
Override with PYTHON_TOOL_PYTHON_VERSIONS environment variable:
# Windows
set PYTHON_TOOL_PYTHON_VERSIONS=3.13,3.12,3.11
# Linux/macOS
export PYTHON_TOOL_PYTHON_VERSIONS=3.13,3.12,3.11Cache File
The tool uses a cache file (.codedagents-tool-cache.json) to store:
- Detected Python path
- Python version
- Package name
- Last validation timestamp
If the cached Python path no longer exists, will ask user to configure.
uip codedagents init
❌ Invalid config. Python (C:\Users\georgescu.vlad\AppData\Local\Programs\Python\Python311\python.exe) no longer exists.
Run 'uip codedagents setup' to reconfigure.Examples
# Setup with default package (uipath-python)
uip codedagents setup
# Force re-detection
uipath codedagents setup --force
# Setup with custom package via environment variable
export CLOUD_TOOL_PACKAGE_NAME=my-package
uipath codedagents setup
# Run package with arguments
uipath ca run --help
uipath ca run command --option value
# Interactive command
uipath ca run interactive-shell
# Override Python versions via environment variable
export PYTHON_TOOL_PYTHON_VERSIONS=3.10,3.11
uipath ca setup
# Full configuration example
export PYTHON_TOOL_PYTHON_VERSIONS=3.10,3.11,3.12
export CLOUD_TOOL_PACKAGE_NAME=uipath-python
uipath ca setup
uipath ca run --version