pynetdicom.utils.set_ae¶
- pynetdicom.utils.set_ae(value: str | None, name: str, allow_empty: bool = True, allow_none: bool = True) str | None [source]¶
Convert value to an AE like parameter and apply validation.
- Parameters:
- Returns:
If
allow_empty
isTrue
then may returnNone
, otherwise the string will be returned.- Return type:
str or None