Skip to main content

Takumi service framework

Project description

https://travis-ci.org/elemepi/takumi.svg?branch=master

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


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.6.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

takumi-0.1.6-py2.py3-none-any.whl (11.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file takumi-0.1.6.tar.gz.

File metadata

  • Download URL: takumi-0.1.6.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

Hashes for takumi-0.1.6.tar.gz
Algorithm Hash digest
SHA256 2b2d28ed0ca15eb8e39c9ea50b149b24588872c8dfcada74f44e9d7e363e5227
MD5 8632cac0109d089bfe121ff133458d57
BLAKE2b-256 0fbab75d31b86f6984b1307b2b9c2152830251e08cc6493b3ff941778be83691

See more details on using hashes here.

File details

Details for the file takumi-0.1.6-py2.py3-none-any.whl.

File metadata

  • Download URL: takumi-0.1.6-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

Hashes for takumi-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 06f53ed3e0151b1cd924b2f86f4f17d7e55489db390991a2b964477b3826d351
MD5 26a300d384aa359108375b72f25398b7
BLAKE2b-256 45a7e66b687c9eececaf909c33251168769f83de5930fa844a2eed20909833aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page