- 浏览: 96083 次
- 性别:
- 来自: HK
文章分类
最新评论
-
Mr.小裤裤:
谢谢,
我生日过的很快乐,
o(∩_∩)o...
system badimageformatexception and its partial solution
都知道py虽然方便但是却有个不是问题的问题:就是发布时的二进制格式的限制。
常用的打包有cx_freeze, py2exe等。此类工具大多将py变为pyc然后放置在.zip文档中。对于某些加密的需求可能不大合适..
于是这时候cy就可以派上用场了。
cy的其中一个功能就是把寻常的py代码变为c wrapper py c api的形式的调用。最后变为.pyd (一个标准的.dll or .so)
理论上可以把所有的py代码都可以封装为.pyd的形式,这样对于某些需要使用
加密狗之类的需求,或许会是个解决方案。
最近pypy进展飞快,我看再有个3年,直接用py来写高性能的计算不是不可能的事情。在此之前,我还是只能用cy。
update:
初步试验过,可以结合cython, cx_freeze把py code变成一堆.pyd文件以及.exe文件,我成功把一个查询的应用变为一个独立的应用。这个有助于打消一些人的疑虑“py 只能部署源码,不能放可执行档等等”
虽然这个方法也就是好看而已。
发表评论
-
static building lxml
2014-08-13 19:15 758well it is not really straig ... -
build pyrun/python from source
2014-08-01 19:39 539quite easy on ubuntu. 1: ... -
build apsw manually
2014-01-06 01:22 507download sqlite sources and co ... -
python, vs 2010 & manifest problem
2013-11-02 13:33 587It looks like python com ... -
numpy 1.7.0 fails with cx_freeze 4.3.1
2013-02-24 16:13 825It is a work around: find ... -
build psycopg2 on windows with mingw64
2013-01-03 20:36 932caution: version match problem. ... -
Determining if a point lies on the interior of a polygon
2012-09-25 02:23 653link: http://paulbourke.net/geo ... -
pypy的一个测试
2012-06-09 16:15 1574pypy-1.9 昨天已经发布,据称性能又有所提高。 ... -
a naive way to use dictcursor of psycopg2 with twisted adbapi
2012-05-03 03:14 1119make a new file called fakedb.p ... -
build psycopg2 on windows with vs
2012-05-02 02:16 832prerequisites: 1: postgresq ... -
twisted iocp reactor is still buggy---it was fixed on 23/10/2012
2012-03-19 14:53 1209I reported a bug on last wee ... -
One way to speed up Pb invoke.
2012-03-14 21:31 810Pb (stands for Perspecti ... -
change buffer size in order to send chunks data in ampoule
2011-12-03 16:08 762ampoule use name pipe to commun ... -
which one is thread safe?
2011-09-21 12:31 875quote: It's not so much tha ... -
instructions for installing some python's pkgs on ubuntu
2011-07-23 00:54 755make sure python-dev, gcc and o ... -
a tedious way to build the latest pytables
2011-07-17 03:33 688pyTables is a great product. It ... -
再谈twisted
2011-06-29 17:03 1399现在我手头用的是11.0。 很好。没什么很大的问题,原来的版本 ... -
cython的效果
2011-06-29 00:29 769我有个用py写的 crc-ccitt的验证程序(实现效率并不高 ... -
the simplest way to use vs 2010 with python
2011-06-03 15:48 636edit py/Lib/distutils/msvc9comp ... -
speeding up python
2011-06-03 15:36 842python确实是十分慢的语 ...
相关推荐
[Packt Publishing] Cython 编程学习教程 (英文版) [Packt Publishing] Learning Cython Programming (E-Book) ☆ 图书概要:☆ Expand your existing legacy applications in C using Python Overview Extend ...
It’s possible with Cython, the compiler and hybrid programming language used by foundational packages such as NumPy, and prominent in projects including Pandas, h5py, and scikits-learn. In this ...
参考Cython官方文档编写而来的一个Cython封装C++的示例demo,可入门学习。
Cython: A Guide for Python Programmers covers all you need to know about the eponymous creole programming language and Python-to-C compiler. If you have heard of Cython and want to find out more, or ...
Cython封装Callback函数文章 示例 http://blog.csdn.net/i2cbus/article/details/18415333
此为适用于linux系统python3.6的cython安装包,版本为0.29
Learning Cython Programming
cython_bbox-0.1.3 未修改pip源码
python库。 资源全名:Cython-0.29.3.tar.gz
Python第三方包 Cython
通常,在 Python 中写循环(特别是多重循环)非常的慢,在文章 //www.jb51.net/article/133807.htm中,我们的元胞自动机的状态更新函数 update_state 使用了两重循环,所以我们尝试用 Cython 重构该方法。...
Cython-0.29.30-py3-none-any.whl
OrderedDict的Cython实现
详细介绍了Cython文件在window与linux下的编译,以实际例子说明。
Cython是一个编程语言,它通过类似Python的语法来编写C扩展并可以被Python调用.既具备了Python快速开发的特点,又可以让代码运行起来像C一样快,同时还可以方便地调用C library。译出最终的Python可调用的模块。
《Cython入门》 示例 http://blog.csdn.net/i2cbus/article/details/18181637
由python、C、Cython实现的二叉树树源码。树是一种重要的非线性数据结构,直观地看,它是数据元素(在树中称为结点)按分支关系组织起来的结构,很象自然界中的树那样。树结构在客观世界中广泛存在,如人类社会的...
Cython-0.23.3.tar.gz : Cython-0.23.3安装包
最近的MOT杀出了一匹黑马[FairMOT]...但是找了一天都没解决,甚至还重装了vs2015,我也不知道有没有用,后来终于发现了这个,分分钟给弄好了,哎心累~ 这里分享给大家一起看看,其实挺简单的。