Skip to content

pombredanne/thrifty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thrifty README

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

Usage

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

Features

  • 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

License

Thrifty is licensed under the Apache Software License, which is distributed with the source in the LICENSE.txt file.

About

Thrifty is a Python-based parser generator for Apache Thrift source

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.1%
  • Thrift 19.1%
  • Makefile 1.8%