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__

 | __init__() -> None

Instantiate a Pythonic protocol specification.

Returns:

None

extract

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