From The Compiler, 5 Years ago, written in Plain Text.
Embed
  1. >>> import herbstclient
  2. >>> c = herbstclient.Client()
  3. >>> c.send_command("version")
  4. (0, 'herbstluftwm 0.5.3-git (23c884a) (built on Jan  9 2014)')
  5. >>> c.send_command("dump", "1")
  6. (0, '(clients vertical:0)')