Skip to main content

Run Thrift server and client on serverless functions

Project description

Thrift serverless library for Python

Build Status PypiVersions semantic-release

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

serverless-thrift-1.3.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

serverless_thrift-1.3.0-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page