Node Transport

RestNodeAdapter maps MFLib’s node operations (execute, upload/download files) onto a REST API, so MFLib/Core can talk to a measurement node over plain HTTP instead of requiring a live FABlib slice/SSH connection.

class mflib.node_transport.RestNodeAdapter(base_url: str, auth_token: str | None = None, timeout=300)

Bases: object

Minimal node adapter that maps MFLib node operations onto a REST API.

download_file(local_file_path, remote_file_path, retry=None)
execute(command, quiet=False)
get_management_ip()
get_name()
get_username()
upload_directory(local_directory_path, remote_directory_path)
upload_file(local_file_path, remote_file_path)