Skip to main content

A python package that works to provide service registration and discovery for http://microhackaton.github.io/2014/

Project description

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')

Project details


Release history Release notifications

This version
History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

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
microhackaton-service-discovery-py-0.0.7.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None Aug 9, 2014

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