takumi

Takumi service framework


License
MIT
Install
pip install takumi==0.1.8

Documentation

Takumi: Thrift service framework

https://travis-ci.org/elemepi/takumi.svg?branch=master

This package defines the interfaces for writing Takumi thrift services.

Install

pip install takumi

Example

To define a simple app:

# app.py
from takumi import Takumi

app = Takumi('TestService')

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

To Run the app, install takumi-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:

$ takumi serve