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.6.tar.gz
(8.4 kB
view hashes)
Built Distribution
takumi-0.1.6-py2.py3-none-any.whl
(11.4 kB
view hashes)
Close
Hashes for takumi-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06f53ed3e0151b1cd924b2f86f4f17d7e55489db390991a2b964477b3826d351 |
|
MD5 | 26a300d384aa359108375b72f25398b7 |
|
BLAKE2b-256 | 45a7e66b687c9eececaf909c33251168769f83de5930fa844a2eed20909833aa |