Thrift serverless library for Python
This package provides an implementation of a Thrift client and server over serverless functions
for Python
Installation
From your project directory:
pip install serverless-thrift
Getting started (AWS Lambda)
Simply use the createLambdaServer
function to wrap your Thrift handler:
from serverless_thrift.server.TLambdaServer import TLambdaServer
from calulator_handler import CalculatorHandler
handler = CalculatorHandler()
processor = Calculator.Processor(handler)
server = TLambdaServer(processor)
A full example is located under the example directory