python/networkedExample.py | ●●●●● patch | view | raw | blame | history | |
python/trisurf/WebTrisurf.py | ●●●●● patch | view | raw | blame | history | |
python/trisurf/__init__.py | patch | view | raw | blame | history | |
python/trisurf/tsmgr.py | ●●●●● patch | view | raw | blame | history |
python/networkedExample.py
@@ -4,7 +4,6 @@ #Ok... Configure your keys: #ssh-keygen #and copy them to all the remote hosts python/trisurf/WebTrisurf.py
@@ -1,8 +1,11 @@ import subprocess from urllib.parse import urlparse import sys, os if sys.version_info>=(3,0): from urllib.parse import urlparse else: from urlparse import urlparse import http.server import socketserver import sys, os #Web server class TsWEB(http.server.BaseHTTPRequestHandler): python/trisurf/__init__.py
python/trisurf/tsmgr.py
@@ -1,7 +1,7 @@ import argparse import paramiko from . import Remote from trisurf import trisurf from . import trisurf import socket import sys import tabulate @@ -9,9 +9,11 @@ import psutil #import http.server #import socketserver from urllib.parse import urlparse from . import WebTrisurf if sys.version_info>=(3,0): from urllib.parse import urlparse from . import WebTrisurf else: from urlparse import urlparse #import io @@ -169,7 +171,10 @@ def start_web_server(args,host): print('Server listening on port {}'.format(args['web_server'][0])) WebTrisurf.WebServer(port=args['web_server'][0]) if sys.version_info>=(3,0): WebTrisurf.WebServer(port=args['web_server'][0]) else: print("Cannot start WebServer in python 2.7") exit(0) def perform_action(args,host):