Metadata-Version: 1.1
Name: microhackaton-service-discovery-py
Version: 0.0.2
Summary: A python package that works to provide service registration and discovery for http://microhackaton.github.io/2014/
Home-page: https://github.com/microhackaton/service-discovery-py
Author: Kamil Chmielewski
Author-email: kamil.chm@gmail.com
License: ASL 2.0
Description: service-discovery-py
        ====================
        
        Python library to interact with other miocroservices at http://microhackaton.github.io/2014/
        
        Installation
        ++++++++++++
        
        ```bash
        $ pip install microhackaton-service-discovery-py
        ```
        
        Usage
        +++++
        
        ```python
        from service_discovery import ServiceDiscovery
        
        sd = ServiceDiscovery('/pl/pl/microhackaton', 'zookeeper.microhackathon.pl:2181')
        ```
        
        How to register your service?
        -----------------------------
        
        ```python
        instance_id = sd.register('something-collector', '12.34.56.78', 8080)
        ```
        
        How to find instances of other service?
        ---------------------------------------
        
        ```python
        urls_as_list = sd.get_instances('blog-collector')
        ```
        
        How to find random service instance?
        -------------------------------------
        
        ```python
        url_as_str = sd.get_instances('blog-collector')
        ```
        
Keywords: kazoo service discovery zookeeper
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 2.7
