Skip to main content

Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.

Project description

UiPath Python SDK

PyPI downloads PyPI - Version Python versions

A Python SDK that enables programmatic interaction with UiPath Platform services including processes, assets, buckets, context grounding, data services, jobs, and more. The package also features a CLI for creation, packaging, and deployment of automations to UiPath Platform.

Use the UiPath LangChain SDK to pack and publish LangGraph Agents.

Table of Contents

Installation

pip install uipath

using uv:

uv add uipath

Configuration

Environment Variables

Create a .env file in your project root with the following variables:

UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME
UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE

Basic Usage

from uipath import UiPath
# Initialize the SDK
sdk = UiPath()
# Execute a process
job = sdk.processes.invoke(
    name="MyProcess",
    input_arguments={"param1": "value1", "param2": 42}
)
# Work with assets
asset = sdk.assets.retrieve(name="MyAsset")

Available Services

The SDK provides access to various UiPath services:

  • sdk.processes - Manage and execute UiPath automation processes

  • sdk.assets - Work with assets (variables, credentials) stored in UiPath

  • sdk.buckets - Manage cloud storage containers for automation files

  • sdk.connections - Handle connections to external systems

  • sdk.context_grounding - Work with semantic contexts for AI-enabled automation

  • sdk.jobs - Monitor and manage automation jobs

  • sdk.queues - Work with transaction queues

  • sdk.actions - Work with Action Center

  • sdk.api_client - Direct access to the API client for custom requests

Examples

Buckets Service

# Download a file from a bucket
sdk.buckets.download(
    bucket_key="my-bucket",
    blob_file_path="path/to/file.xlsx",
    destination_path="local/path/file.xlsx"
)

Context Grounding Service

# Search for contextual information
results = sdk.context_grounding.search(
    name="my-knowledge-index",
    query="How do I process an invoice?",
    number_of_results=5
)

Command Line Interface (CLI)

The SDK also provides a command-line interface for creating, packaging, and deploying automations:

Authentication

uipath auth

This command opens a browser for authentication and creates/updates your .env file with the proper credentials.

Initialize a Project

uipath init [ENTRYPOINT]

Creates a uipath.json configuration file for your project. If the entrypoint is not provided, it will try to find a single Python file in the current directory.

Debug a Project

uipath run ENTRYPOINT [INPUT]

Executes a Python script with the provided JSON input arguments.

Package a Project

uipath pack

Packages your project into a .nupkg file that can be deployed to UiPath.

Note: Your pyproject.toml must include:

  • A description field (avoid characters: &, <, >, ", ', ;)
  • Author information

Example:

description = "Your package description"
authors = [{name = "Your Name", email = "your.email@example.com"}]

Publish a Package

uipath publish

Publishes the most recently created package to your UiPath Orchestrator.

Project Structure

To properly use the CLI for packaging and publishing, your project should include:

  • A pyproject.toml file with project metadata
  • A uipath.json file (generated by uipath init)
  • Any Python files needed for your automation

Development

Setting Up a Development Environment

Please read CONTRIBUTING.md before submitting a pull request.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uipath-2.0.19.dev1002910038.tar.gz (250.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uipath-2.0.19.dev1002910038-py3-none-any.whl (95.1 kB view details)

Uploaded Python 3

File details

Details for the file uipath-2.0.19.dev1002910038.tar.gz.

File metadata

File hashes

Hashes for uipath-2.0.19.dev1002910038.tar.gz
Algorithm Hash digest
SHA256 a01721816d6a6dd8fde49ea6c9a3befd1e9815aae74856fed584bfa53f35cb33
MD5 a79983572c4ac865883ce981db175145
BLAKE2b-256 b95c46aed1c54f19333d30e693c8d5d8f51f4f9dbeb2ffc836396606548636c9

See more details on using hashes here.

File details

Details for the file uipath-2.0.19.dev1002910038-py3-none-any.whl.

File metadata

File hashes

Hashes for uipath-2.0.19.dev1002910038-py3-none-any.whl
Algorithm Hash digest
SHA256 cb9cf7cdcced237130c33ab7304163c6641ec26d577f3273928e4130298408fe
MD5 63aef59a1cb3927ba1a44ab0852e67fd
BLAKE2b-256 f8d4c1bc7c380a4f1350533e96bbf468e17302a7548928c967e4ef0fe5aa56b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page