News for hackers. Stuff that matters.
Re:Show HN: A pure Python implemention of Apache Thrift by _wmd on Wednesday June 04, 2014 @07:10AM (#7844919)
Great to see some competition to the official (and slightly unloved) implementation, especially since you're working on accelerated binary protocol, which the official implementation lacks (at least last I checked!). One thing I'd suggest, though:

> Can import thrift file as normal py modules. The sdk code is generated on the fly.

This kind of thing immediately puts me off using the module. Messing with process-global state just for the sake of convenience really isn't worth the risk, if your intention is to develop serious software, where lives and livelihoods might at some point depend on its reliability. As "import this" puts it, "special cases aren't special enough to break the rules."

Would rather see the module import hook stuff removed, or at least easily disabled. (e.g. have you tried to see how it works in combination with something like py2exe? I suspect it will break)

Re:Show HN: A pure Python implemention of Apache Thrift by lxyu on Wednesday June 04, 2014 @08:35AM (#7845173)
I just updated the code, now the magic import hook is disabled by default, and can be install/remove by func.
Re:Show HN: A pure Python implemention of Apache Thrift by dvirsky on Wednesday June 04, 2014 @01:59PM (#7847083)
Thrift does have an accelerated binary protocol for Python, written in C and wrapped as a python module.
Re:Show HN: A pure Python implemention of Apache Thrift by jobeirne on Wednesday June 04, 2014 @09:50AM (#7845495)
The support for Python3 here is killer; Thrift amazingly has yet to merge a number of patches that would enable py3 support despite many requests.
Re:Show HN: A pure Python implemention of Apache Thrift by jupake on Wednesday June 04, 2014 @09:38AM (#7845432)
I like the fact that its pure python. This makes it perfect for use on PyPy or Jython. +1
Re:Show HN: A pure Python implemention of Apache Thrift by state_machine on Wednesday June 04, 2014 @10:02AM (#7845567)
This doesn't appear to support TCompactProtocol, which in the official Python implementation uses a different byte-order on the wire than the official implementation in every other language.

https://issues.apache.org/jira/browse/THRIFT-1639

Re:Show HN: A pure Python implemention of Apache Thrift by lxyu on Wednesday June 04, 2014 @11:02AM (#7845923)
Yes, currently only binary protocol was implemented.
Re:Show HN: A pure Python implemention of Apache Thrift by dvirsky on Wednesday June 04, 2014 @02:01PM (#7847100)
Interesting. There is a similar project for Go with an alternative compiler and implementation: https://github.com/samuel/go-thrift

Last I checked, the state of the default thrift Go bindings was very lacking, so I'm using this library instead.

Re:Show HN: A pure Python implemention of Apache Thrift by e12e on Wednesday June 04, 2014 @12:02PM (#7846351)
No support for SSL/TLS transport? Or am I just not finding it in the sources? :-/