HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/faker/providers/ssn/az_AZ/__init__.py
from .. import Provider as SsnProvider


class Provider(SsnProvider):
    # The FIN code consists of 7 characters (letters and numbers of the English alphabet,
    # except for the letters "I" and "O").

    characters = [
        "A",
        "B",
        "C",
        "D",
        "E",
        "F",
        "G",
        "H",
        "J",
        "K",
        "L",
        "M",
        "N",
        "P",
        "Q",
        "R",
        "S",
        "T",
        "U",
        "V",
        "W",
        "X",
        "Y",
        "Z",
    ]
    numbers = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
    all_characters = characters + numbers

    def ssn(self) -> str:
        ssn = "".join(self.random_elements(elements=self.all_characters, length=7))
        return ssn