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

Takumi service framework

Project description

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

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 takumi, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size takumi-0.1.8-py2.py3-none-any.whl (11.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size takumi-0.1.8.tar.gz (8.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page