How thedtvn/mbbank works
Project type and purpose
• This is an open-source Python client library (“SDK”) for interacting with Military Commercial Joint Stock Bank’s personal-account API. It wraps HTTP calls to the bank, handles CAPTCHA via OCR (either ONNX or a WASM fallback), and exposes both synchronous and asynchronous interfaces.
File structure
Top level:
• .github/ – CI/CD workflows (linting, tests, publishing)
• docs/ & mkdocs.yml – documentation source and site config
• setup.py, req.txt, .readthedocs.yaml – packaging, dependencies, docs build
• mbbank/ – core library modules
– main.py: entry point and sync client
– mbasync.py: async client variants
– capcha_ocr.py: orchestration for image→text via OCR
– wasm_helper/: fallback OCR helper in WASM
• tests/: sync_test.py, async_test.py
README for additional insights
• Purpose: avoid paid 3rd-party API costs
• Optional GPU-accelerated OCR (onnxruntime + CUDA)
• Python 3 only