Helpers#

pyaseba.client.find_serial_targets(name: str) list[str]#

Scans for Dashel serial targets that contains a given name.

Parameters:

name – The name

Returns:

A list of Dashel targets

pyaseba.client.get_target_protocol(target: str) str#

Reads the protocol string from a Dashel target

>>> get_target_protocol("tcp:port=33333")
'tcp'
Parameters:

target – A Dashel target

Returns:

The protocol string

pyaseba.client.get_target_parameters(target: str) dict[str, str]#

Reads the parameters from a Dashel target

>>> get_target_protocol("tcp:port=33333;host=localhost")
{'port': '33333', 'host': 'localhost'}
Parameters:

target – A Dashel target

Returns:

A dictionary of parameters

pyaseba.client.are_targets_compatible(target: str, other: str) bool#

Checks whether string may represent the same Dashel target, i.e., if their protocols and parameters overlap.

Parameters:
  • target – Dashel target name

  • other – Dashel target name

Returns:

True if they represent the same Dashel target