PyV8V8 的 Python 封装
PyV8 是 V8 引擎的 Python 语言封装,这是 Python 和 JavaScript 对象之间的桥,支持在 Python 脚本中调用 V8 引擎。
>>> import PyV8 >>> ctxt = PyV8.JSContext() # create a context with an implicit global object >>> ctxt.enter() # enter the context (also support with statement) >>> ctxt.eval("1+2") # evalute the javascript expression 3 # return a native python int >>> class Global(PyV8.JSClass): # define a compatible javascript class ... def hello(self): # define a method ... print "Hello World" ... >>> ctxt2 = PyV8.JSContext(Global()) # create another context with the global object >>> ctxt2.enter() >>> ctxt2.eval("hello()") # call the global object from javascript Hello World # the output from python script
评论
pyopencvOpenCV的Python封装
OpenCV的Python封装,主要特性包括:提供与OpenCV2.x中最新的C++接口极为相似的Python接口,并且包括C++中不包括的C接口提供对OpenCV2.x中所有主要部件的绑定:CxCO
pyopencvOpenCV的Python封装
0
DumboHadoop的Python封装
著名音乐站点Last.fm发布了基于Python的Dumbo(小飞象)项目,Dumbo能够帮助Python开发者更方便的编写Hadoop应用,并且Dumbo为MapReduce应用提供了灵活易用的Py
DumboHadoop的Python封装
0
python-nlpirNLPIR的Python封装
python-nlpir是NLPIR的一个python封装。NLPIR是目前运用最为广泛的中文分词工
python-nlpirNLPIR的Python封装
0
PyGraphvizGraphviz的Python封装
Graphviz适合编程快速绘制流程图之类的图形。而pygraphviz对graphviz进行了封装,提供python程序调用接口。网上有很多对graphiviz进行python封装的程序如pydot
PyGraphvizGraphviz的Python封装
0
botoAWS 的 Python 封装
Boto是一个Python包,提供了访问AmazonWeb服务的接口,目前支持:SimpleStorageService(S3)SimpleQueueService(SQS)ElasticComput
botoAWS 的 Python 封装
0