# bzprince/bdkit architecture

> Architecture diagram of the GitHub repository bzprince/bdkit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bzprince/bdkit
- Repository: https://github.com/bzprince/bdkit

## Overview

bdkit is a small, zero-dependency Python utility library for Bangladesh-focused apps. Its user workflow is direct: callers use the package’s public exports to convert digits, format or spell taka amounts, normalize and check mobile numbers or look up operator prefixes, and retrieve division names. These are independent runtime capabilities, not a processing pipeline. The sampled source shows money and phone helpers using digit conversion; no external services or persistent state are involved. The graph covers all four core modules; unsampled tests and packaging files are omitted.

Main entry points: [`src/bdkit/__init__.py`](https://github.com/bzprince/bdkit/blob/main/src/bdkit/__init__.py) (Package exports), [`src/bdkit/digits.py`](https://github.com/bzprince/bdkit/blob/main/src/bdkit/digits.py) (Digit conversion), [`src/bdkit/money.py`](https://github.com/bzprince/bdkit/blob/main/src/bdkit/money.py) (Taka formatting), [`src/bdkit/phone.py`](https://github.com/bzprince/bdkit/blob/main/src/bdkit/phone.py) (Phone tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public_api["Public API"]
  node_exports["Package exports<br/>[__init__.py]"]
end

subgraph group_localization["Digits"]
  node_digit_conversion["Digit conversion<br/>[digits.py]"]
end

subgraph group_finance["Taka"]
  node_taka_formatting["Taka formatting<br/>[money.py]"]
  node_taka_words["Taka in words<br/>[money.py]"]
end

subgraph group_telecom_geo["Phone &amp; geography"]
  node_phone_tools["Phone tools<br/>[phone.py]"]
  node_divisions["Divisions<br/>[geo.py]"]
end

node_caller(("Application caller"))

node_caller -->|"imports"| node_exports
node_exports -->|"exports"| node_digit_conversion
node_exports -->|"exports"| node_taka_formatting
node_exports -->|"exports"| node_taka_words
node_exports -->|"exports"| node_phone_tools
node_exports -->|"exports"| node_divisions
node_taka_formatting -->|"localizes digits"| node_digit_conversion
node_phone_tools -->|"converts digits"| node_digit_conversion

click node_exports "https://github.com/bzprince/bdkit/blob/main/src/bdkit/__init__.py"
click node_digit_conversion "https://github.com/bzprince/bdkit/blob/main/src/bdkit/digits.py"
click node_taka_formatting "https://github.com/bzprince/bdkit/blob/main/src/bdkit/money.py"
click node_taka_words "https://github.com/bzprince/bdkit/blob/main/src/bdkit/money.py"
click node_phone_tools "https://github.com/bzprince/bdkit/blob/main/src/bdkit/phone.py"
click node_divisions "https://github.com/bzprince/bdkit/blob/main/src/bdkit/geo.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_exports toneBlue
class node_digit_conversion toneAmber
class node_taka_formatting,node_taka_words toneMint
class node_phone_tools,node_divisions toneRose
class node_caller toneIndigo
```

## Components

### Public API

- [Package exports](https://github.com/bzprince/bdkit/blob/main/src/bdkit/__init__.py): `src/bdkit/__init__.py`

### Digits

- [Digit conversion](https://github.com/bzprince/bdkit/blob/main/src/bdkit/digits.py): `src/bdkit/digits.py`

### Taka

- [Taka formatting](https://github.com/bzprince/bdkit/blob/main/src/bdkit/money.py): `src/bdkit/money.py`
- [Taka in words](https://github.com/bzprince/bdkit/blob/main/src/bdkit/money.py): `src/bdkit/money.py`

### Phone & geography

- [Phone tools](https://github.com/bzprince/bdkit/blob/main/src/bdkit/phone.py): `src/bdkit/phone.py`
- [Divisions](https://github.com/bzprince/bdkit/blob/main/src/bdkit/geo.py): `src/bdkit/geo.py`

### Other components

- **Application caller**

## Connections

- Application caller → Package exports: imports (evidence: `README.md`)
- Package exports → Digit conversion: exports (evidence: `src/bdkit/__init__.py`)
- Package exports → Taka formatting: exports (evidence: `src/bdkit/__init__.py`)
- Package exports → Taka in words: exports (evidence: `src/bdkit/__init__.py`)
- Package exports → Phone tools: exports (evidence: `src/bdkit/__init__.py`)
- Package exports → Divisions: exports (evidence: `src/bdkit/__init__.py`)
- Taka formatting → Digit conversion: localizes digits (evidence: `src/bdkit/money.py`)
- Phone tools → Digit conversion: converts digits (evidence: `src/bdkit/phone.py`)
