开发者

Does a Python implementation of, or interface to, UCL exist?

开发者 https://www.devze.com 2023-03-25 20:07 出处:网络
UCL can be found here: http://www.oberhumer.com/opensource/ucl/ I am wondering if there is a Python implementation of this library or,开发者_运维百科 at minimum, a simple interface (via SWIG, or eve

UCL can be found here: http://www.oberhumer.com/opensource/ucl/

I am wondering if there is a Python implementation of this library or,开发者_运维百科 at minimum, a simple interface (via SWIG, or even ctypes) exists?

The only evidence I could find of such an implementation led me here: https://build.opensuse.org/package/show?package=python-ucl-common&project=home%3Asjcundy%3AAccessGrid

Which when you try to download the package, you receive an error page.


Maybe this answer is a little late, but I've just done a simple implementation using cffi (https://bitbucket.org/cffi/cffi).

You can find it at https://github.com/jap/pyucl (only tested on Linux)


Many compression algorithms are available for Python, in zlib, bz2, zipfile, and externally, for example lzo (on the same web site as UCL).

If you really need UCL, try cTypesGen, which should automatically be able to provide you a Python interface to it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号