Skip to content

mardiros/python-synapse

This branch is 56 commits ahead of, 1 commit behind ggreg/python-synapse:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5cbac2c · May 29, 2018
May 25, 2018
Dec 14, 2011
Dec 9, 2011
May 25, 2018
Sep 26, 2011
Sep 3, 2010
Sep 9, 2010
Feb 22, 2012
Sep 9, 2010
Sep 21, 2011
May 25, 2018

Repository files navigation

README for python-synapse

Overview

Synapse is a simple Python module that provides a communication interface through nodes. It abstracts the underlying protocol. The configuration stores protocol specific data and a node is instanciated with the node.makeNode() factory.

The node is the unit of communication. Actor is built on top of Node to provide a distributed communication interface. When an actor joins the network it announces itself to a announce service. The announce is stored in the remote service and broadcast to all other nodes by a pub/sub queue.

Currently it supports Zeromq as the underlying protocol and JSON-RPC to encode and decode messages.

Read doc/quickstart for a practical introduction. As documentation in doc/ is in Sphinx format, type make in the directory to see how to build it in HTML or PDF.

Tests

launch all the tests:

$ python setup.py test

Test a specific feature:

  • Message

    $ python setup.py test -s synapse.tests.test_message

  • All Node features

    $ python setup.py test -s synapse.tests.test_node

  • Node implementations

    $ python setup.py test -s synapse.tests.test_redisnode $ python setup.py test -s synapse.tests.test_zmqnode

To test the code coverage
( you need nose, use last version from http://pypi.python.org/pypi/nose )
$ python setup.py nosetests

About

Python package for distributed communications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%