Wormhole API

magic-wormhole · integration, public-api, async-api, rendezvous, transfer, dilation

Public async API class orchestrating mailbox rendezvous, transfer, and dilation.

# Source: https://github.com/magic-wormhole/magic-wormhole | License: MIT | Copyright 2015 Brian Warner
# Provided via justclaw.it.com; keep this notice with the code.
import os
import sys

from attr import attrib, attrs
from twisted.python import failure, log
from twisted.internet.task import Cooperator
from zope.interface import implementer

from ._boss import Boss
from ._dilation.manager import DILATION_VERSIONS
from ._dilation.connector import Connector
from ._interfaces import IDeferredWormhole, IWormhole
from ._key import derive_key
from .errors import NoKeyError, WormholeClosed
from .eventual import EventualQueue
from .journal import ImmediateJournal
from .observer import OneShotObserver, SequenceObserver
from .timing import DebugTiming
from .util import bytes_to_hexstr, to_bytes
fr

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key