Skip to content

Instantly share code, notes, and snippets.

from uuid import uuid4
from time import sleep
import threading
from concurrent.futures import ThreadPoolExecutor, as_completed
THREAD_LOCAL = threading.local()
def connect():
"""

Keybase proof

I hereby claim:

  • I am aule on github.
  • I am aule (https://keybase.io/aule) on keybase.
  • I have a public key whose fingerprint is 1379 4B64 8D6A A908 8BCC 8E19 2534 16BE F11B C868

To claim this, I am signing this object:

@aule
aule / robotwrapper.py
Created November 16, 2016 00:47
Object Oriented Robot Wrapper
"""Tools for allowing Robot Framework to interact with Python objects."""
import inspect
class RobotWrapper(object):
"""Exposes all methods of a wrapped Robot library as functions.
Usually, instance methods are bound to a class instance, so that the first
parameter (`self`) is automatically passed in. This wrapper is a hack that
"unbinds" instance methods, making them normal functions: