How mdomke/schwifty works
schwifty is a Python library for parsing, validating, generating, and looking up IBANs and BICs. The main workflow constructs an IBAN, derives its BBAN, and validates its country-specific structure and checksum; generation builds a BBAN before forming an IBAN. BIC operations validate codes or look up candidates through the bank registry. The graph reflects documented capabilities, but unsampled implementation details and registry data files are not represented.
Main entry points: iban.py IBAN operations · bban.py BBAN operations · bic.py BIC operations · __init__.py Checksum framework
Components 11
Public code API
- IBAN operations
schwifty/iban.py - BIC operations
schwifty/bic.py - Validation errors
schwifty/exceptions.py
Account formats
- BBAN operations
schwifty/bban.py - Code normalization
schwifty/common.py - Format definitions
schwifty/domain.py
Validation algorithms
- Checksum framework
schwifty/checksum/__init__.py - Country checksum rules
schwifty/checksum
Registry lookup
- Bank and format registry
schwifty/registry.py - Country metadata
Other components
- Library user
Connections 16
- Library user → IBAN operations: constructs or generates
- Library user → BIC operations: constructs or looks up
- IBAN operations → BBAN operations: creates and validates
- IBAN operations → Bank and format registry: reads format specs
- IBAN operations → Checksum framework: validates IBAN digits
- IBAN operations → Country metadata: looks up country
- BIC operations → Bank and format registry: looks up banks
- BIC operations → Country metadata: validates country
- BBAN operations → Bank and format registry: reads specs and banks
- BBAN operations → Code normalization: normalizes components
- BBAN operations → Checksum framework: computes national checksum
- BBAN operations → Format definitions: uses components and ranges
- Checksum framework → Country checksum rules: loads algorithms
- IBAN operations → Validation errors: raises validation errors
- BIC operations → Validation errors: raises validation errors
- BBAN operations → Validation errors: raises generation errors