How jaypatel1511/cdfi-benchmark works
cdfi-benchmark is a Python tool for comparing CDFI/MDI financial performance with FDIC-sourced peers. The main workflow is institution lookup and financial retrieval, peer selection, metric calculation and grading, then report or table generation. Its schema layer carries institution and benchmark data, including threshold provenance and reporting-period rules. The README also documents synthetic peer groups and ranking capabilities. Connections between the sampled modules are shown only where the excerpts or README support them; some internal calls are not visible in the partial excerpts.
Main entry points: fdic.py FDIC API access · generator.py Benchmark report · selector.py Peer selection · calculator.py Metrics and ranking
Components 9
FDIC Data
- FDIC API access
cdfibenchmark/data/fdic.py
Benchmark Domain
- Profiles and benchmarks
cdfibenchmark/data/schema.py - Typed errors
cdfibenchmark/exceptions.py - Package API
cdfibenchmark/__init__.py
Peer Analysis
- Peer selection
cdfibenchmark/peers/selector.py - Metrics and ranking
cdfibenchmark/metrics/calculator.py
Results
- Benchmark report
cdfibenchmark/report/generator.py
Other components
- Analyst
- FDIC BankFind
Connections 17
- Analyst → FDIC API access: requests data
README.md - FDIC API access → FDIC BankFind: fetches records
cdfibenchmark/data/fdic.py - FDIC API access → Profiles and benchmarks: parses profiles
cdfibenchmark/data/fdic.py - FDIC API access → Typed errors: raises on failure
cdfibenchmark/data/fdic.py - Analyst → Peer selection: builds peer group
README.md - Peer selection → FDIC API access: loads peer data
cdfibenchmark/peers/selector.py - Peer selection → Metrics and ranking: computes peer metrics
cdfibenchmark/peers/selector.py - Analyst → Benchmark report: generates report
README.md - Analyst → Metrics and ranking: requests ranking
- Package API → FDIC API access: exports functions
cdfibenchmark/__init__.py - Package API → Peer selection: exports functions
cdfibenchmark/__init__.py - Package API → Metrics and ranking: exports functions
cdfibenchmark/__init__.py - Package API → Benchmark report: exports functions
cdfibenchmark/__init__.py - Metrics and ranking → Profiles and benchmarks: uses definitions
cdfibenchmark/metrics/calculator.py - Benchmark report → Profiles and benchmarks: uses definitions
cdfibenchmark/report/generator.py - Benchmark report → Metrics and ranking: renders results
cdfibenchmark/report/generator.py - Benchmark report → Peer selection: renders caveats
cdfibenchmark/report/generator.py