Skip to main content

An elegant thrift service development framework

Project description

https://travis-ci.org/maralla/folklore.svg?branch=master

This package defines the interfaces for writing Folklore thrift services.

Install

pip install folklore

Example

To define a simple app:

# app.py
from folklore import Folklore

app = Folklore('TestService')

@app.api
def say_hello(name):
    return 'Hello ' + name

To Run the app, install folklore-cli first, then create the following config:

# ping.thrift
service TestService {
    string say_hello(1: required string name)
}
# app.yaml
app_name: test_app
app: app:app
thrift_file: ping.thrift

Run the following command:

$ folklore serve

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

folklore-0.2.0-py2.py3-none-any.whl (11.2 kB view hashes)

Uploaded Python 2 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