MCPcopy Create free account
hub / github.com/sissaschool/xmlschema / hex_binary_validator

Function hex_binary_validator

xmlschema/validators/helpers.py:240–244  ·  view source on GitHub ↗
(value: Union[str, datatypes.HexBinary])

Source from the content-addressed store, hash-verified

238
239
240def hex_binary_validator(value: Union[str, datatypes.HexBinary]) -> None:
241 if not isinstance(value, datatypes.HexBinary) and \
242 datatypes.HexBinary.pattern.match(value) is None:
243 raise XMLSchemaValidationError(hex_binary_validator, value,
244 _("not an hexadecimal number"))
245
246
247def base64_binary_validator(value: Union[str, datatypes.Base64Binary]) -> None:

Callers 1

Calls 2

matchMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…