A tool to query bank region codes
Project description
Bank Region Query
A Python package for querying bank region codes and names.
Installation
pip install bank-region-query
Usage
Python API
from bank_region_query import BankRegionQuery
# Initialize
query = BankRegionQuery()
# Get region code by bank and region
result = query.get_region_code("中国农业银行", "北京市")
print(result.data) # "001"
# Get region name by bank and code
result = query.get_region_by_code("中国农业银行", "001")
print(result.data) # "北京市"
# Search by region across all banks
result = query.search_by_region("北京市")
print(result.data) # {"中国农业银行": "001", ...}
# List all banks
banks = query.list_banks()
print(banks) # ["中国农业银行", ...]
# Get statistics
stats = query.get_statistics()
print(stats)
Command Line Interface
# Get region code
bank-query code -b "中国农业银行" -r "北京市"
# Get region name
bank-query region -b "中国农业银行" -c "001"
# Search by region
bank-query search --region "北京市"
# Search by code
bank-query search --code "001"
# List all banks
bank-query list banks
# List regions for a bank
bank-query list regions -b "中国农业银行"
# List codes for a bank
bank-query list codes -b "中国农业银行"
# Show statistics
bank-query stats
# Export data
bank-query export -o output.json
# Interactive mode
bank-query interactive
# JSON output
bank-query code -b "中国农业银行" -r "北京市" -f json
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bank_region_query-1.0.0.tar.gz
(50.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bank_region_query-1.0.0.tar.gz.
File metadata
- Download URL: bank_region_query-1.0.0.tar.gz
- Upload date:
- Size: 50.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
332a976366eda824a08fd86bb475373454bc37c571ab07b49cd20801ce5b6f5e
|
|
| MD5 |
4c555ea4e8972e59dfb36e285c0fec91
|
|
| BLAKE2b-256 |
b02b99c09091a7ce771dd4380a106cf011cf9c6eadd9bec65d9121854940acfc
|
File details
Details for the file bank_region_query-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bank_region_query-1.0.0-py3-none-any.whl
- Upload date:
- Size: 50.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
862d7610d1f8dfbeff6b85adb8876149ed4d728a9c74a331896f05ece7c626eb
|
|
| MD5 |
6ca67c415a401fbc99c9fd8d2c918540
|
|
| BLAKE2b-256 |
c843a8ca95af51aff790518fd649cf03df53aa3b2f04e47fb0d520463d78c793
|