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.8.tar.gz
(8.5 kB
view details)
Built Distribution
File details
Details for the file takumi-0.1.8.tar.gz
.
File metadata
- Download URL: takumi-0.1.8.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.8.1 pkginfo/1.4.1 requests/2.13.0 setuptools/36.2.7 requests-toolbelt/0.7.1 clint/0.5.1 CPython/3.4.3 Darwin/16.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f33167591bc0a8f3ac231c34576720225d9845e6d58882e4bd516865f21a503e |
|
MD5 | 06b50dfdb83615ae21b8db75949c1312 |
|
BLAKE2b-256 | f497dc5183b5ff350a2a68dd64089d44812e9133a5d3acdf54bcbc8856ef20f7 |
File details
Details for the file takumi-0.1.8-py2.py3-none-any.whl
.
File metadata
- Download URL: takumi-0.1.8-py2.py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.8.1 pkginfo/1.4.1 requests/2.13.0 setuptools/36.2.7 requests-toolbelt/0.7.1 clint/0.5.1 CPython/3.4.3 Darwin/16.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd302181188af3bf9d31e7695cdb3af06e9b534ff4fcfdf70abe1efd31dbb232 |
|
MD5 | a21b80216d7c8ade01caa785e76b66fa |
|
BLAKE2b-256 | 6eae8c923b0eb5e06e9f51fe0b94e4430513c7346889ccd05f76b5f3f062a36f |