uipath 1.0.0__py3-none-any.whl → 2.0.0.dev2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of uipath might be problematic. Click here for more details.

@@ -0,0 +1,198 @@
1
+ Metadata-Version: 2.4
2
+ Name: uipath
3
+ Version: 2.0.0.dev2
4
+ Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
5
+ Project-URL: Homepage, https://uipath.com
6
+ Project-URL: Repository, https://github.com/UiPath/uipath-python
7
+ Maintainer-email: Marius Cosareanu <marius.cosareanu@uipath.com>, Cristian Pufu <cristian.pufu@uipath.com>
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Topic :: Software Development :: Build Tools
15
+ Requires-Python: >=3.9
16
+ Requires-Dist: click>=8.1.8
17
+ Requires-Dist: httpx>=0.28.1
18
+ Requires-Dist: pydantic>=2.11.1
19
+ Requires-Dist: pytest-asyncio>=0.25.3
20
+ Requires-Dist: python-dotenv>=1.0.1
21
+ Requires-Dist: requests>=2.32.3
22
+ Requires-Dist: tenacity>=9.0.0
23
+ Requires-Dist: tomli>=2.2.1
24
+ Requires-Dist: types-requests>=2.32.0.20250306
25
+ Provides-Extra: langchain
26
+ Requires-Dist: uipath-langchain==0.0.85; extra == 'langchain'
27
+ Description-Content-Type: text/markdown
28
+
29
+ # UiPath Python SDK
30
+
31
+ [![PyPI downloads](https://img.shields.io/pypi/dm/uipath.svg)](https://pypi.org/project/uipath/)
32
+ [![PyPI - Version](https://img.shields.io/pypi/v/uipath)](https://img.shields.io/pypi/v/uipath)
33
+ [![Python versions](https://img.shields.io/pypi/pyversions/uipath.svg)](https://pypi.org/project/uipath/)
34
+
35
+
36
+ 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.
37
+
38
+ ## Table of Contents
39
+
40
+ - [Installation](#installation)
41
+ - [Configuration](#configuration)
42
+ - [Environment Variables](#environment-variables)
43
+ - [Basic Usage](#basic-usage)
44
+ - [Available Services](#available-services)
45
+ - [Examples](#examples)
46
+ - [Buckets Service](#buckets-service)
47
+ - [Context Grounding Service](#context-grounding-service)
48
+ - [Command Line Interface (CLI)](#command-line-interface-cli)
49
+ - [Authentication](#authentication)
50
+ - [Initialize a Project](#initialize-a-project)
51
+ - [Debug a Project](#debug-a-project)
52
+ - [Package a Project](#package-a-project)
53
+ - [Publish a Package](#publish-a-package)
54
+ - [Project Structure](#project-structure)
55
+ - [Development](#development)
56
+ - [Setting Up a Development Environment](#setting-up-a-development-environment)
57
+
58
+ ## Installation
59
+
60
+ ```bash
61
+ pip install uipath
62
+ ```
63
+
64
+ using `uv`:
65
+
66
+ ```bash
67
+ uv add uipath
68
+ ```
69
+
70
+ ## Configuration
71
+
72
+ ### Environment Variables
73
+
74
+ Create a `.env` file in your project root with the following variables:
75
+
76
+ ```
77
+ UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME
78
+ UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE
79
+ ```
80
+
81
+ ## Basic Usage
82
+
83
+ ```python
84
+ from uipath import UiPath
85
+ # Initialize the SDK
86
+ sdk = UiPath()
87
+ # Execute a process
88
+ job = sdk.processes.invoke(
89
+ name="MyProcess",
90
+ input_arguments={"param1": "value1", "param2": 42}
91
+ )
92
+ # Work with assets
93
+ asset = sdk.assets.retrieve(name="MyAsset")
94
+ ```
95
+
96
+ ## Available Services
97
+
98
+ The SDK provides access to various UiPath services:
99
+ - `sdk.processes` - Manage and execute UiPath automation processes
100
+ - `sdk.assets` - Work with assets (variables, credentials) stored in UiPath
101
+ - `sdk.buckets` - Manage cloud storage containers for automation files
102
+ - `sdk.connections` - Handle connections to external systems
103
+ - `sdk.context_grounding` - Work with semantic contexts for AI-enabled automation
104
+ - `sdk.jobs` - Monitor and manage automation jobs
105
+ - `sdk.queues` - Work with transaction queues
106
+ - `sdk.actions` - Work with Action Center
107
+ - `sdk.api_client` - Direct access to the API client for custom requests
108
+
109
+ ## Examples
110
+
111
+ ### Buckets Service
112
+
113
+ ```python
114
+ # Download a file from a bucket
115
+ sdk.buckets.download(
116
+ bucket_key="my-bucket",
117
+ blob_file_path="path/to/file.xlsx",
118
+ destination_path="local/path/file.xlsx"
119
+ )
120
+ ```
121
+
122
+ ### Context Grounding Service
123
+
124
+ ```python
125
+ # Search for contextual information
126
+ results = sdk.context_grounding.search(
127
+ name="my-knowledge-index",
128
+ query="How do I process an invoice?",
129
+ number_of_results=5
130
+ )
131
+ ```
132
+
133
+ ## Command Line Interface (CLI)
134
+
135
+ The SDK also provides a command-line interface for creating, packaging, and deploying automations:
136
+
137
+ ### Authentication
138
+
139
+ ```bash
140
+ uipath auth
141
+ ```
142
+
143
+ This command opens a browser for authentication and creates/updates your `.env` file with the proper credentials.
144
+
145
+ ### Initialize a Project
146
+
147
+ ```bash
148
+ uipath init [ENTRYPOINT]
149
+ ```
150
+
151
+ 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.
152
+
153
+ ### Debug a Project
154
+
155
+ ```bash
156
+ uipath run ENTRYPOINT [INPUT]
157
+ ```
158
+
159
+ Executes a Python script with the provided JSON input arguments.
160
+
161
+ ### Package a Project
162
+
163
+ ```bash
164
+ uipath pack
165
+ ```
166
+
167
+ Packages your project into a `.nupkg` file that can be deployed to UiPath.
168
+
169
+ **Note:** Your `pyproject.toml` must include:
170
+ - A description field (avoid characters: &, <, >, ", ', ;)
171
+ - Author information
172
+
173
+ Example:
174
+ ```toml
175
+ description = "Your package description"
176
+ authors = [{name = "Your Name", email = "your.email@example.com"}]
177
+ ```
178
+
179
+ ### Publish a Package
180
+
181
+ ```bash
182
+ uipath publish
183
+ ```
184
+
185
+ Publishes the most recently created package to your UiPath Orchestrator.
186
+
187
+ ## Project Structure
188
+
189
+ To properly use the CLI for packaging and publishing, your project should include:
190
+ - A `pyproject.toml` file with project metadata
191
+ - A `uipath.json` file (generated by `uipath init`)
192
+ - Any Python files needed for your automation
193
+
194
+ ## Development
195
+
196
+ ### Setting Up a Development Environment
197
+
198
+ Please read our [contribution guidelines](CONTRIBUTING.md) before submitting a pull request.
@@ -0,0 +1,4 @@
1
+ uipath-2.0.0.dev2.dist-info/METADATA,sha256=0mpddrh7zJIk7VBSXdq_zcCQ1wBbl6Ex8ISqyNFFIx4,5831
2
+ uipath-2.0.0.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
3
+ uipath-2.0.0.dev2.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
4
+ uipath-2.0.0.dev2.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ uipath = uipath._cli:cli
uipath/__init__.py DELETED
@@ -1,9 +0,0 @@
1
- from uipath.__version__ import __version__
2
- from uipath.auth.authentication import UiPathAuth
3
- from uipath.client.api_client import UiPathClient
4
-
5
- __all__ = [
6
- '__version__',
7
- 'UiPathAuth',
8
- 'UiPathClient',
9
- ]
uipath/__version__.py DELETED
@@ -1,3 +0,0 @@
1
- VERSION = (1, 0, 0)
2
-
3
- __version__ = '.'.join(map(str, VERSION))
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Your Name
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,181 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: uipath
3
- Version: 1.0.0
4
- Summary: A Python SDK for UiPath
5
- Home-page: https://github.com/christianblandford/uipath
6
- Author: Christian Blandford
7
- Author-email: christianblandford@me.com
8
- Classifier: Development Status :: 3 - Alpha
9
- Classifier: Intended Audience :: Developers
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.7
14
- Classifier: Programming Language :: Python :: 3.8
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.10
17
- Classifier: Programming Language :: Python :: 3.11
18
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
- Requires-Python: >=3.7
20
- Description-Content-Type: text/markdown
21
- License-File: LICENSE
22
- Requires-Dist: requests>=2.25.0
23
- Requires-Dist: typing-extensions>=4.0.0; python_version < "3.8"
24
- Provides-Extra: dev
25
- Requires-Dist: pytest>=6.0; extra == "dev"
26
- Requires-Dist: pytest-cov>=2.0; extra == "dev"
27
- Requires-Dist: black>=22.0; extra == "dev"
28
- Requires-Dist: isort>=5.0; extra == "dev"
29
- Requires-Dist: mypy>=0.900; extra == "dev"
30
- Requires-Dist: flake8>=3.9; extra == "dev"
31
- Dynamic: author
32
- Dynamic: author-email
33
- Dynamic: classifier
34
- Dynamic: description
35
- Dynamic: description-content-type
36
- Dynamic: home-page
37
- Dynamic: provides-extra
38
- Dynamic: requires-dist
39
- Dynamic: requires-python
40
- Dynamic: summary
41
-
42
- # UiPath Python SDK
43
-
44
- A Python SDK for interacting with UiPath's APIs. This SDK provides a simple and intuitive way to automate UiPath operations programmatically.
45
-
46
- ## Installation
47
-
48
- ```bash
49
- pip install uipath
50
- ```
51
-
52
- ## Quick Start
53
-
54
- ```python
55
- from uipath.auth.authentication import UiPathAuth
56
- from uipath.client.api_client import UiPathClient
57
- from uipath.resources.robots import RobotsResource
58
-
59
- # Initialize authentication
60
- auth = UiPathAuth(
61
- tenant_name="your_tenant",
62
- client_id="your_client_id",
63
- client_secret="your_client_secret"
64
- )
65
-
66
- # Create API client
67
- client = UiPathClient(auth)
68
-
69
- # Use the robots resource
70
- robots = RobotsResource(client)
71
-
72
- # List all robots
73
- all_robots = robots.list_robots()
74
- ```
75
-
76
- ## Features
77
-
78
- - Simple, intuitive interface for UiPath APIs
79
- - Authentication handling
80
- - Comprehensive error handling
81
- - Type hints for better IDE support
82
- - Resource classes for all major UiPath entities:
83
- - Robots
84
- - Jobs
85
- - Processes
86
- - Assets
87
- - And more...
88
-
89
- ## Authentication
90
-
91
- The SDK supports client credentials authentication. You'll need:
92
- - Tenant name
93
- - Client ID
94
- - Client secret
95
-
96
- You can obtain these credentials from your UiPath Orchestrator account under Admin → API Access.
97
-
98
- ```python
99
- auth = UiPathAuth(
100
- tenant_name="your_tenant",
101
- client_id="your_client_id",
102
- client_secret="your_client_secret",
103
- scope="OR.Default" # Optional, defaults to OR.Default
104
- )
105
- ```
106
-
107
- ## Usage Examples
108
-
109
- ### Working with Robots
110
-
111
- ```python
112
- # List all robots
113
- robots = RobotsResource(client)
114
- all_robots = robots.list_robots()
115
-
116
- # Get a specific robot
117
- robot = robots.get_robot(robot_id=123)
118
-
119
- # Create a new robot
120
- new_robot = robots.create_robot(
121
- name="MyNewRobot",
122
- machine_name="DESKTOP-123",
123
- type="Unattended"
124
- )
125
- ```
126
-
127
- ### Error Handling
128
-
129
- The SDK provides custom exceptions for different types of errors:
130
-
131
- ```python
132
- from uipath.exceptions.exceptions import AuthenticationError, ApiError
133
-
134
- try:
135
- robots.get_robot(robot_id=999)
136
- except AuthenticationError as e:
137
- print("Authentication failed:", e)
138
- except ApiError as e:
139
- print("API request failed:", e)
140
- ```
141
-
142
- ## Configuration
143
-
144
- The SDK can be configured with custom endpoints and API versions:
145
-
146
- ```python
147
- client = UiPathClient(
148
- auth,
149
- base_url="https://cloud.uipath.com", # Custom base URL
150
- api_version="v1" # API version
151
- )
152
- ```
153
-
154
- ## Contributing
155
-
156
- Contributions are welcome! Please feel free to submit a Pull Request.
157
-
158
- 1. Fork the repository
159
- 2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
160
- 3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
161
- 4. Push to the branch (`git push origin feature/AmazingFeature`)
162
- 5. Open a Pull Request
163
-
164
- ## License
165
-
166
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
167
-
168
- ## Support
169
-
170
- If you encounter any problems or have questions, please:
171
- 1. Check the [documentation](docs/)
172
- 2. Open an issue in the GitHub repository
173
-
174
- ## Requirements
175
-
176
- - Python 3.7+
177
- - requests library
178
-
179
- ## Disclaimer
180
-
181
- This is an unofficial SDK and is not affiliated with, maintained, authorized, endorsed, or sponsored by UiPath.
@@ -1,7 +0,0 @@
1
- uipath/__init__.py,sha256=j2gsFvg5BudvoZxfNncyip-FBq9PqdM39hvCJzS6k0k,215
2
- uipath/__version__.py,sha256=Q1SV_A_xAMGhRrDOq-kOmB2-vbVwqaYR7R11-BM4jq8,63
3
- uipath-1.0.0.dist-info/LICENSE,sha256=FyuBsNr3YLXHPRQfWIpCAC4brUeSdYelr01V-Fkog8U,1066
4
- uipath-1.0.0.dist-info/METADATA,sha256=r9uU1FkrqU8Lkyb7l-GqA1pzys9E4VaActrh878pzoM,4536
5
- uipath-1.0.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
6
- uipath-1.0.0.dist-info/top_level.txt,sha256=cO-fuTo_YlozqaZ6VNk0ST79wuBjLkcTRzYpXLM6rRg,7
7
- uipath-1.0.0.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- uipath