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_instances('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

microhackaton-service-discovery-py-0.0.5.tar.gz (2.9 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for microhackaton-service-discovery-py-0.0.5.tar.gz
Algorithm Hash digest
SHA256 0c78154704618e29f453b42b78634461c919fc30dfbf05081d8897ba67a033e3
MD5 2a4b00d434cf1a93c8776d0903f5badf
BLAKE2b-256 4d04b2f37727e561d043e381f4b5eed7d06391d0ecf8232a2e052fd79f1a0455

See more details on using hashes here.

Supported by

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