From 658c37206f78d4865c70b2f5d7b17b2252f9b064 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 30 May 2013 04:45:30 +0200 Subject: [PATCH] added lib/service/ and some dummy files. need to talk about that but i think we should implement the services in pure python --- lib/__init__.py | 3 ++- lib/service/__init__.py | 0 lib/service/htmlcontent.py | 8 ++++++++ lib/service/ping.py | 5 +++++ lib/service/snmpget.py | 5 +++++ lib/service/ssh.py | 5 +++++ 6 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 lib/service/__init__.py create mode 100644 lib/service/htmlcontent.py create mode 100644 lib/service/ping.py create mode 100644 lib/service/snmpget.py create mode 100644 lib/service/ssh.py diff --git a/lib/__init__.py b/lib/__init__.py index e82f103..c79d660 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -1,3 +1,4 @@ from config import * from core import * -from parser import * \ No newline at end of file +from parser import * +from service import * \ No newline at end of file diff --git a/lib/service/__init__.py b/lib/service/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/lib/service/htmlcontent.py b/lib/service/htmlcontent.py new file mode 100644 index 0000000..2b3ce39 --- /dev/null +++ b/lib/service/htmlcontent.py @@ -0,0 +1,8 @@ +""" +The htmlcontent service in pure Python. STUPID NAME!!! +""" + +# http://pycurl.sourceforge.net/ --- seems old... +# http://www.angryobjects.com/2011/10/15/http-with-python-pycurl-by-example/ +# +# maybe better: http://docs.python.org/2/library/urllib.html \ No newline at end of file diff --git a/lib/service/ping.py b/lib/service/ping.py new file mode 100644 index 0000000..7cc0b51 --- /dev/null +++ b/lib/service/ping.py @@ -0,0 +1,5 @@ +""" +The ping service in pure Python. +""" + +# http://code.activestate.com/recipes/409689-icmplib-library-for-creating-and-reading-icmp-pack/ \ No newline at end of file diff --git a/lib/service/snmpget.py b/lib/service/snmpget.py new file mode 100644 index 0000000..c36c477 --- /dev/null +++ b/lib/service/snmpget.py @@ -0,0 +1,5 @@ +""" +The snmpget service in pure Python. +""" + +# http://pysnmp.sourceforge.net/ \ No newline at end of file diff --git a/lib/service/ssh.py b/lib/service/ssh.py new file mode 100644 index 0000000..123c460 --- /dev/null +++ b/lib/service/ssh.py @@ -0,0 +1,5 @@ +""" +The ssh service in pure Python. +""" + +# http://www.lag.net/paramiko/ \ No newline at end of file