Locale en_IN

faker2.providers.address

class faker2.providers.address.en_IN.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()
...
'H.No. 487\nMitter Marg, Secunderabad-824219'
'H.No. 11, Sodhi Path, Raichur 593877'
'01/60, Tak, Latur 139332'
'H.No. 587, Mitra Zila, Amravati-839894'
'65/93, Gour Road, Gaya-947112'
administrative_unit() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.administrative_unit()
...
'West Bengal'
'Madhya Pradesh'
'Tripura'
'Maharashtra'
'Arunachal Pradesh'
building_number() str
Example:

‘791’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.building_number()
...
'60'
'H.No. 87'
'47'
'H.No. 93'
'24/21'
city() str
Example:

‘Sashabury’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city()
...
'Bidar'
'Rampur'
'Machilipatnam'
'Morena'
'Ballia'
city_name() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_name()
...
'Kharagpur'
'Bidar'
'Thane'
'Rampur'
'Sasaram'
city_suffix() str
Example:

‘town’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_suffix()
...
'Ville'
'Ville'
'Ville'
'Ville'
'Ville'
country() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country()
...
'Maldives'
'Palestine'
'Kingdom of the Netherlands'
'Barbados'
'Israel'
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
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.current_country()
...
'India'
'India'
'India'
'India'
'India'
current_country_code() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.current_country_code()
...
'IN'
'IN'
'IN'
'IN'
'IN'
pincode_in_army() int
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.pincode_in_army()
...
999346
905306
967013
953075
962468
pincode_in_military() int

Random PIN Code within Army Postal Service range

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.pincode_in_military()
...
999346
905306
967013
953075
962468
pincode_in_state(state_abbr: str | None = None, include_union_territories: bool = False) int

Random PIN Code within provided state abbreviation

Parameters:
  • state_abbr – State Abbr, defaults to None

  • include_union_territories – Include Union Territories ?, defaults to False

Raises:

ValueError – If incorrect state abbr

Returns:

PIN Code

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.pincode_in_state()
...
741445
792094
794880
262468
678268
postcode() str
Example:

86039-9874

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode()
...
'604876'
'759382'
'219489'
'411578'
'565938'
postcode_in_army() int
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode_in_army()
...
999346
905306
967013
953075
962468
postcode_in_military() int
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode_in_military()
...
999346
905306
967013
953075
962468
postcode_in_state(state_abbr: str | None = None, include_union_territories: bool = False) int
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode_in_state()
...
741445
792094
794880
262468
678268
state() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.state()
...
'West Bengal'
'Madhya Pradesh'
'Tripura'
'Maharashtra'
'Arunachal Pradesh'
street_address() str
Example:

‘791 Crist Parks’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_address()
...
'04\nSunder Circle'
'H.No. 75\nKamdar'
'H.No. 21, Krishna'
'H.No. 11, Sodhi Path'
'H.No. 65, Jayaraman'
street_name() str
Example:

‘Crist Parks’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_name()
...
'Salvi Marg'
'Lad Nagar'
'Sunder Circle'
'Mitter Marg'
'Parmar Chowk'
street_suffix() str
Example:

‘Avenue’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_suffix()
...
'Street'
'Street'
'Street'
'Street'
'Street'
union_territory() str

Returns random union territory name

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.union_territory()
...
'Ladakh'
'Ladakh'
'Andaman and Nicobar Islands'
'Delhi, National Capital Territory of Delhi'
'Pondicherry'
zipcode_in_army() int
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.zipcode_in_army()
...
999346
905306
967013
953075
962468
zipcode_in_military() int
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.zipcode_in_military()
...
999346
905306
967013
953075
962468
zipcode_in_state(state_abbr: str | None = None, include_union_territories: bool = False) int
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.zipcode_in_state()
...
741445
792094
794880
262468
678268

faker2.providers.automotive

class faker2.providers.automotive.en_IN.Provider(generator: Any)

Bases: Provider

Implement automotive provider for the en_IN locale.

Sources:

license_plate() str

Generate a license plate.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.license_plate()
...
'24 BH 0664 JS'
'24 BH 4970 RM'
'TS 18 ED 4105'
'MH 13 CXL 7736'
'MP 56 VW 3351'
plate_bh_year() str

