-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
582a994
commit 589a4bb
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
from typing import Optional | ||
|
||
from .. import Provider as BankProvider | ||
|
||
|
||
class Provider(BankProvider): | ||
"""Implement bank provider for ``en_IN`` locale. | ||
Source: https://en.wikipedia.org/wiki/List_of_banks_in_India | ||
""" | ||
|
||
banks = ( | ||
"Bank of Baroda", | ||
"Bank of India", | ||
"Bank of Maharashtra", | ||
"Canara Bank", | ||
"Central Bank of India", | ||
"Indian Bank", | ||
"Indian Overseas Bank", | ||
"Punjab National Bank", | ||
"Punjab and Sind Bank", | ||
"Union Bank of India", | ||
"UCO Bank", | ||
"State Bank of India", | ||
"Axis Bank", | ||
"Bandhan Bank", | ||
"CSB Bank", | ||
"City Union Bank", | ||
"DCB Bank", | ||
"Dhanlaxmi Bank", | ||
"Federal Bank", | ||
"HDFC Bank", | ||
"ICICI Bank", | ||
"IDBI Bank", | ||
"IDFC First Bank", | ||
"IndusInd Bank", | ||
"Jammu & Kashmir Bank", | ||
"Karnataka Bank", | ||
"Karur Vysya Bank", | ||
"Kotak Mahindra Bank", | ||
"Nainital Bank", | ||
"RBL Bank", | ||
"South Indian Bank", | ||
"Tamilnad Mercantile Bank", | ||
"Yes Bank", | ||
) | ||
|
||
def bank(self, min_length: Optional[int] = None, max_length: Optional[int] = None) -> str: | ||
"""Generate a bank name.""" | ||
return self.random_element(self.banks, min_length, max_length) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters