
| Current Path : /var/www/web-klick.de/dsh/order_model/.archive/ixml/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/web-klick.de/dsh/order_model/.archive/ixml/barcode.py |
#!/usr/bin/env python
from typing import Optional
from pydantic import BaseModel
class Barcode(BaseModel):
"""Model to carry mask barcode information.
Type hint notation by 'pydantic'.
(see https://pypi.org/project/pydantic/)
Attributes:
layer_number:
barcode_number:
barcode_text:
barcode_type:
e.g. 'CANON', 'NIKON'
barcode_location:
barcode_rotation:
barcode_justification:
human_readable (bool):
barcode_comment:
"""
layer_number: int
barcode_number: int
barcode_text: str # Todo: Validate max. length and check if iMask maximum is suitable.
barcode_type: str
human_readable: bool
barcode_rotation_degrees: Optional[int] = 0
barcode_justification: Optional[str] # Todo: Check if further spec./standardization would make sense.
barcode_location: Optional[str]
barcode_comment: Optional[str]