From 6d7ba58f880be618ade07f8ea080fe8c4bf8a896 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:10:44 -0400 Subject: venv --- .../faker/providers/bank/en_PH/__init__.py | 109 +++++++++++++++++++++ .../en_PH/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 3031 bytes 2 files changed, 109 insertions(+) create mode 100644 venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__init__.py create mode 100644 venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__pycache__/__init__.cpython-311.pyc (limited to 'venv/lib/python3.11/site-packages/faker/providers/bank/en_PH') diff --git a/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__init__.py new file mode 100644 index 0000000..22e92a3 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__init__.py @@ -0,0 +1,109 @@ +import logging + +from faker.providers.bank import Provider as BankProvider + +logger = logging.getLogger(__name__) + + +class Provider(BankProvider): + """Implement bank provider for ``en_PH`` locale.""" + + country_code = "PH" + bban_format = "################" + swift_bank_codes = ( + "ANZB", + "AUBK", + "BKCH", + "BKKB", + "BNOR", + "BNPA", + "BOFA", + "BOPI", + "BOTK", + "BPDI", + "BPFS", + "BPGO", + "CHAS", + "CHBK", + "CHSV", + "CITI", + "CPHI", + "CTCB", + "DBPH", + "DEUT", + "EQSN", + "EWBC", + "FCBK", + "HBPH", + "HNBK", + "HSBC", + "IBKO", + "ICBC", + "INGB", + "KOEX", + "MBBE", + "MBTC", + "MHCB", + "PABI", + "PHSB", + "PHTB", + "PHVB", + "PNBM", + "PPBU", + "RCBC", + "ROBP", + "SCBL", + "SETC", + "SHBK", + "SMBC", + "STLA", + "TACB", + "TLBP", + "TYBK", + "UBPH", + "UCPB", + "UOVB", + "UWCB", + ) + swift_location_codes = ( + "22", + "2X", + "M1", + "MM", + "MQ", + "MX", + ) + swift_branch_codes = ( + "CBU", + "EQI", + "TSU", + "XXX", + ) + + def bban(self) -> str: + """Generate a Basic Bank Account Number (BBAN). + + .. warning:: + Philippine bank accounts do not have BBANs or IBANs, so any number + generated by this method is a purely hypothetical number. Local bank + account numbers are typically 10 or 12 digits long, so the BBAN + format used in this implementation has been arbitrarily set to 16 + digits to simulate a hypothetical standardization of account numbers. + Using this method will log a warning regarding the hypotheticality of + the result. + """ + logger.warning("Numbers generated by this method are purely hypothetical.") + return super().bban() + + def iban(self) -> str: + """Generate an International Bank Account Number (IBAN). + + .. warning:: + Philippine bank accounts do not have BBANs or IBANs, so any number + generated by this method is a purely hypothetical number. This method + uses hypothetical PH BBANs and the PH country code as inputs to the + IBAN generation algorithm. Using this method will log a warning + regarding the hypotheticality of the result. + """ + logger.warning("Numbers generated by this method are purely hypothetical.") + return super().iban() diff --git a/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..dbc64a7 Binary files /dev/null and b/venv/lib/python3.11/site-packages/faker/providers/bank/en_PH/__pycache__/__init__.cpython-311.pyc differ -- cgit v1.2.3