Takumi service framework
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
takumi-0.1.5.tar.gz
(8.4 kB
view hashes)
Built Distribution
takumi-0.1.5-py2.py3-none-any.whl
(11.3 kB
view hashes)
Close
Hashes for takumi-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5b924655242a4fb8263ba06ad653ba7610c533f93aae14577c75f615929af8a |
|
MD5 | b98e59076e3eae203ac35fa234504515 |
|
BLAKE2b-256 | 57ec1e10dac5bfbd80021fef82ec3102ef33bf565dee379de1097dd9853c41d8 |