Browse Source

Deleting useless module import

Yann Weber 9 years ago
parent
commit
ae900fa627
7 changed files with 62 additions and 13 deletions
  1. 47
    0
      README
  2. 1
    0
      THANKS
  3. 7
    0
      TODO
  4. 1
    1
      mapData/SOURCES
  5. 1
    1
      tracer.py
  6. 1
    1
      vtracemap.py
  7. 4
    10
      vtracert.py

+ 47
- 0
README View File

@@ -0,0 +1,47 @@
1
+PyVtraceRoute :
2
+
3
+Vtraceroute is a traceroute program ( more info : man traceroute ) that displays hops on a map using GeoIP.
4
+
5
+Credits :
6
+---------
7
+All borders data extracted from data provided by http://thematicmapping.org and
8
+Licenced under Creatice Commons Attribution-Share Alike License 3.0
9
+
10
+Controls summary :
11
+------------------
12
+
13
+^h, ?                : display this help
14
+esc, ^q              : exit the programm or this help
15
+
16
+[a-zA-Z0-9\.]        : Host input
17
+mid-mouse btn        : paste clipboard into host input
18
+enter                : validate host input and run traceroute
19
+^c                   : clear host input
20
+
21
+mouse scroll, +, -   : zoom in/out
22
+arrow keys           : move on the map
23
+left mouse btn press : select hops on the map
24
+
25
+Dependencies :
26
+--------------
27
+
28
+python >= 2.7.3
29
+python-GeoIP >= 1.3.2
30
+python-pygame >= 1.9.1
31
+
32
+os
33
+re
34
+GeoIP
35
+time
36
+string
37
+pygame
38
+subprocess
39
+math
40
+json
41
+itertools
42
+multiprocessing
43
+struct
44
+sys
45
+functools
46
+random
47
+thread

+ 1
- 0
THANKS View File

@@ -0,0 +1 @@
1
+http://thematicmapping.org for borders datas

+ 7
- 0
TODO View File

@@ -0,0 +1,7 @@
1
+- Trace history support
2
+- Command line options support
3
+- Different traceroute data gathering methods
4
+	- command line
5
+	- pipe
6
+	- socket ???
7
+	

+ 1
- 1
mapData/SOURCES View File

@@ -1 +1 @@
1
-http://www.mappinghacks.com/data/
1
+Data extracted from files from http://www.mappinghacks.com/data/ Licenced under Creative Commons Attribution-Share Alike License 3.0

+ 1
- 1
tracer.py View File

@@ -18,7 +18,7 @@
18 18
 #        along with pyMapTraceroute.  If not, see <http://www.gnu.org/licenses/>.
19 19
 #
20 20
 
21
-import os, re, GeoIP, time, string, pygame
21
+import os, re, GeoIP, time, pygame
22 22
 
23 23
 
24 24
 from subprocess import Popen, PIPE

+ 1
- 1
vtracemap.py View File

@@ -18,7 +18,7 @@
18 18
 #        along with pyMapTraceroute.  If not, see <http://www.gnu.org/licenses/>.
19 19
 #
20 20
 
21
-import math, pygame, os, json, time, itertools, multiprocessing, struct, sys
21
+import math, pygame, os, time, multiprocessing, struct, sys
22 22
 
23 23
 from multiprocessing import Pool
24 24
 from functools import partial

+ 4
- 10
vtracert.py View File

@@ -45,11 +45,8 @@ control_summary = [
45 45
 "+----------------------+----------------------------------+"
46 46
 ]
47 47
 
48
-import websocket
49 48
 import random
50
-import thread
51 49
 import time
52
-import json
53 50
 import os
54 51
 
55 52
 import pygame
@@ -212,7 +209,10 @@ class Vtracert:
212 209
 			"mouse scroll, +, -   : zoom in/out",
213 210
 			"arrow keys           : move on the map",
214 211
 			"left mouse btn press : select hops on the map",
215
-			"","","",
212
+			"","",
213
+			"All borders data extracted from data provided by http://thematicmapping.org and",
214
+			"Licenced under Creatice Commons Attribution-Share Alike License 3.0"
215
+			"",
216 216
 			"Press any key or mouse button to exit this help"
217 217
 		]
218 218
 		
@@ -502,12 +502,6 @@ class Vtracert:
502 502
 		again = True
503 503
 		
504 504
 		while again:
505
-			"""
506
-			evts = pygame.event.get()
507
-			if len(evts) > 0:
508
-				
509
-				for evt in evts:
510
-			"""
511 505
 			evt = pygame.event.wait()
512 506
 			if evt != pygame.NOEVENT:
513 507
 				if evt.type == pygame.QUIT:

Loading…
Cancel
Save