Generate a two-digit registration year for the BH series.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.plate_bh_year()
...
'24'
'24'
'21'
'23'
'25'
plate_number() str

Generate a four-digit vehicle number.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.plate_number()
...
'6312'
'6891'
'0664'
'4243'
'8377'
plate_rto() str

Generate a two-digit RTO (registering authority) code.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.plate_rto()
...
'50'
'98'
'54'
'06'
'34'
plate_series() str

Generate a one to three letter series code.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.plate_series()
...
'PB'
'SR'
'KR'
'UG'
'EKE'
plate_series_bh() str

Generate a two-letter series code for the BH series.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.plate_series_bh()
...
'NP'
'BJ'
'SR'
'NK'
'RM'
plate_state() str

Generate a state or union territory code.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.plate_state()
...
'NL'
'PB'
'AR'
'KL'
'TS'
vin() str

Generate vin number.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.vin()
...
'RT3GZYSK4Z9J97593'
'7G0K75MX5LDXV8156'
'G416S1YM2EF0V3513'
'66LZY7KJ7DJV61858'
'RLFJBCB3669039471'

faker2.providers.bank

class faker2.providers.bank.en_IN.Provider(generator: Any)

Bases: Provider

Implement bank provider for en_IN locale. Source: https://en.wikipedia.org/wiki/List_of_banks_in_India

aba() str

Generate an ABA routing transit number.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.aba()
...
'076048766'
'057593829'
'052194896'
'034115783'
'025659384'
bank() str

Generate a bank name.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bank()
...
'Jammu & Kashmir Bank'
'Karur Vysya Bank'
'Bank of Maharashtra'
'DCB Bank'
'Yes Bank'
bank_country() str

Generate the bank provider’s ISO 3166-1 alpha-2 country code.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bank_country()
...
'GB'
'GB'
'GB'
'GB'
'GB'
bban() str

Generate a Basic Bank Account Number (BBAN).

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bban()
...
'MYNB48764759382421'
'TZIR92411578156593'
'RPOQ40801609753513'
'SHHZ28711587148418'
'KRGZ98947196593423'
iban() str

Generate an International Bank Account Number (IBAN).

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.iban()
...
'GB84MYNB48764759382421'
'GB13TZIR92411578156593'
'GB51RPOQ40801609753513'
'GB03SHHZ28711587148418'
'GB56KRGZ98947196593423'
ifsc() str

Generate an Indian Financial System Code (IFSC).

An IFSC is the 11-character code that identifies a bank branch for electronic transfers (NEFT/RTGS/IMPS). It is made up of a four-letter bank code, a reserved 0, and a six-character branch code, e.g. SBIN0000123.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ifsc()
...
'KKBK00CQ65Z'
'MAHB04WN6IS'
'BARB0GQ8JTG'
'IBKL0EV49GW'
'YESB0UN9427'
swift(length: int | None = None, primary: bool = False, use_dataset: bool = False) str

Generate a SWIFT code.

SWIFT codes, reading from left to right, are composed of a 4 alphabet character bank code, a 2 alphabet character country code, a 2 alphanumeric location code, and an optional 3 alphanumeric branch code. This means SWIFT codes can only have 8 or 11 characters, so the value of length can only be None or the integers 8 or 11. If the value is None, then a value of 8 or 11 will randomly be assigned.

Because all 8-digit SWIFT codes already refer to the primary branch or office, the primary argument only has an effect if the value of length is 11. If primary is True and length is 11, the 11-digit SWIFT codes generated will always end in 'XXX' to denote that they belong to primary branches/offices.

