-
Install Python ≥ 3.10:
- Download and install Python 3.10 from the official Python website
- Verify the installation by running:
python3.10 --version
Alternative: mise
-
Install uv: Follow the official installation instructions for your operating system.
-
Create a virtual environment in the current working directory:
uv venv
-
Install dependencies:
uv sync --all-extras --no-cache
For additional commands related to linting, formatting, and building, run just --list.
-
Create a project directory:
mkdir project cd project -
Initialize the Python project:
uv init . --python 3.10 -
Set the SDK path:
PATH_TO_SDK=/Users/YOUR_USERNAME/uipath-python
-
Install the SDK in editable mode:
uv add --editable ${PATH_TO_SDK}
Note: Instead of cloning the project into
.venv/lib/python3.10/site-packages/uipath, this mode creates a file named_uipath.pthinside.venv/lib/python3.10/site-packages. This file contains the value ofPATH_TO_SDK, which is added tosys.path—the list of directories where Python searches for packages. To view the entries, runpython -c 'import sys; print(sys.path)'.
- Use
keyinstead ofidfor resource identifiers
- Method Name:
retrieve - Purpose: Obtain a specific resource instance using its unique identifier (using
keyinstead ofid) - Variations:
retrieve_by_[field_name](for fields other thankey)
- Method Name:
list - Purpose: Fetch a collection of resources, optionally filtered by query parameters
- Example:
resources = Resource.list(filters={})
- Method Name:
create - Purpose: Add a new resource to the system
- Method Name:
update - Purpose: Modify an existing resource