# utkarsh0702/vedicpy architecture

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

- Interactive diagram: https://gitdiagram.com/utkarsh0702/vedicpy
- Repository: https://github.com/utkarsh0702/vedicpy

## Overview

vedicpy is a Python library of independent Vedic-mathematics routines, not a staged application. A user imports the package, chooses a calculation, and receives a value or—in division_by9—a printed quotient and remainder. The README lists the supported calculation families; the package initializer imports each module. The routines are otherwise standalone, so no calculation-to-calculation pipeline is implied. Relationships are based on the README and sampled source; no external services or shared storage are evident.

Main entry points: [`vedicpy/__init__.py`](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/__init__.py) (vedicpy API), [`vedicpy/multiply.py`](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/multiply.py) (Multiplication), [`vedicpy/square.py`](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/square.py) (Square), [`vedicpy/cube.py`](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/cube.py) (Cube)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_powers["Powers and products"]
  node_multiply["Multiplication<br/>[multiply.py]"]
  node_square["Square<br/>[square.py]"]
  node_cube["Cube<br/>[cube.py]"]
end

subgraph group_roots["Roots and divisibility"]
  node_squareroot["Square root<br/>[squareroot.py]"]
  node_cuberoot["Cube root<br/>[cuberoot.py]"]
  node_divisibility["Divisibility<br/>[divisibility.py]"]
end

subgraph group_number_ops["Number operations"]
  node_division["Division by nine<br/>[division.py]"]
  node_recurring["Recurring fractions<br/>[recurring.py]"]
  node_compliment["Complement<br/>[compliment.py]"]
end

node_user(("Python user"))
node_package["vedicpy API<br/>[__init__.py]"]

node_user -->|"imports and calls"| node_package
node_package -->|"imports"| node_compliment
node_package -->|"imports"| node_cube
node_package -->|"imports"| node_cuberoot
node_package -->|"imports"| node_divisibility
node_package -->|"imports"| node_division
node_package -->|"imports"| node_multiply
node_package -->|"imports"| node_recurring
node_package -->|"imports"| node_square
node_package -->|"imports"| node_squareroot

click node_package "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/__init__.py"
click node_multiply "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/multiply.py"
click node_square "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/square.py"
click node_cube "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/cube.py"
click node_squareroot "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/squareroot.py"
click node_cuberoot "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/cuberoot.py"
click node_divisibility "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/divisibility.py"
click node_division "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/division.py"
click node_recurring "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/recurring.py"
click node_compliment "https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/compliment.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_multiply,node_square,node_cube,node_user toneBlue
class node_squareroot,node_cuberoot,node_divisibility toneAmber
class node_division,node_recurring,node_compliment,node_package toneMint
```

## Components

### Powers and products

- [Multiplication](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/multiply.py): `vedicpy/multiply.py`
- [Square](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/square.py): `vedicpy/square.py`
- [Cube](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/cube.py): `vedicpy/cube.py`

### Roots and divisibility

- [Square root](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/squareroot.py): `vedicpy/squareroot.py`
- [Cube root](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/cuberoot.py): `vedicpy/cuberoot.py`
- [Divisibility](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/divisibility.py): `vedicpy/divisibility.py`

### Number operations

- [Division by nine](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/division.py): `vedicpy/division.py`
- [Recurring fractions](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/recurring.py): `vedicpy/recurring.py`
- [Complement](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/compliment.py): `vedicpy/compliment.py`

### Other components

- **Python user**
- [vedicpy API](https://github.com/utkarsh0702/vedicpy/blob/master/vedicpy/__init__.py): `vedicpy/__init__.py`

## Connections

- Python user → vedicpy API: imports and calls (evidence: `README.md`)
- vedicpy API → Complement: imports (evidence: `vedicpy/__init__.py`)
- vedicpy API → Cube: imports (evidence: `vedicpy/__init__.py`)
- vedicpy API → Cube root: imports (evidence: `vedicpy/__init__.py`)
- vedicpy API → Divisibility: imports (evidence: `vedicpy/__init__.py`)
- vedicpy API → Division by nine: imports (evidence: `vedicpy/__init__.py`)
- vedicpy API → Multiplication: imports (evidence: `vedicpy/__init__.py`)
- vedicpy API → Recurring fractions: imports (evidence: `vedicpy/__init__.py`)
- vedicpy API → Square: imports (evidence: `vedicpy/__init__.py`)
- vedicpy API → Square root: imports (evidence: `vedicpy/__init__.py`)