For extra authenticity, localized providers may opt to include SWIFT bank codes, location codes, and branch codes used in their respective locales. If use_dataset is True, this method will generate SWIFT codes based on those locale-specific codes if included. If those codes were not included, then it will behave as if use_dataset were False, and in that mode, all those codes will just be randomly generated as per the specification.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift()
...
'YNBIGB65ZT4'
'SGQEGBSIGQ8'
'JDXCGBV4'
'LNKTGBN9'
'OQIBGB9AFZA'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=8)
...
'MYNBGBQ6'
'PMZJGB4W'
'SGQEGBSI'
'YDTZGBQ8'
'WZTEGBTG'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=8, use_dataset=True)
...
'MYNBGBQ6'
'PMZJGB4W'
'SGQEGBSI'
'YDTZGBQ8'
'WZTEGBTG'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11)
...
'MYNBGBQ65ZT'
'PLSGGB6ISIG'
'TZIRGBJTGEV'
'PRDLGB1UN94'
'OQIBGB9AFZA'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11, primary=True)
...
'MYNBGBQ6XXX'
'PMZJGB4WXXX'
'SGQEGBSIXXX'
'YDTZGBQ8XXX'
'WZTEGBTGXXX'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11, use_dataset=True)
...
'MYNBGBQ65ZT'
'PLSGGB6ISIG'
'TZIRGBJTGEV'
'PRDLGB1UN94'
'OQIBGB9AFZA'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11, primary=True, use_dataset=True)
...
'MYNBGBQ6XXX'
'PMZJGB4WXXX'
'SGQEGBSIXXX'
'YDTZGBQ8XXX'
'WZTEGBTGXXX'
swift11(primary: bool = False, use_dataset: bool = False) str

Generate an 11-digit SWIFT code.

This method uses swift() under the hood with the length argument set to 11. If primary is set to True, the SWIFT code will always end with 'XXX'. All 11-digit SWIFT codes use this convention to refer to the primary branch/office.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift11()
...
'MYNBGBQ65ZT'
'PLSGGB6ISIG'
'TZIRGBJTGEV'
'PRDLGB1UN94'
'OQIBGB9AFZA'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift11(use_dataset=True)
...
'MYNBGBQ65ZT'
'PLSGGB6ISIG'
'TZIRGBJTGEV'
'PRDLGB1UN94'
'OQIBGB9AFZA'
swift8(use_dataset: bool = False) str

Generate an 8-digit SWIFT code.

This method uses swift() under the hood with the length argument set to 8 and with the primary argument omitted. All 8-digit SWIFT codes already refer to the primary branch/office.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift8()
...
'MYNBGBQ6'
'PMZJGB4W'
'SGQEGBSI'
'YDTZGBQ8'
'WZTEGBTG'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift8(use_dataset=True)
...
'MYNBGBQ6'
'PMZJGB4W'
'SGQEGBSI'
'YDTZGBQ8'
'WZTEGBTG'

faker2.providers.company

class faker2.providers.company.en_IN.Provider(generator: Any)

Bases: Provider

Company provider for the en_IN locale.

Company names combine common Indian surnames and business-sector words with the legal-form suffixes used by Indian companies (Pvt Ltd, LLP and so on). The provider also exposes cin(), which returns a Corporate Identification Number - the 21-character identifier the Ministry of Corporate Affairs assigns to every registered company.

bs() str
Example:

‘integrate extensible convergence’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bs()
...
'iterate integrated e-markets'
'integrate back-end mindshare'
'synthesize wireless content'
'syndicate synergistic applications'
'productize killer mindshare'
catch_phrase() str
Example:

‘Robust full-range hub’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase()
...
'Networked well-modulated instruction set'
'Balanced empowering migration'
'Pre-emptive impactful toolset'
'Innovative mission-critical help-desk'
'Reduced didactic middleware'
cin() str

Return a Corporate Identification Number (CIN).

The 21-character identifier issued by the Ministry of Corporate Affairs has the structure (shown spaced for clarity):

L 17110 MH 1973 PLC 019786
  • listing status (L listed / U unlisted)

  • a 5-digit industry code

  • a 2-letter state code

  • the 4-digit year of incorporation

  • a 3-letter company classification

  • a 6-digit registration number

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.cin()
...
'U60487SK2017SGC759382'
'U21948HR1939PLC157815'
'U59387TR2010SGC080160'
'U53513KL1930OPC871158'
'U14841LD1942GOI989471'
company() str
Example:

‘Acme Ltd’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company()
...
'Salvi Technologies'
'Vaidya and Sunder and Co'
'Sood and Parmar Corporation'
'Thaman Textiles LLP'
'Chandran Systems LLP'
company_sector() str

Return a business-sector word used in Indian company names.

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_sector()
...
'Agro'
'Cements'
'Trading'
'Power'
'Cements'
company_suffix() str
Example:

‘Ltd’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_suffix()
...
'and Co'
'and Co'
'Pvt Ltd'
'LLP'
'Enterprises'

faker2.providers.person

class faker2.providers.person.en_IN.Provider(generator: Any)

Bases: Provider

