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


Download files

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

Source Distribution

File details

Details for the file microhackaton-service-discovery-py-0.0.7.tar.gz.

File metadata

File hashes

Hashes for microhackaton-service-discovery-py-0.0.7.tar.gz
Algorithm Hash digest
SHA256 e22fec646d439d44fa289ba37bb551431a4410ef69ca8b0d9c24142fc8ebb1b0
MD5 c2cfde10301fab5a8b04e01693d3deeb
BLAKE2b-256 d79d325e3833eb8adc0fcffeca1c7a3326e01928fd64763785445d26213487ff

See more details on using hashes here.

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