Skip to main content

Multi-party peer-to-peer rooms for terminals, agents, and scripts

Project description

Skyffla Python Wrapper

Multi-party peer-to-peer rooms for terminals, agents, and scripts.

Use this package to join and automate installed skyffla rooms from Python.

pip install skyffla installs the Python wrapper only. Install the skyffla binary separately first.

1. Install the skyffla binary

Add the Homebrew tap once:

brew tap skyffla/skyffla

Install the CLI:

brew install skyffla

Check that the binary is available:

skyffla --version

If you want source code, release notes, or other install paths, see the Skyffla repository on GitHub.

2. Install the Python wrapper

python -m pip install skyffla

The wrapper expects a skyffla binary in PATH. Override it with SKYFFLA_BIN or the binary= argument when starting a room.

3. Small example

Save this as example.py. Start host in one terminal, then start join in another.

import asyncio
import sys

from skyffla import Room


async def main(role: str) -> None:
    opener = Room.host if role == "host" else Room.join

    async with await opener("warehouse", name=role) as room:
        await room.wait_for_welcome()
        if role == "host":
            await room.wait_for_member_joined(name="join")
            await room.send_chat("all", "hello from python")
            print(await room.wait_for_chat(from_name="join"))
        else:
            await room.wait_for_member_snapshot(min_members=2)
            print(await room.wait_for_chat(from_name="host"))
            await room.send_chat("all", "hello from join")


asyncio.run(main(sys.argv[1]))
python example.py host
python example.py join

Version checks

Versioning is split across two layers:

  • machine protocol compatibility follows the versioning policy and machine protocol reference: the wrapper requires the same machine protocol major version and tolerates additive minor changes
  • release pairing is stricter for published packages: by default, the wrapper also checks that the spawned skyffla binary has the exact same release version as the Python package

Set SKYFFLA_SKIP_VERSION_CHECK=1 only if you intentionally want to run the wrapper against a different skyffla release. This skips the package-to-binary release match, but machine protocol compatibility is still enforced.

More examples

Runnable example apps live under examples/python in the GitHub repository:

Tests

From a repository checkout:

cd wrappers/python
uv run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skyffla-2.1.1.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skyffla-2.1.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file skyffla-2.1.1.tar.gz.

File metadata

  • Download URL: skyffla-2.1.1.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for skyffla-2.1.1.tar.gz
Algorithm Hash digest
SHA256 ced93bfdd02da06c55b0458c72c3163ce9bba74600b54f2529f546b3e4c3660c
MD5 a3a1a56482e7493fa97e10e892fb71fb
BLAKE2b-256 a6ad55adaf479933f3202287916c6932bab253a505e275bd950ffcea78855a7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for skyffla-2.1.1.tar.gz:

Publisher: python-package.yml on skyffla/skyffla

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skyffla-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: skyffla-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for skyffla-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05ce81a2c7dce98aa4a1de5a29a33e9b957f8998e8cfb0520659dacf03ec9c93
MD5 99f72df38d56d86dca16914d4f418e6d
BLAKE2b-256 6d2d0671093e779a0459ab99ea40f01e62777d53881a6cd299107037b25c47d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for skyffla-2.1.1-py3-none-any.whl:

Publisher: python-package.yml on skyffla/skyffla

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page