PK!C++pyhandsontable/__init__.pyfrom .app import generate_html, view_table PK![pyhandsontable/app.pyfrom jinja2 import Environment, PackageLoader from threading import Timer from tempfile import NamedTemporaryFile import os from IPython.display import IFrame env = Environment( loader=PackageLoader('pyhandsontable', 'templates') ) def generate_html(data, **kwargs): template = env.get_template('sheet.html') return template.render(data=data, **kwargs) def view_table(data, width=800, height=500, **kwargs): html_file = NamedTemporaryFile(delete=False) try: html_file.write(generate_html(data=data, width=width, height=height, **kwargs)) html_file.close() return IFrame(html_file, width=width, height=height) finally: Timer(5, os.unlink, args=[html_file]).start() PK!1>ĉ#pyhandsontable/templates/sheet.html {{ title }}
PK!H)ȉeVX$pyhandsontable-0.1.0.dist-info/WHEEL 1 0 нRn>Z(8_@ cfM6߅CUr$o­cbaP>PK!HO@!'pyhandsontable-0.1.0.dist-info/METADATATQO@ ~_ai/4"@c6`avw!D|MӤ>I|;%z/:U e` U8I#eiR+;gp^Y+5ggi\b%'7.Jvf=s"sRN?\OwcbZk38üw=:V%"eg{WK ktN$qeR2r4Y]ZlФTe˥'6^Yպk{F|_#|R]6Xi*I7ac6j d' #rƳC)_5֏XBwJOwE\JaZ})0ۜpvM&5bM=I {BL&h?& Y(IEOW!F7j$8>|nt4"YV~o;+d/]5譼`kkޡ-f tdÑ1x7GF/NO`&9y Wnm}ZvGa ε2,aX/̀ I[mNsvnգ$MґoX*ou!b" J:dnZYЂ#'¶w7 xN=LI ]%C }~(7 m  T`x+tq0PK!H.i #5%pyhandsontable-0.1.0.dist-info/RECORDͶB@}ςY܅rCbL񓙒:6}C65CGIRK8#I_\CƤ6?ˎqP :esIɨsўks9I=Zxm~hɷetYpg W-A 11fB*ոOŇ;]_I^uH PfwQVpxyQ(e|Qg8t,kgn>eOfh8㲊8%"ɾtv-_7u_ l@'0F[&Ǎ~PK!C++pyhandsontable/__init__.pyPK![cpyhandsontable/app.pyPK!1>ĉ#mpyhandsontable/templates/sheet.htmlPK!H)ȉeVX$ipyhandsontable-0.1.0.dist-info/WHEELPK!HO@!' pyhandsontable-0.1.0.dist-info/METADATAPK!H.i #5% pyhandsontable-0.1.0.dist-info/RECORDPK