Metadata-Version: 2.0
Name: baratine
Version: 0.9.0
Summary: Python client for Baratine
Home-page: http://baratine.io/
Author: Nam Nguyen
Author-email: nam@caucho.com
License: Apache, Version 2.0
Keywords: baratine client
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Requires-Dist: requests

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)


