An implementation of Syndicated Actors for Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Tony Garnock-Jones a7b5c69000 Version 0.8.5 4 weeks ago
syndicate Merge latest changes from the syndicate-protocols repository 6 months ago
.envrc Repair packaging 7 months ago
.gitignore Adjust .gitignore 8 months ago
Makefile pull-protocols target 9 months ago
README.md Use argparse 1 year ago
bidi-gc.py Use thread-local storage instead of an explicit turn argument 8 months ago
chat.py Use thread-local storage instead of an explicit turn argument 8 months ago
inf.py Fix inf.py 7 months ago
requirements.txt Clean up for publication 3 years ago
setup.py Version 0.8.5 4 weeks ago

README.md

syndicate-py

This is a Python implementation of Syndicated Actors and the Syndicate network protocol.

pip install syndicate-py

or

git clone https://git.syndicate-lang.org/syndicate-lang/syndicate-py
cd syndicate-py
virtualenv -p python3 pyenv
. pyenv/bin/activate
pip install -r requirements.txt

Running

Start a Syndicate broker (such as this one) in one window.

Find the line of broker output giving the root capability:

... rootcap=<ref "syndicate" [] #x"a6480df5306611ddd0d3882b546e1977"> ...

Then, run chat.py several times in several separate windows:

python chat.py \
    --address '<tcp "localhost" 8001>' \
    --cap '<ref "syndicate" [] #x"a6480df5306611ddd0d3882b546e1977">'