# Locale en_MS

## `faker.providers.address`

class faker.providers.address.en_MS.Provider(generator: Any)

  Bases: `Provider`

  address() → str
    Example:

      ‘791 Crist Parks, Sashabury, IL 86039-9874’

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.address()
        ...
        '88, Jalan 84w, Taman Damansara, 36191 Damansara Sentosa, Perak Darul Ridzuan'
        '681, Jalan 45J, SS58, 84895 USJ 1, Johor'
        '41, Jln Tugu 49p, PJS27f, 22469 PJS24J, Terengganu Darul Iman'
        'No. 7, Jln 4s, Bandar Sri Antarabangsa, 10565 Bandar Dato Harun, Penang'
        'No. 48, Jalan Tun Abdul Razak 4R, PJU5, 20674 Bandar Ria, Terengganu'

  administrative_unit() → str
    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.administrative_unit()
        ...
        'Sabah'
        'Kedah'
        'Terengganu'
        'Perak'
        'Putrajaya'

  building_number() → str
    Example:

      ‘791’

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.building_number()
        ...
        '16'
        '88'
        '84'
        '49'
        '3-5'

  building_prefix() → str
    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.building_prefix()
        ...
        'No. '
        'No. '
        ''
        ''
        'No. '

  city() → str
    Example:

      ‘Sashabury’

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.city()
        ...
        'SS7'
        'Taman Ria'
        'PJU5'
        'Taman Desa Impian'
        'SS52i'

  city_prefix() → str
    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.city_prefix()
        ...
        'Medan'
        'Pangsapuri'
        'Ara'
        'Damansara'
        'Taman'

  city_prefix_abbr() → str
    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.city_prefix_abbr()
        ...
        'PJU'
        'PJU'
        'SS'
        'PJS'
        'USJ '

  city_state() → str

    Return the complete city address with matching postcode and state

    Example: 55100 Bukit Bintang, Kuala Lumpur

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.city_state()
        ...
        '88165 Taman Ria, Sabah'
        '32933 Taman Damansara, Perak'
        '87016 SS39t, Labuan'
        '02146 Laman Puchong, Perlis'
        '71813 USJ 14Z, Negeri Sembilan Darul Khusus'

  city_suffix() → str
    Example:

      ‘town’

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.city_suffix()
        ...
        'Perdana'
        'Petaling'
        'Awan'
        'Kerinchi'
        'Selamat'

  country() → str
    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.country()
        ...
        'Tanzania'
        'Hungary'
        'Senegal'
        'Tuvalu'
        'Italy'

  country_code(representation: str = 'alpha-2') → str
    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.country_code()
        ...
        'MV'
        'PS'
        'NL'
        'BB'
        'IL'

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.country_code(representation='alpha-2')
        ...
        'MV'
        'PS'
        'NL'
        'BB'
        'IL'

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.country_code(representation='alpha-3')
        ...
        'MDV'
        'PSE'
        'NLD'
        'BRB'
        'ISR'

  current_country() → str
  current_country_code() → str
    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.current_country_code()
        ...
        'MS'
        'MS'
        'MS'
        'MS'
        'MS'

  postcode() → str
    Example:

      86039-9874

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.postcode()
        ...
        '88165'
        '13317'
        '32933'
        '71154'
        '87016'

  postcode_in_state(state_abbr: str | None = None) → str
    Returns:

      A random postcode within the provided state

    Parameters:

      state – A state

    Example: 55100 https://en.wikipedia.org/wiki/Postal_codes_in_Malaysia#States

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.postcode_in_state()
        ...
        '88165'
        '13317'
        '32933'
        '71154'
        '87016'

  state() → str
    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.state()
        ...
        'Sabah'
        'Kedah'
        'Terengganu'
        'Perak'
        'Putrajaya'

  street_address() → str
    Example:

      ‘791 Crist Parks’

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.street_address()
        ...
        'No. 5, Jalan Wesley 8'
        'No. 49, Jalan Chan Sow Lin 3'
        'Lot 38, Jalan 2/61E'
        '45, Jalan Tun Razak 8'
        '1-2, Jalan Tun Abdul Razak 7/1N'

  street_name() → str
    Example:

      ‘Crist Parks’

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.street_name()
        ...
        'Jalan Ariffin 7W'
        'Jalan 8/78Y'
        'Jalan Petaling'
        'Jalan Chan Sow Lin 93i'
        'Jalan Vivekananda 5/91T'

  street_prefix() → str
    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.street_prefix()
        ...
        'Jalan'
        'Jalan'
        'Jln'
        'Jalan'
        'Jalan'

  street_suffix() → str
    Example:

      ‘Avenue’

    Examples:

        >>> Faker.seed(0)
        >>> for _ in range(5):
        ...     fake.street_suffix()
        ...
        'Tun Ismail'
        'Kia Peng'
        'Sultan Sulaiman'
        'Utama'
        'Ledang'