Http to thrift protocol conversion
Project description
Use http client to call thrift services.
Example
App config:
# app.yaml
app_name: http_app
port: 1991
app: http_app:app
thrift_file: ping.thrift
thrift_protocol_class: takumi_http.protocol.HttpProtocol
App code:
# http_app.py
from takumi import Takumi
app = Takumi('PingService')
@app.api
def ping():
return 'pong'
Start the service using takumi-cli.
$ takumi serve
Then open http://localhost:1991/ping in your brower.
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_http-0.1.3.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for takumi_http-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81aeb751eb70ee47188ac8933c1de59d37e08f8b1157987a414b1f9869acec7c |
|
MD5 | 4e5c2160cdbf2c3a89bd796c9de10bfa |
|
BLAKE2b-256 | 6bedde3cd149705c2a8c5dc7df765010418566532957bd8833230e4a0bd7c799 |