Input: blue oscillating lever.
Output: yellow shaft rotating interruptedly.
One spring end is fixed to the blue lever. A slight grip between the spring and the yellow shaft is needed. Torsion spring allows motion transmission only in clockwise direction. The spring helix direction (right-handed in the video) decides the transmission direction.
The rotation direction that tends to wind up the spring is transmitted to the yellow output shaft due to friction force between the spring and the shaft.
For the inverse direction the yellow output shaft may rotate if there is no braking force or load applied to it.
The mechanism is for light duty works and where the kinematic relation between the input and output is not required strictly.