Skip to content

Ppu

cl_forge.verify.Ppu

Ppu(ppu: str)

Represents a Chilean PPU (vehicle license plate).

Attributes:

Name Type Description
raw str

The input PPU.

numeric int

The numeric representation of the PPU.

normalized str

The normalized PPU.

verifier str

The calculated verifier digit of the PPU.

format str

The detected format of the PPU. Supported formats:

  • LLLNN -> 3 letters followed by 2 digits
  • LLLNNN -> 4 letters followed by 3 digits
  • LLLLNN -> 4 letters followed by 2 digits
  • LLNNNN -> 2 letters followed by 4 digits
complete str

The normalized PPU with the verifier digit, separated by '-'.

Parameters:

Name Type Description Default
ppu str

Chilean PPU (vehicle license plate).

required
Source code in src/cl_forge/core/impl/rs_cl_forge/rs_verify.pyi
def __init__(self, ppu: str) -> None:
    """Initializes a PPU instance with the given PPU string.

    Parameters
    ----------
    ppu : str
        Chilean PPU (vehicle license plate).
    """

raw property

raw: str

The input PPU.

numeric property

numeric: int

The numeric representation of the PPU.

normalized property

normalized: str

The normalized PPU.

verifier property

verifier: str

The calculated verifier digit of the PPU.

format property

format: str

The detected format of the PPU.

complete property

complete: str

The normalized PPU with the verifier digit, separated by '-'.