Open Source RPA (Robotic Process Automation) Library for Python and Robot Framework
Project description
RPALite - An Open Source RPA (Robotic Process Automation) Programming Library for Python and Robot Framework
Table of Contents
- Introduction
- Features
- Performance Optimization
- Documentation
- Installation
- Quick Start
- Contribution Guidelines
Introduction
RPALite is an open-source RPA (Robotic Process Automation) library. You can use RPALite through Python or Robot Framework to achieve various automation tasks.
In the current version, RPALite only supports the Windows platform, and support for other platforms will be added in future versions.
Features
Currently, RPALite supports the following operations on the Windows platform:
- Launching applications
- Finding applications by name or ClassName
- Closing applications
- Mouse clicking on specific text
- Locating and inputting into text boxes based on placeholders or labels
- Mouse clicking based on coordinates
- Support for left-click, right-click, and double-click operations
- Locating controls based on Windows control names, classes, or Automation IDs and getting their coordinates
- Image-based location. You can pass a partial screenshot to RPALite to return the coordinates of the corresponding part on the screen.
Performance Optimization
The most time-consuming operations in RPALite are image recognition and OCR. For OCR, we use EasyOCR. EasyOCR runs more efficiently on computers with dedicated GPUs and CUDA support. If you find RPALite running slowly, consider running it on a computer with a dedicated GPU and CUDA support and installing the appropriate version of PyTorch.
Documentation
In the following sections, we provide a Quick Start Guide to give you a basic understanding of RPALite.
Here are links to more detailed documentation:
- Programming Guide for Using RPALite in Python
- Programming Guide for Using RPALite in Robot Framework
In addition to the above documents, we provide an English version of the Robot Framework Library documentation, which you can access through the Online Robot Framework Documentation. If you prefer to view it locally, you can open the Robot Framework Library documentation in the project directory.
Installation
You can install RPALite via pip:
pip install RPALite
Quick Start
As mentioned earlier, you can use RPALite with Python or Robot Framework. Here are some examples:
Python
Below is an example of using RPALite to operate Windows Notepad:
from RPALite import RPALite
rpalite = RPALite()
# Show the desktop
rpalite.show_desktop()
# Run Notepad and input some text
rpalite.run_command("notepad.exe")
rpalite.input_text("This is a demo using RPALite.\n")
# Find the Notepad app and close it
app = rpalite.find_application(".*Notepad")
rpalite.close_app(app)
Robot Framework
Below is an example of using RPALite to operate Windows Notepad:
*** Settings ***
Library RPALite
*** Test Cases ***
Test Notepad
Send Keys {VK_LWIN down}D{VK_LWIN up}
Run Command notepad.exe
${app} = Find Application .*Notepad
Maximize Window ${app}
Input Text This is a demo using RPALite.
Close App ${app}
Contribution Guidelines
If you wish to contribute code to RPALite, feel free to submit a Pull Request. Ensure your code style is consistent with the existing codebase and passes all tests in the tests directory. Additionally, make sure to update unit tests for any new or modified code.
- GitHub Repository: https://github.com/jieliu2000/RPALite
- Gitee Repository: https://gitee.com/jieliu2000/rpalite
- Gitcode Repository: https://gitcode.com/jieliu2000/rpalite
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rpalite-0.0.9.tar.gz
.
File metadata
- Download URL: rpalite-0.0.9.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d544617f2f7eb654c2259f8f1bff14b876d2d8e269b5a414036cd46290a49ef |
|
MD5 | 4d20a73a47147f0027bd3e7bf4a7a2d7 |
|
BLAKE2b-256 | d77f8037f39bfe317eb55dbc3d88caf269b427da4eb878faaa1d3bee18778d1b |
Provenance
The following attestation bundles were made for rpalite-0.0.9.tar.gz
:
Publisher:
python-package-publish.yml
on jieliu2000/RPALite
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
rpalite-0.0.9.tar.gz
- Subject digest:
6d544617f2f7eb654c2259f8f1bff14b876d2d8e269b5a414036cd46290a49ef
- Sigstore transparency entry: 146080390
- Sigstore integration time:
- Predicate type:
File details
Details for the file rpalite-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: rpalite-0.0.9-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4398f1dd1f15a34e8e5b3811ac8a6cb89748b673aeb32ec3ea7eff2d22c8d0d |
|
MD5 | 0723c9fbd7c99c7f4917f6b28dcc36fb |
|
BLAKE2b-256 | 1c1309d82630813b84e80585d917bb276a8b21a3bc47c468883ab0e021bba3ae |
Provenance
The following attestation bundles were made for rpalite-0.0.9-py3-none-any.whl
:
Publisher:
python-package-publish.yml
on jieliu2000/RPALite
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
rpalite-0.0.9-py3-none-any.whl
- Subject digest:
a4398f1dd1f15a34e8e5b3811ac8a6cb89748b673aeb32ec3ea7eff2d22c8d0d
- Sigstore transparency entry: 146080391
- Sigstore integration time:
- Predicate type: