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.2.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for takumi_http-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc00596c808d10ecd08a614f464541678a8ec64e1092c4483b8e0f258a1e78ad |
|
MD5 | 1d5a8cf2d84481afc133bbd8d5c44fa6 |
|
BLAKE2b-256 | 82942bf0a374c59c2574713fb85fb1faa9153a076ea85853c3aef37ffbadfa0a |