datopy.modeling.CustomTypes#
- class CustomTypes[source]#
Bases:
objectDefine reusable custom field types.
Notes
Whitespace around commas should be stripped before analysis. For additional info on Pydantic custom types, see: https://docs.pydantic.dev/latest/concepts/types/.
Methods
CSVnumsent
CSVnumstr
CSVstr
- CSVstr#
Lowercase comma-separated string. Excludes numerics and special characters.
alias of
Annotated[str, FieldInfo(annotation=NoneType, required=True, description=’CustomTypes:CSVstr’, metadata=[_PydanticGeneralMetadata(pattern=’^[a-z, ]+$’)])]
- CSVnumstr#
Lowercase comma-separated string. Allows numerics; excludes special characters.
alias of
Annotated[str, FieldInfo(annotation=NoneType, required=True, description=’CustomTypes:CSVnumstr’, metadata=[_PydanticGeneralMetadata(pattern=’^[a-z0-9,.! ]+$’)])]
- CSVnumsent#
alias of
Annotated[str, FieldInfo(annotation=NoneType, required=True, description=’CustomTypes:CSVnumsent’, metadata=[_PydanticGeneralMetadata(pattern=’^[a-z0-9,.! ]+$’)])]