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)ȉeV X $ pyhandsontable-0.1.0.dist-info/WHEEL
1
0нRn>Z(8_@
cfM6߅CUr$ocbaP>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*I7ac6jd' #rƳC)_5֏XBwJOwE\J aZ})0ۜpvM&5bM=I{BL&h?&
Y(IEOW!F7j$8>|nt4"YV~o;+d/]5譼`kkޡ-f tdÑ1x7GF/NO`&9yWnm}ZvGaε2,aX/̀
I[mNsvnգ$MґoX*ou!b" J:dnZYЂ#'¶w7xN=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ɷetYpgW-A11fB*ոOŇ;]_I^uH
PfwQVp xyQ (e|Qg8t,kgn>eOfh8㲊8%"ɾtv-_7u_l@'0F[&Ǎ~PK ! C+ + pyhandsontable/__init__.pyPK ! [ c pyhandsontable/app.pyPK ! 1>ĉ # m pyhandsontable/templates/sheet.htmlPK !H)ȉeV X $ i pyhandsontable-0.1.0.dist-info/WHEELPK !HO@ ! ' pyhandsontable-0.1.0.dist-info/METADATAPK !H.i #5 % pyhandsontable-0.1.0.dist-info/RECORDPK