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.
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 |
Filename, size takumi-0.1.8.tar.gz (8.5 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for takumi-0.1.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd302181188af3bf9d31e7695cdb3af06e9b534ff4fcfdf70abe1efd31dbb232 |
|
MD5 | a21b80216d7c8ade01caa785e76b66fa |
|
BLAKE2-256 | 6eae8c923b0eb5e06e9f51fe0b94e4430513c7346889ccd05f76b5f3f062a36f |