Thrifty is a Python-based generator for Apache Thrift source files. It currently is a work-in-progress, has very few functional features no matter what the documentation says, and is primarily available only to encourage further hacking after a weekend of frustration with the C++-based compiler.
You can get Thrifty via git
:
git clone git://github.com/euphoria/thrifty
And install it via:
python setup.py install
Thrifty can also be easily installed from PyPI using easy_install
:
easy_install -U Thrifty
thriftyc
, the command-line compiler, is invoked using similar commands as
the original Apache Thrift compiler.
An example generating Python and C# output from the Thrift tutorial:
thriftyc --gen python --gen csharp tutorial.thrift
- Works with Python 2.3 or above on virtually any OS
- Extensible plugin architecture
- Program in a language not yet suported by Thrifty? Adding a new generator can be done in as little as 50 lines of code! ... we hope.
- Includes Pygments lexer for source code highlighting
Thrifty is licensed under the Apache Software License, which is
distributed with the source in the LICENSE.txt
file.