Skip to main content

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

Release files for bank-region-query 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bank-region-query 1.0.0
File Size Uploaded
bank_region_query-1.0.0.tar.gz 50.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bank-region-query 1.0.0
File Interpreter ABI Platform
bank_region_query-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 100.1 kB

Release files / bank_region_query-1.0.0.tar.gz

Download URL bank_region_query-1.0.0.tar.gz
Size 50.1 kB
Tags Source
SHA-256 checksum
How to use checksums
332a976366eda824a08fd86bb475373454bc37c571ab07b49cd20801ce5b6f5e
BLAKE2b-256 checksum
How to use checksums
b02b99c09091a7ce771dd4380a106cf011cf9c6eadd9bec65d9121854940acfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / bank_region_query-1.0.0-py3-none-any.whl

Download URL bank_region_query-1.0.0-py3-none-any.whl
Size 50.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
862d7610d1f8dfbeff6b85adb8876149ed4d728a9c74a331896f05ece7c626eb
BLAKE2b-256 checksum
How to use checksums
c843a8ca95af51aff790518fd649cf03df53aa3b2f04e47fb0d520463d78c793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page