Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python client for Baratine

Project description

This is a Python client for Baratine.

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)

Project details


Release history Release notifications

This version
History Node

0.9.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
baratine-0.9.0-py3-none-any.whl (7.6 kB) Copy SHA256 hash SHA256 Wheel py3 Jul 18, 2015
baratine-0.9.0.tar.gz (4.7 kB) Copy SHA256 hash SHA256 Source None Jul 18, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page