syndicate-py/README.md

29 lines
816 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:
2023-02-10 11:16:23 +00:00
... rootcap=<ref {oid: "syndicate" sig: #x"69ca300c1dbfa08fba692102dd82311a"}> ...
2021-08-19 18:39:43 +00:00
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 \
2021-08-19 21:27:42 +00:00
--address '<tcp "localhost" 8001>' \
2023-02-10 11:16:23 +00:00
--cap '<ref {oid: "syndicate" sig: #x"69ca300c1dbfa08fba692102dd82311a"}>'