first_name() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name()
...
'Lekha'
'Osha'
'Banjeet'
'Aashi'
'Yasti'
first_name_female() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_female()
...
'Sanya'
'Ucchal'
'Anusha'
'Leela'
'Yashodhara'
first_name_male() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_male()
...
'Reyansh'
'Shivansh'
'Anmol'
'Kai'
'Xavier'
first_name_nonbinary() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_nonbinary()
...
'Lekha'
'Osha'
'Banjeet'
'Aashi'
'Yasti'
language_name() str

Generate a random i18n language name (e.g. English).

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.language_name()
...
'Lithuanian'
'Marathi'
'Aymara'
'Indonesian'
'Portuguese'
last_name() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name()
...
'Rajan'
'Salvi'
'Baria'
'Lad'
'Vaidya'
last_name_female() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_female()
...
'Rajan'
'Salvi'
'Baria'
'Lad'
'Vaidya'
last_name_male() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_male()
...
'Rajan'
'Salvi'
'Baria'
'Lad'
'Vaidya'
last_name_nonbinary() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_nonbinary()
...
'Rajan'
'Salvi'
'Baria'
'Lad'
'Vaidya'
name() str
Example:

‘John Doe’

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name()
...
'Osha Baria'
'Yasti Sunder'
'Chavvi Sood'
'Tejas Thaman'
'Baghyawati Dey'
name_female() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_female()
...
'Ucchal Baria'
'Yashodhara Sunder'
'Nidra Sood'
'Janani Thaman'
'Megha Dey'
name_male() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_male()
...
'Shivansh Baria'
'Xavier Ravel'
'William Parmar'
'Zayyan Dewan'
'Ekaraj Chandran'
name_nonbinary() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_nonbinary()
...
'Osha Baria'
'Yasti Sunder'
'Chavvi Sood'
'Tejas Thaman'
'Baghyawati Dey'
prefix() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix()
...
''
''
''
''
''
prefix_female() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_female()
...
''
''
''
''
''
prefix_male() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_male()
...
''
''
''
''
''
prefix_nonbinary() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_nonbinary()
...
''
''
''
''
''
suffix() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix()
...
''
''
''
''
''
suffix_female() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_female()
...
''
''
''
''
''
suffix_male() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_male()
...
''
''
''
''
''
suffix_nonbinary() str
Examples:

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

faker2.providers.phone_number

class faker2.providers.phone_number.en_IN.Provider(generator: Any)

Bases: Provider

country_calling_code() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_calling_code()
...
'+687'
'+595'
'+880'
'+964'
'+41'
msisdn() str

https://en.wikipedia.org/wiki/MSISDN

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.msisdn()
...
'6048764759382'
'2194892411578'
'5659387784080'
'6097535139332'
'1158714841858'
phone_number() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.phone_number()
...
'06048764759'
'+918242194892'
'01157815659'
'3877840801'
'6097535139'

faker2.providers.ssn

class faker2.providers.ssn.en_IN.Provider(generator: Any)

Bases: Provider

Faker provider for Indian Identifiers

aadhaar_id() str

Aadhaar is a 12 digit person identifier generated for residents of India. Details: https://en.wikipedia.org/wiki/Aadhaar Official Website: https://uidai.gov.in/my-aadhaar/about-your-aadhaar.html

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.aadhaar_id()
...
'460487647592'
'242194892418'
'878156593872'
'608016097537'
'939332871150'
gstin() str

Goods and Services Tax Identification Number (GSTIN) is a 15 character identifier used in India for GST registration. Details: https://en.wikipedia.org/wiki/Goods_and_Services_Tax_(India)

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.gstin()
...
'25BIQLM4759GRZ9'
'33JEYPT4892J9ZZ'
'07VKPJD5659U5ZP'
'14OQICZ8016WVZ6'
'01KHXTW1393HWZH'
pan() str

Permanent Account Number (PAN) is a 10 character alphanumeric tax identifier issued in India. Details: https://en.wikipedia.org/wiki/Permanent_account_number

Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.pan()
...
'MYNCI8764P'
'LSGJE4219Z'
'IRWGE4115P'
'RDLBK9387O'
'QIBJA1609P'
ssn() str
Examples:

>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ssn()
...
'604-87-6475'
'824-21-9489'
'411-57-8156'
'938-77-8408'
'160-97-5351'