syndicate-py/README.md

33 lines
936 B
Markdown
Raw Permalink 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
2024-03-29 11:40:36 +00:00
python -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
See also
[syndicate-py-packaging](https://git.syndicate-lang.org/syndicate-lang/syndicate-py-packaging)
for Debian packaging scripts.
2021-05-12 13:43:54 +00:00
## 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"}>'