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.4.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file takumi-0.1.4.tar.gz
.
File metadata
- Download URL: takumi-0.1.4.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5ac9e0a0ed6d2ca280554d27919133c7ee3f11801854d8ab58fff17f2b08aefc
|
|
MD5 |
8c2b009d954fdc476362f5ed88eaa165
|
|
BLAKE2b-256 |
109d7327cf7e12179de9098824d2dd3d24519936191b96f688a6085a43557ae9
|
File details
Details for the file takumi-0.1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: takumi-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0ca54d30d0e7559c55871ca7ad139b184106fca5a83505b45258f795993547ec
|
|
MD5 |
c54c6a92951bebdcf166247d2d304231
|
|
BLAKE2b-256 |
2060731506392340466820ae29c7ec9b681fb0541529e1fa5f40670ea9174fe9
|