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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file serverless-thrift-1.3.0.tar.gz.

File metadata

  • Download URL: serverless-thrift-1.3.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for serverless-thrift-1.3.0.tar.gz
Algorithm Hash digest
SHA256 11e0c77f20dc23c615067265b23c4428b975fa5b6545477de2ef889ac29c56c4
MD5 fb385b3e0038908ef2a1aecbc302333f
BLAKE2b-256 bb80147c6d567e59a7f4cab399b214fbcda5053f75710f2d5b87b4054d201cdd

See more details on using hashes here.

File details

Details for the file serverless_thrift-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: serverless_thrift-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for serverless_thrift-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f570f7870ce455edb8a43ed2b5694c18e9116b80594754311dcabf66440373ed
MD5 7ba5fe7cdf0720523076399550a64922
BLAKE2b-256 66d4efcef38a31ebc695e97a74d7cc95481dd3d51b6cd1a4cb9ef4a40e413104

See more details on using hashes here.

Supported by

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