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.7.tar.gz
(8.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file takumi-0.1.7.tar.gz.
File metadata
- Download URL: takumi-0.1.7.tar.gz
- Upload date:
- Size: 8.4 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 |
ab1c2e14ff269334d3a669d6fb3025b0860b925e18ad6c86b8e3dd65bdf1c78f
|
|
| MD5 |
b95f3e4f436c2f3020f0c5246f555462
|
|
| BLAKE2b-256 |
4a36ff8833713c0e1b2ff0ef0566441bc6a5f22435cfbbb638950d16b0ffe1a7
|
File details
Details for the file takumi-0.1.7-py2.py3-none-any.whl.
File metadata
- Download URL: takumi-0.1.7-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 |
bd1cec5fd2ac69f5175db4b52eea78b299f08150f766b11e44b7e28613425fe2
|
|
| MD5 |
1b50322a5aadd4982a5fbedd85e324e6
|
|
| BLAKE2b-256 |
0213de8ec02603230cfc3d249ce8ca07174a80a8a0c13794cd90692f1a42d97e
|