Contributing to UiPath SDK
Local Development Setup
Prerequisites
-
Install Python ≥ 3.10:
- Download and install Python 3.10 from the official Python website
- Verify the installation by running:
Alternative: mise
-
Install uv: Follow the official installation instructions for your operating system.
-
Create a virtual environment in the current working directory:
-
Install dependencies:
For additional commands related to linting, formatting, and building, run just --list
.
Using the SDK Locally
-
Create a project directory:
-
Initialize the Python project:
-
Set the SDK path:
-
Install the SDK in editable mode:
Note: Instead of cloning the project into
.venv/lib/python3.10/site-packages/uipath
, this mode creates a file named_uipath.pth
inside.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)'
.
API Style Guide
General Rule
- Use
key
instead ofid
for resource identifiers
Standard Methods and Naming Conventions
Retrieve a Single Resource
- Method Name:
retrieve
- Purpose: Obtain a specific resource instance using its unique identifier (using
key
instead ofid
) - Variations:
retrieve_by_[field_name]
(for fields other thankey
)
List Multiple Resources
- Method Name:
list
- Purpose: Fetch a collection of resources, optionally filtered by query parameters
- Example:
Create a Resource
- Method Name:
create
- Purpose: Add a new resource to the system
Update a Resource
- Method Name:
update
- Purpose: Modify an existing resource