Mentions légales du service

Skip to content

Revise some front-end aspects of network endpoints

ANDREY Paul requested to merge revise-network-api into main

This MR implements a number of small revisions to the network endpoints API and related tools implemented under declearn.communications. It mainly focuses on improving the code and tools' readability and usability by developers and end-users, changing a few front-end elements without altering the backend code and logic.

Summary of the changes implemented by this MR:

  • Rename Client and Server to NetworkClient and NetworkServer.
  • Add access_types_mapping util to access registered type mappings.
  • Add declearn.communication.list_available_protocols.
  • Make gRPC and websockets network communication backends optional.
  • Auto-generate dataclasses that interface network-endpoints-building functions to ease maintenance.
  • Add TOML-parsing to the network endpoints' build-config dataclasses.

This revision was done as part of the polishing effort towards the public release of declearn v2.0.

Merge request reports