Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

avro-service-clients

Project Description

Avro Service Clients Library
============================

Quick start example:

Create an Avro file and compile it into a schema:

protocol FooService {
string my_function(string my_arg);
}

Wire that up into an Avro IPC responder (e.g. https://github.com/packagelib/flask-avro)


Dump the schema into `/path/to/avro/schema/files/foo.avpr`


Set environment variables:

AVRO_SERVICE_CLIENTS_LOCAL_REGISTRY_PATH=/path/to/avro/schema/files
AVRO_SERVICE_CLIENTS_FOO_HOST=localhost
AVRO_SERVICE_CLIENTS_FOO_PORT=8080
AVRO_SERVICE_CLIENTS_FOO_PATH=/my/service/endpoint

Then use the library to make a client:

import avro_service_clients

client = avro_service_clients.get_client("foo")
client.my_function(my_arg="bar")

-------------------------------------------------------------------------------
0.0.4
-------------------------------------------------------------------------------
- Change version file setup.
-------------------------------------------------------------------------------
0.0.3
-------------------------------------------------------------------------------
- Initial public version.
-------------------------------------------------------------------------------

Release history Release notifications

This version
History Node

0.0.4

History Node

0.0.3

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
avro-service-clients-0.0.4.tar.gz (6.9 kB) Copy SHA256 hash SHA256 Source None Apr 5, 2016

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