# enginkantar/seattle-elektrikci architecture

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

- Interactive diagram: https://gitdiagram.com/enginkantar/seattle-elektrikci
- Repository: https://github.com/enginkantar/seattle-elektrikci

## Overview

This Turkish-first command-line toolkit helps Seattle homeowners find residential electrical contractors using city permit data, then compare contractor quotes. The primary workflow is: search permits near an address or across Seattle, filter and rank contractors, contact candidates and collect quotes, then generate a normalized price and risk comparison. The repository also retains an earlier ZIP-and-remodel search. The scanning stages are implemented within single scripts; the README documents their flow, while the sampled excerpts show selected internals rather than every step.

Main entry points: [`tara_v2.py`](https://github.com/enginkantar/seattle-elektrikci/blob/main/tara_v2.py) (Residential permit search), [`tara.py`](https://github.com/enginkantar/seattle-elektrikci/blob/main/tara.py) (ZIP remodel scan), [`teklif.py`](https://github.com/enginkantar/seattle-elektrikci/blob/main/teklif.py) (Quote comparison), [`teklifler.ornek.json`](https://github.com/enginkantar/seattle-elektrikci/blob/main/teklifler.ornek.json) (Quote JSON template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Contractor discovery"]
  node_v2_reference["Address reference<br/>[tara_v2.py]"]
  node_v2_permits["Residential permit search<br/>[tara_v2.py]"]
  node_v2_filter["Contractor ranking<br/>[tara_v2.py]"]
  node_legacy_scan["ZIP remodel scan<br/>[tara.py]"]
end

subgraph group_quotes["Quote evaluation"]
  node_quote_template["Quote JSON template"]
  node_quote_input["Completed quote data"]
  node_quote_compare["Quote comparison<br/>[teklif.py]"]
end

subgraph group_outputs["User outputs"]
  node_candidate_report["Candidate CSV and summary"]
  node_comparison_report["Comparison report"]
end

node_homeowner(("Homeowner"))
node_citydata[("Seattle permits API")]
node_contact["Contact contractors"]

node_homeowner -->|"provides address"| node_v2_reference
node_v2_reference -->|"looks up coordinates"| node_citydata
node_homeowner -->|"sets search options"| node_v2_permits
node_citydata -->|"supplies permits"| node_v2_permits
node_v2_reference -->|"sets search area"| node_v2_permits
node_v2_permits -->|"passes permit records"| node_v2_filter
node_v2_filter -->|"writes candidates"| node_candidate_report
node_homeowner -->|"provides ZIP"| node_legacy_scan
node_citydata -->|"supplies permits"| node_legacy_scan
node_legacy_scan -->|"writes candidates"| node_candidate_report
node_candidate_report -->|"guides outreach"| node_contact
node_contact -->|"collects quotes"| node_quote_input
node_quote_template -->|"provides format"| node_quote_input
node_homeowner -->|"provides quote file"| node_quote_compare
node_quote_input -->|"supplies quote data"| node_quote_compare
node_quote_compare -->|"writes comparison"| node_comparison_report

click node_v2_reference "https://github.com/enginkantar/seattle-elektrikci/blob/main/tara_v2.py"
click node_v2_permits "https://github.com/enginkantar/seattle-elektrikci/blob/main/tara_v2.py"
click node_v2_filter "https://github.com/enginkantar/seattle-elektrikci/blob/main/tara_v2.py"
click node_legacy_scan "https://github.com/enginkantar/seattle-elektrikci/blob/main/tara.py"
click node_quote_template "https://github.com/enginkantar/seattle-elektrikci/blob/main/teklifler.ornek.json"
click node_quote_compare "https://github.com/enginkantar/seattle-elektrikci/blob/main/teklif.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_v2_reference,node_v2_permits,node_v2_filter,node_legacy_scan toneBlue
class node_quote_template,node_quote_input,node_quote_compare,node_citydata toneAmber
class node_candidate_report,node_comparison_report toneMint
class node_homeowner,node_contact toneIndigo
```

## Components

### Contractor discovery

- [Address reference](https://github.com/enginkantar/seattle-elektrikci/blob/main/tara_v2.py): `tara_v2.py`
- [Residential permit search](https://github.com/enginkantar/seattle-elektrikci/blob/main/tara_v2.py): `tara_v2.py`
- [Contractor ranking](https://github.com/enginkantar/seattle-elektrikci/blob/main/tara_v2.py): `tara_v2.py`
- [ZIP remodel scan](https://github.com/enginkantar/seattle-elektrikci/blob/main/tara.py): `tara.py`

### Quote evaluation

- [Quote JSON template](https://github.com/enginkantar/seattle-elektrikci/blob/main/teklifler.ornek.json): `teklifler.ornek.json`
- **Completed quote data**
- [Quote comparison](https://github.com/enginkantar/seattle-elektrikci/blob/main/teklif.py): `teklif.py`

### User outputs

- **Candidate CSV and summary**
- **Comparison report**

### Other components

- **Homeowner**
- **Seattle permits API**
- **Contact contractors**

## Connections

- Homeowner → Address reference: provides address (evidence: `README.md`)
- Address reference → Seattle permits API: looks up coordinates (evidence: `README.md`)
- Homeowner → Residential permit search: sets search options (evidence: `README.md`)
- Seattle permits API → Residential permit search: supplies permits (evidence: `README.md`)
- Address reference → Residential permit search: sets search area (evidence: `README.md`)
- Residential permit search → Contractor ranking: passes permit records (evidence: `README.md`)
- Contractor ranking → Candidate CSV and summary: writes candidates (evidence: `README.md`)
- Homeowner → ZIP remodel scan: provides ZIP (evidence: `README.md`)
- Seattle permits API → ZIP remodel scan: supplies permits (evidence: `README.md`)
- ZIP remodel scan → Candidate CSV and summary: writes candidates (evidence: `README.md`)
- Candidate CSV and summary → Contact contractors: guides outreach (evidence: `README.md`)
- Contact contractors → Completed quote data: collects quotes (evidence: `README.md`)
- Quote JSON template → Completed quote data: provides format (evidence: `README.md`)
- Homeowner → Quote comparison: provides quote file (evidence: `README.md`)
- Completed quote data → Quote comparison: supplies quote data (evidence: `README.md`)
- Quote comparison → Comparison report: writes comparison (evidence: `README.md`)
