1 import sys
2
4 for arg in args:
5 sys.stdout.write('%s '%arg)
6 sys.stdout.write('\n')
7
8 if sys.version.startswith('3.0'):
9 PY_VER = '3.x'
10 from urllib.parse import quote
11 from urllib.request import urlopen,urlretrieve
12 else:
13 PY_VER = '2.x'
14 from urllib import quote,urlopen,urlretrieve
15
16 QUOTE = lambda x: quote(x,'+.,:|/$')
17
18 APIPARAMS = ('chxt', 'chxp', 'chxs', 'chxr', 'chco', 'chtm', 'chld', 'chts', 'chtt', 'chxl', 'chd', 'chf', 'chg', 'chl', 'chm', 'chp', 'chs', 'cht', 'chls', 'chdlp', 'chds', 'chbh', 'chdl', 'choe', 'chst')
19
20 MARKERS = ('a','c','d','o','s','t','v','V','h','x','r','R','b','B','D','F')
21
22 TYPES = ('bvs', 'p3', 'qr', 'lc', 'p', 'bhg', 'pc', 's', 'r', 'bvg', 't', 'v', 'lxy', 'bhs', 'gom', 'ls')
23
24 IMGATTRS = ('title','alt','align','border','height','width','ismap','longdesc',
25 'usemap','id','class','style','lang','xml:lang','onclick','ondblclick','onmousedown',
26 'onmouseup','onmouseover','onmousemove','onmouseout','onkeypress','onkeydown','onkeyup')
27
28 GEO = ('africa','asia','europe','middle_east','south_america','usa','world')
29
30 TTAGSATTRS = ('label','title','color','line','grid','bar','marker','fill','legend','axes',
31 'encoding','scale','size','type','dataset','img','map','bar_width_spacing','legend_pos','output_encoding','level_data')
32
33 APIURL = 'http://chart.apis.google.com/chart?'
34
35 COLOR_MAP = {
36 'aliceblue': 'F0F8FF',
37 'antiquewhite': 'FAEBD7',
38 'aqua': '00FFFF',
39 'aquamarine': '7FFFD4',
40 'azure': 'F0FFFF',
41 'beige': 'F5F5DC',
42 'bisque': 'FFE4C4',
43 'black': '000000',
44 'blanchedalmond': 'FFEBCD',
45 'blue': '0000FF',
46 'blueviolet': '8A2BE2',
47 'brown': 'A52A2A',
48 'burlywood': 'DEB887',
49 'cadetblue': '5F9EA0',
50 'chartreuse': '7FFF00',
51 'chocolate': 'D2691E',
52 'coral': 'FF7F50',
53 'cornflowerblue': '6495ED',
54 'cornsilk': 'FFF8DC',
55 'crimson': 'DC143C',
56 'cyan': '00FFFF',
57 'darkblue': '00008B',
58 'darkcyan': '008B8B',
59 'darkgoldenrod': 'B8860B',
60 'darkgray': 'A9A9A9',
61 'darkgreen': '006400',
62 'darkkhaki': 'BDB76B',
63 'darkmagenta': '8B008B',
64 'darkolivegreen': '556B2F',
65 'darkorange': 'FF8C00',
66 'darkorchid': '9932CC',
67 'darkred': '8B0000',
68 'darksalmon': 'E9967A',
69 'darkseagreen': '8FBC8F',
70 'darkslateblue': '483D8B',
71 'darkslategray': '2F4F4F',
72 'darkturquoise': '00CED1',
73 'darkviolet': '9400D3',
74 'deeppink': 'FF1493',
75 'deepskyblue': '00BFFF',
76 'dimgray': '696969',
77 'dodgerblue': '1E90FF',
78 'firebrick': 'B22222',
79 'floralwhite': 'FFFAF0',
80 'forestgreen': '228B22',
81 'fuchsia': 'FF00FF',
82 'gainsboro': 'DCDCDC',
83 'ghostwhite': 'F8F8FF',
84 'gold': 'FFD700',
85 'goldenrod': 'DAA520',
86 'gray': '808080',
87 'green': '008000',
88 'greenyellow': 'ADFF2F',
89 'honeydew': 'F0FFF0',
90 'hotpink': 'FF69B4',
91 'indianred ': 'CD5C5C',
92 'indigo ': '4B0082',
93 'ivory': 'FFFFF0',
94 'khaki': 'F0E68C',
95 'lavender': 'E6E6FA',
96 'lavenderblush': 'FFF0F5',
97 'lawngreen': '7CFC00',
98 'lemonchiffon': 'FFFACD',
99 'lightblue': 'ADD8E6',
100 'lightcoral': 'F08080',
101 'lightcyan': 'E0FFFF',
102 'lightgoldenrodyellow': 'FAFAD2',
103 'lightgrey': 'D3D3D3',
104 'lightgreen': '90EE90',
105 'lightpink': 'FFB6C1',
106 'lightsalmon': 'FFA07A',
107 'lightseagreen': '20B2AA',
108 'lightskyblue': '87CEFA',
109 'lightslategray': '778899',
110 'lightsteelblue': 'B0C4DE',
111 'lightyellow': 'FFFFE0',
112 'lime': '00FF00',
113 'limegreen': '32CD32',
114 'linen': 'FAF0E6',
115 'magenta': 'FF00FF',
116 'maroon': '800000',
117 'mediumaquamarine': '66CDAA',
118 'mediumblue': '0000CD',
119 'mediumorchid': 'BA55D3',
120 'mediumpurple': '9370D8',
121 'mediumseagreen': '3CB371',
122 'mediumslateblue': '7B68EE',
123 'mediumspringgreen': '00FA9A',
124 'mediumturquoise': '48D1CC',
125 'mediumvioletred': 'C71585',
126 'midnightblue': '191970',
127 'mintcream': 'F5FFFA',
128 'mistyrose': 'FFE4E1',
129 'moccasin': 'FFE4B5',
130 'navajowhite': 'FFDEAD',
131 'navy': '000080',
132 'oldlace': 'FDF5E6',
133 'olive': '808000',
134 'olivedrab': '6B8E23',
135 'orange': 'FFA500',
136 'orangered': 'FF4500',
137 'orchid': 'DA70D6',
138 'palegoldenrod': 'EEE8AA',
139 'palegreen': '98FB98',
140 'paleturquoise': 'AFEEEE',
141 'palevioletred': 'D87093',
142 'papayawhip': 'FFEFD5',
143 'peachpuff': 'FFDAB9',
144 'peru': 'CD853F',
145 'pink': 'FFC0CB',
146 'plum': 'DDA0DD',
147 'powderblue': 'B0E0E6',
148 'purple': '800080',
149 'red': 'FF0000',
150 'rosybrown': 'BC8F8F',
151 'royalblue': '4169E1',
152 'saddlebrown': '8B4513',
153 'salmon': 'FA8072',
154 'sandybrown': 'F4A460',
155 'seagreen': '2E8B57',
156 'seashell': 'FFF5EE',
157 'sienna': 'A0522D',
158 'silver': 'C0C0C0',
159 'skyblue': '87CEEB',
160 'slateblue': '6A5ACD',
161 'slategray': '708090',
162 'snow': 'FFFAFA',
163 'springgreen': '00FF7F',
164 'steelblue': '4682B4',
165 'tan': 'D2B48C',
166 'teal': '008080',
167 'thistle': 'D8BFD8',
168 'tomato': 'FF6347',
169 'turquoise': '40E0D0',
170 'violet': 'EE82EE',
171 'wheat': 'F5DEB3',
172 'white': 'FFFFFF',
173 'whitesmoke': 'F5F5F5',
174 'yellow': 'FFFF00',
175 'yellowgreen': '9ACD32'
176 }
177 PIN_TYPES = ('pin_letter','pin_icon','xpin_letter','xpin_icon','spin')
178 PIN_ICONS = ('home', 'home', 'WC', 'WCfemale', 'WCmale', 'accomm', 'airport', 'baby', 'bar', 'bicycle', 'bus', 'cafe', 'camping', 'car', 'caution', 'cinema', 'computer', 'corporate', 'dollar', 'euro', 'fire', 'flag', 'floral', 'helicopter', 'home', 'info', 'landslide', 'legal', 'location', 'locomotive', 'medical', 'mobile', 'motorcycle', 'music', 'parking', 'pet', 'petrol', 'phone', 'picnic', 'postal', 'pound', 'repair', 'restaurant', 'sail', 'school', 'scissors', 'ship', 'shoppingbag', 'shoppingcart', 'ski', 'snack', 'snow', 'sport', 'swim', 'taxi', 'train', 'truck', 'wheelchair', 'yen')
179 PIN_SHAPES = ('pin','star','sleft','sright')
180 NOTE_TYPES = ('note_title','note','weather')
181 NOTE_IMAGES = ('arrow_d', 'balloon', 'pinned_c', 'sticky_y', 'taped_y', 'thought')
182 NOTE_WEATHERS = ('clear-night-moon', 'cloudy-heavy', 'cloudy-sunny', 'cloudy', 'rain', 'rainy-sunny', 'snow', 'snowflake', 'snowy-sunny', 'sunny-cloudy', 'sunny', 'thermometer-cold', 'thermometer-hot', 'thunder', 'windy')
183 BUBBLE_TYPES = ('icon_text_small','icon_text_big','icon_texts_big','texts_big')
184 BUBBLE_SICONS = ('WC', 'WCfemale', 'WCmale', 'accomm', 'airport', 'baby', 'bar', 'bicycle', 'bus', 'cafe', 'camping', 'car', 'caution', 'cinema', 'computer', 'corporate', 'dollar', 'euro', 'fire', 'flag', 'floral', 'helicopter', 'home', 'info', 'landslide', 'legal', 'location', 'locomotive', 'medical', 'mobile', 'motorcycle', 'music', 'parking', 'pet', 'petrol', 'phone', 'picnic', 'postal', 'pound', 'repair', 'restaurant', 'sail', 'school', 'scissors', 'ship', 'shoppingbag', 'shoppingcart', 'ski', 'snack', 'snow', 'sport', 'swim', 'taxi', 'train', 'truck', 'wheelchair', 'yen')
185 BUBBLE_LICONS = ('beer', 'bike', 'car', 'house', 'petrol', 'ski', 'snack')
186