syndicate-py/README.md

29 lines
782 B
Markdown
Raw Normal View History

2021-08-19 18:39:43 +00:00
# syndicate-py
2021-05-12 13:43:54 +00:00
2021-08-19 18:39:43 +00:00
This is a Python implementation of Syndicated Actors and the Syndicate network protocol.
2021-05-12 13:43:54 +00:00
2021-08-19 18:39:43 +00:00
pip install syndicate-py
2021-05-12 13:43:54 +00:00
or
2021-08-19 18:39:43 +00:00
git clone https://git.syndicate-lang.org/syndicate-lang/syndicate-py
cd syndicate-py
2021-05-12 13:43:54 +00:00
virtualenv -p python3 pyenv
. pyenv/bin/activate
pip install -r requirements.txt
## Running
Start a Syndicate broker (such as
[this one](https://git.syndicate-lang.org/syndicate-rs)) in one window.
2021-08-19 18:39:43 +00:00
Find the line of broker output giving the root capability:
... rootcap=<ref "syndicate" [] #x"a6480df5306611ddd0d3882b546e1977"> ...
2021-05-12 13:45:05 +00:00
Then, run [chat.py](chat.py) several times in several separate windows:
2021-05-12 13:43:54 +00:00
2021-08-19 18:39:43 +00:00
python chat.py \
'<tcp "localhost" 8001>' \
'<ref "syndicate" [] #x"a6480df5306611ddd0d3882b546e1977">'