urpatimeout
urpatimeout is a module for managing timeouts inside UltimateRPA scripts.
Features
It helps you with setting up and measuring time limits:
- set up timeout for multiple searches in UltimateRPA
- set up timeout for part or whole of the script
- use
datetime.datetimeas an input - no 3rd party modules dependencies
Install
pip install urpatimeout
Examples
Setting up a Global Timeout for Multiple Searches
import urpatimeout
timeout = urpatimeout.Timeout(10_000)
app = urpa.exec_app("Some_application.exe")
app.find_first(cf.name("Username").text(), timeout=timeout)
app.find_first(cf.name("Password").text(), timeout=timeout)
Setting up a Timeout for Part of the Script
import urpatimeout
timeout = urpatimeout.Timeout(60 * 60 * 1000)
while not timeout.is_expired():
do_something()
Using datatime.datetime Object for Setting up the Timeout
import datetime
import urpatimeout
timeout = urpatimeout.Timeout(datetime.datetime(2029, 1, 15))
while not timeout.is_expired():
do_something_else()
Reseting the Timeout
import urpatimeout
timeout = urpatimeout.Timeout(10_000)
while not timeout.is_expired():
do_something()
if this_happened():
t.reset(5000)
Changelog
Contribute
Issues and pull requests are welcome.
Metadata
Release files for urpatimeout 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| urpatimeout-0.2.2.tar.gz | 3.1 kB | Without provenance | Details for urpatimeout-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| urpatimeout-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for urpatimeout-0.2.2-py3-none-any.whl |
Total release size: 7.7 kB
Release files / urpatimeout-0.2.2.tar.gz
| Download URL | urpatimeout-0.2.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73c30de8d491c39f435be924470e550082f07c04d68a1836ba0ed99a3c2848fd
|
|
BLAKE2b-256 checksum How to use checksums |
eb7311b58d07074fd28bb868e1a70dd84a4cebc7d2799c112adf083cfda7a11c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6
|
Release files / urpatimeout-0.2.2-py3-none-any.whl
| Download URL | urpatimeout-0.2.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47b6c8db4f4b2562689b4013b8d73ed2b6eb3ced4efbaef946a71f1dea6b25ab
|
|
BLAKE2b-256 checksum How to use checksums |
fc03c862c9df64bfb7c22f5c395550a6b7dfac2fc2ea4dc7d5fc6b7c77d071e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6
|
Security for urpatimeout 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.