Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Files for serverless-thrift, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size serverless_thrift-1.3.0-py3-none-any.whl (10.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size serverless-thrift-1.3.0.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page