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

Uploaded Source

Built Distribution

takumi-0.1.3-py2.py3-none-any.whl (10.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: takumi-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for takumi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 65695451a760c2a6a19c5bcdddf0bba41fbb45471a21b4f62ba31a4eb7276a37
MD5 201a4ef1bcfa84b03e596317ab71f152
BLAKE2b-256 e79dc8607c85a35b1de917389f69d5bd382372c95cdfc4a61bd91cde83f4c722

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for takumi-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a67a7c73c63258e7c21bfe2da6897d381bff44e0e2f4397e3f26695947e75605
MD5 a22aa04268821c7c484b47c3ae3de6dd
BLAKE2b-256 eca0a69b6e02d156713d744868bf1af79dc97b5a896c733db99466ca5009d8da

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