Skip to main content

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.datetime as 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

Changelog is here

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)

Source distribution for urpatimeout 0.2.2
File Size Uploaded
urpatimeout-0.2.2.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for urpatimeout 0.2.2
File Interpreter ABI Platform
urpatimeout-0.2.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page