Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
channels
tests
README.md
__init__.py
clientserver.py
connection.py
connection_itc.py
connection_tcp.py
context.py
core.py
events.py
misc.py

README.md

Yoton is a Python package that provides a simple interface to communicate between two or more processes.

Yoton is ...

  • lightweight
  • written in pure Python
  • without dependencies (except Python)
  • available on Python version >= 2.4, including Python 3
  • cross-platform
  • pretty fast

Read the docs!

Visual example

See the prezi.

yoton example

Code example

On one end:


import yoton

# Create one context and a pub channel
ct1 = yoton.Context()
pub = yoton.PubChannel(ct1, 'chat')

# Connect
ct1.bind('publichost:test')

# Send
pub.send('hello world')

On the other end:


import yoton

# Create another context and a sub channel
ct2 = yoton.Context()
sub = yoton.SubChannel(ct2, 'chat')

# Connect
ct2.connect('publichost:test')

# Receive
print(sub.recv())