An implementation of Syndicated Actors for Python
Go to file
Tony Garnock-Jones 78eef4c388 Version 0.8.2 2022-01-12 11:05:41 +01:00
syndicate Experimental pattern (quasi)quoting 2022-01-12 11:05:25 +01:00
.envrc Repair packaging 2022-01-11 20:19:18 +01:00
.gitignore Adjust .gitignore 2021-12-25 11:35:18 -05:00
Makefile pull-protocols target 2021-11-30 18:45:49 +01:00
README.md Use argparse 2021-08-19 17:27:42 -04:00
bidi-gc.py Use thread-local storage instead of an explicit turn argument 2021-12-25 16:59:21 -05:00
chat.py Use thread-local storage instead of an explicit turn argument 2021-12-25 16:59:21 -05:00
inf.py Fix inf.py 2022-01-07 16:04:45 +01:00
requirements.txt Clean up for publication 2019-06-23 13:17:47 +01:00
setup.py Version 0.8.2 2022-01-12 11:05:41 +01:00

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">'