chirp-python

to discover services using chirp on the same network


License
MIT-feh
Install
pip install chirp-python==1.0.0

Documentation

=============

chirp-python

=============

to discover services using chirp on the same network

Installation

pip install chirp-python OR easy_install chirp-python

Example:

PREREQUISITES: running the example requires Flask web framework, install the Flask module before executing the example

  • execute the following commands

    • python example/chirpy.py chirper1 9001 &
    • python example/chirpy.py chirper2 9002 &
    • open http://localhost:9001/chirpers, you will see that chirper1 has discovered chirper2, the response should be as follows
        {
          "chirper2": {
              "config": {},
              "uri": "chirp.org",
              "protocol": "http",
              "name": "chirper2",
              "port": "9002"
          }
        }

  - Also if you, open [http://localhost:9002/chirpers](http://localhost:9002/chirpers), you will see that chirper2 has discovered chirper1, the response should be as follows

  ```json   
    {
        "chirper1": {
            "config": {},
            "uri": "chirp.org",
            "protocol": "http",
            "name": "chirper1",
            "port": "9001"
        }
    }