Microhackaton Service Discovery Py 0.0.7

microhackaton-service-discovery-py 0.0.7

Last updated:

0 purchases

microhackaton-service-discovery-py 0.0.7 Image
microhackaton-service-discovery-py 0.0.7 Images

Free

Languages

Categories

Add to Cart

Description:

microhackatonservicediscoverypy 0.0.7

Python library to interact with other microservices at http://microhackaton.github.io/2014/

Installation
You can get it from https://pypi.python.org/pypi/microhackaton-service-discovery-py
$ pip install microhackaton-service-discovery-py


Usage
from service_discovery import ServiceDiscovery

sd = ServiceDiscovery('/pl/pl/microhackaton', 'zookeeper.microhackathon.pl:2181')

How to register your service?
instance_id = sd.register('something-collector', '12.34.56.78', 8080)


How to find instances of other service?
urls_as_list = sd.get_instances('blog-collector')


How to find random service instance?
url_as_str = sd.get_instance('blog-collector')

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.