Skip to content

ppu_to_numeric

cl_forge.verify.ppu_to_numeric

ppu_to_numeric(ppu: str) -> int

Converts a Chilean PPU (vehicle license plate) into its numeric representation.

Parameters:

Name Type Description Default
ppu str

Chilean PPU (vehicle license plate). 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
required

Returns:

Type Description
str

Numeric representation of the PPU.

Source code in src/cl_forge/core/impl/rs_cl_forge/rs_verify.pyi
def ppu_to_numeric(ppu: str) -> int:
    """
    Converts a Chilean PPU (vehicle license plate) into its numeric
    representation.

    Parameters
    ----------
    ppu : str
        Chilean PPU (vehicle license plate). 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

    Returns
    -------
    str
        Numeric representation of the PPU.
    """