Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

andrew-azarov/py-lookingglass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 

Repository files navigation

py-lookingglass

Python looking glass WSGI implementation

Requires:

Python 2.6+

Standard python modules:

  • telnetlib
  • os
  • socket
  • cgi
  • wsgi_ref
  • random
  • traceback
  • argparse
  • json

External:

  • paramiko

Setup:

To run out of the box just clone the repo or install using pip install py-lookingglass or easy_install py_lookingglass, then:

# python -m lg -h

Or you can use it as WSGI callback

lg.lookingglass(name="Looking Glass", cmds={'profile':{'command_name','actual command'}}, hosts=[('password','ip',int(port),int(connection_type),'name','profile')])

Any additional hacks can be applied before init of class

Check help(lg.lookingglass) for more info

Should also install executable py-lookingglass