# tcpd/ppi architecture

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

- Interactive diagram: https://gitdiagram.com/tcpd/ppi
- Repository: https://github.com/tcpd/ppi

## Overview

This repository distributes the TCPD Political Parties of India dataset, its current codebook, and an earlier codebook; it also includes an R script named for generating party metadata. The README describes the dataset and terms of use but does not document how the script relates to the CSV or what files it reads or writes. No source excerpts were available, so those implementation relationships are left unspecified.

Main entry points: [`TCPD-PPI_1962_2021.csv`](https://github.com/tcpd/ppi/blob/main/TCPD-PPI_1962_2021.csv) (Party dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Party data"]
  node_party_dataset["Party dataset"]
end

subgraph group_reference["Codebooks"]
  node_current_codebook["Current codebook"]
  node_prior_codebook["Prior codebook"]
end

subgraph group_metadata["Metadata tooling"]
  node_party_meta_generator["Party metadata generator"]
end

node_researcher(("Data user"))

node_researcher -->|"uses"| node_party_dataset

click node_party_dataset "https://github.com/tcpd/ppi/blob/main/TCPD-PPI_1962_2021.csv"
click node_current_codebook "https://github.com/tcpd/ppi/blob/main/2022Jan31CodebookPPI_1_0.pdf"
click node_prior_codebook "https://github.com/tcpd/ppi/blob/main/previous_codebooks/17Aug2021TCPDPPI_1_0.pdf"
click node_party_meta_generator "https://github.com/tcpd/ppi/blob/main/scripts/generate_party_meta_file.R"

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_party_dataset,node_researcher toneBlue
class node_current_codebook,node_prior_codebook toneAmber
class node_party_meta_generator toneMint
```

## Components

### Party data

- [Party dataset](https://github.com/tcpd/ppi/blob/main/TCPD-PPI_1962_2021.csv): `TCPD-PPI_1962_2021.csv`

### Codebooks

- [Current codebook](https://github.com/tcpd/ppi/blob/main/2022Jan31CodebookPPI_1_0.pdf): `2022Jan31CodebookPPI_1_0.pdf`
- [Prior codebook](https://github.com/tcpd/ppi/blob/main/previous_codebooks/17Aug2021TCPDPPI_1_0.pdf): `previous_codebooks/17Aug2021TCPDPPI_1_0.pdf`

### Metadata tooling

- [Party metadata generator](https://github.com/tcpd/ppi/blob/main/scripts/generate_party_meta_file.R): `scripts/generate_party_meta_file.R`

### Other components

- **Data user**

## Connections

- Data user → Party dataset: uses (evidence: `README.md`)
