baratine-0.9.0
توضیحات
Python client for Baratine
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | baratine-0.9.0 |
| نام | baratine |
| نسخه کتابخانه | 0.9.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nam Nguyen |
| ایمیل نویسنده | nam@caucho.com |
| آدرس صفحه اصلی | http://baratine.io/ |
| آدرس اینترنتی | https://pypi.org/project/baratine/ |
| مجوز | Apache, Version 2.0 |
baratine-py
============================
This is a Python client for `Baratine <http://baratine.io/>`_.
::
import baratine
# Python interface for your Baratine service
class CounterService:
def addAndGet(value):
pass
def incrementAndGet():
pass
def get():
pass
client = baratine.BaratineClient('http://127.0.0.1:8085/s/pod')
# create a proxy for the remote service
counter = client._lookup('/counter/123')._as(CounterService)
# now call your service using your API
# the library supports all the good python features like default args and named args
result = counter.addAndGet(2222)
print(result)
نحوه نصب
نصب پکیج whl baratine-0.9.0:
pip install baratine-0.9.0.whl
نصب پکیج tar.gz baratine-0.9.0:
pip install baratine-0.9.0.tar.gz