Skip to content

aea.protocols.generator.extract_specification

This module extracts a valid protocol specification into pythonic objects.

PythonicProtocolSpecification Objects

class PythonicProtocolSpecification()

This class represents a protocol specification in python.

__init__

def __init__() -> None

Instantiate a Pythonic protocol specification.

extract

def extract(
    protocol_specification: ProtocolSpecification
) -> PythonicProtocolSpecification

Converts a protocol specification into a Pythonic protocol specification.

Arguments:

  • protocol_specification: a protocol specification

Returns:

a Pythonic protocol specification