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.2-py2.py3-none-any.whl (9.8 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size takumi-0.1.2.tar.gz (7.1 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for takumi-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83dab30b02c3872205326a666039f8b73e2c98d91a58382caf12b6f520322d00 |
|
MD5 | 317e52e77e7ed809bced240179e614fb |
|
BLAKE2-256 | 48bf1a230ab44637a26df1b859e10880dfc6552025cd86b7bfdf2e43767b7d5c |