Skip to content

Instantly share code, notes, and snippets.

@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:
@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"