bo4e package

Subpackages

Submodules

bo4e.validators module

Contains validators for BO s and COM s classes.

bo4e.validators.OBIS_PATTERN = '((1)-((?:[0-5]?[0-9])|(?:6[0-5])):((?:[1-8]|99))\\.((?:6|8|9|29))\\.([0-9]{1,2})|(7)-((?:[0-5]?[0-9])|(?:6[0-5])):(.{1,2})\\.(.{1,2})\\.([0-9]{1,2}))'

a regular expression that should match all OBIS Kennziffern

bo4e.validators.check_bis_is_later_than_von(cls, value: datetime, values: Dict[str, Any])[source]

assert that ‘bis’ is later than ‘von’

bo4e.validators.einheit_only_for_abschlagstyp_absolut(cls, value: Waehrungseinheit, values: Dict[str, Any]) Waehrungseinheit[source]

Check that einheit is only there if abschlagstyp is absolut. Currently, (2021-12-15) only used in COM AufAbschlag.

bo4e.validators.validate_marktlokations_id(cls, marktlokations_id: str, values: Dict[str, Any]) str[source]

A validator for marktlokations IDs

Module contents