An implementation of Syndicated Actors for Python
Find a file
2024-05-24 09:36:13 +02:00
syndicate Handle Packet::Nop 2024-05-19 21:55:43 +02:00
.envrc Use python3 explicitly in .envrc 2024-05-06 12:29:36 +02:00
.gitignore Adjust .gitignore 2021-12-25 11:35:18 -05:00
bidi-gc.py Update for preserves changes 2024-02-08 12:11:11 +01:00
chat.bin Update for new Preserves 2023-10-31 22:42:52 +01:00
chat.prs Standalone chat protocol 2023-02-04 16:27:31 +01:00
chat.py Mirror linked task behaviour from other implementations: default to terminating facet on task end, and also terminate facet on task exception 2024-03-30 09:07:09 +01:00
chat.server-config.pr chat.server-config.pr 2023-03-06 23:24:10 +01:00
inf.py Fix inf.py 2022-01-07 16:04:45 +01:00
inf.server-config.pr Example config for inf.py 2023-11-10 17:04:45 +01:00
Makefile Support script for retrieving package version 2024-03-29 12:32:48 +01:00
print-package-version Support script for retrieving package version 2024-03-29 12:32:48 +01:00
pyproject.toml Bump version 2024-05-24 09:36:13 +02:00
README.md Update README 2024-03-29 12:40:36 +01:00

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
python -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'

See also syndicate-py-packaging for Debian packaging scripts.

Running

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

Find the line of broker output giving the root capability:

... rootcap=<ref {oid: "syndicate" sig: #x"69ca300c1dbfa08fba692102dd82311a"}> ...

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

python chat.py \
    --address '<tcp "localhost" 8001>' \
    --cap '<ref {oid: "syndicate" sig: #x"69ca300c1dbfa08fba692102dd82311a"}>'