summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2024-04-03 03:10:44 -0400
committercyfraeviolae <cyfraeviolae>2024-04-03 03:10:44 -0400
commit6d7ba58f880be618ade07f8ea080fe8c4bf8a896 (patch)
treeb1c931051ffcebd2bd9d61d98d6233ffa289bbce /venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN
parent4f884c9abc32990b4061a1bb6997b4b37e58ea0b (diff)
venv
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN')
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN/__init__.py37
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN/__pycache__/__init__.cpython-311.pycbin0 -> 1401 bytes
2 files changed, 37 insertions, 0 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN/__init__.py
new file mode 100644
index 0000000..83b34e5
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN/__init__.py
@@ -0,0 +1,37 @@
+from .. import Provider as BankProvider
+
+
+class Provider(BankProvider):
+ """Implement bank provider for ``zh_CN`` locale.
+ Source: https://zh.wikipedia.org/wiki/中国大陆银行列表
+ """
+
+ banks = (
+ "中国人民银行",
+ "国家开发银行",
+ "中国进出口银行",
+ "中国农业发展银行",
+ "交通银行",
+ "中国银行",
+ "中国建设银行",
+ "中国农业银行",
+ "中国工商银行",
+ "中国邮政储蓄银行",
+ "中国光大银行",
+ "中国民生银行",
+ "招商银行",
+ "中信银行",
+ "华夏银行",
+ "上海浦东发展银行",
+ "平安银行",
+ "广发银行",
+ "兴业银行",
+ "浙商银行",
+ "渤海银行",
+ "恒丰银行",
+ "西安银行",
+ )
+
+ def bank(self) -> str:
+ """Generate a bank name."""
+ return self.random_element(self.banks)
diff --git a/venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000..15d5780
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/faker/providers/bank/zh_CN/__pycache__/__init__.cpython-311.pyc
Binary files differ