Skip to main content

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


Download files

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

Source Distribution

baratine-0.9.0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

baratine-0.9.0-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page