# pilog123/team_python_project_files architecture

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

- Interactive diagram: https://gitdiagram.com/pilog123/team_python_project_files
- Repository: https://github.com/pilog123/team_python_project_files

## Overview

This repository is a collection of independent Python data-quality and allocation projects, not one unified application; there is no README describing a single product. A documented-in-source workflow is class allocation: a client submits a request to the allocation endpoint, which selects an analysis, invokes allocation or reference processing, and persists a response. Other major branches include purchase-order matching, record-validation tools, facial-analysis APIs, and data-analysis scripts. Some relationships below are explicit in excerpts or the source index; unsampled subsystems are shown without guessed call paths.

Main entry points: [`Gopi Projects/DHS_RPA_Validations/new_qctools.py`](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/new_qctools.py) (QC tools), [`Rahul Projects/Class Allocation_New/Server Files/allocation_caller_TEST_05.09.22.py`](https://github.com/pilog123/team_python_project_files/blob/master/Rahul%20Projects/Class%20Allocation_New/Server%20Files/allocation_caller_TEST_05.09.22.py) (Allocation endpoint), [`Gopi Projects/DHS_RPA_Validations/similar_pattern.py`](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/similar_pattern.py) (Pattern matching), [`Gopi Projects/DHS_RPA_Validations/RPA_VALIDATION_API_02_03_2022.py`](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/RPA_VALIDATION_API_02_03_2022.py) (RPA validation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_allocation["Class allocation"]
  node_allocation_api["Allocation endpoint"]
  node_char_allocate["Characteristic allocation"]
  node_reference_extract["Reference extraction<br/>[REFERENCE.py]"]
  node_db_connector["Oracle connector<br/>[ora_connect.py]"]
  node_class_terms["Class and UNSPSC"]
  node_class_rules["Class allocation rules"]
end

subgraph group_quality["Record quality"]
  node_rpa_api["RPA validation"]
  node_qc_tools["QC tools<br/>[new_qctools.py]"]
  node_similar_pattern["Pattern matching<br/>[similar_pattern.py]"]
  node_char_values["Characteristic checks"]
  node_class_terms_check["Class-term checks"]
  node_document_check["Document checks"]
  node_reference_check["Reference checks"]
  node_long_desc_check["Description checks"]
  node_short_desc_check["Short-text checks"]
  node_vendor_check["Vendor checks"]
  node_word_replace["Word replacement"]
end

subgraph group_matching["PO matching"]
  node_po_api["PO matching API<br/>[api.py]"]
  node_po_match["PO comparison<br/>[PO_match9.py]"]
end

subgraph group_media["Media analysis"]
  node_emotion_api["Emotion API<br/>[api.py]"]
  node_emotion_model_api["Emotion analysis API"]
  node_emotion_db_api["Emotion data API"]
end

subgraph group_analytics["Other analytics"]
  node_news_feed["News collection"]
  node_news_analysis["News analysis<br/>[live_news.py]"]
  node_youtube_data["YouTube data<br/>[youtube_data.py]"]
  node_youtube_comments["YouTube comments"]
  node_youtube_update["YouTube updates"]
  node_dha_report["DHA reporting"]
end

node_client(("API client"))

node_client -.->|"submits request"| node_allocation_api
node_allocation_api -->|"invokes analysis"| node_char_allocate
node_allocation_api -->|"runs extraction"| node_reference_extract
node_allocation_api -->|"imports connector"| node_db_connector
node_qc_tools -->|"uses patterns"| node_similar_pattern
node_rpa_api -->|"uses patterns"| node_similar_pattern
node_qc_tools -->|"imports checks"| node_char_values
node_qc_tools -->|"imports checks"| node_class_terms_check
node_qc_tools -->|"imports checks"| node_document_check
node_qc_tools -->|"imports checks"| node_reference_check
node_qc_tools -->|"imports checks"| node_long_desc_check
node_qc_tools -->|"imports checks"| node_short_desc_check
node_qc_tools -->|"imports checks"| node_vendor_check
node_qc_tools -->|"imports replacement"| node_word_replace
node_po_api -->|"calls matcher"| node_po_match

click node_allocation_api "https://github.com/pilog123/team_python_project_files/blob/master/Rahul%20Projects/Class%20Allocation_New/Server%20Files/allocation_caller_TEST_05.09.22.py"
click node_char_allocate "https://github.com/pilog123/team_python_project_files/blob/master/Keerthi%20Projects/New%20folder/CHAR_ALLOCATION_LIVE.py"
click node_reference_extract "https://github.com/pilog123/team_python_project_files/blob/master/Class%20Allocation_New/Server%20Test/REFERENCE.py"
click node_db_connector "https://github.com/pilog123/team_python_project_files/blob/master/Class%20Allocation_New/Server%20Files/isk_connectit/ora_connect.py"
click node_class_terms "https://github.com/pilog123/team_python_project_files/blob/master/Class%20Allocation_New/Server%20Files/CLASS_AND_UNSPSC.py"
click node_class_rules "https://github.com/pilog123/team_python_project_files/blob/master/Class%20Allocation_New/Server%20Files/CLASS_Allocation%2025-01.py"
click node_rpa_api "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/RPA_VALIDATION_API_02_03_2022.py"
click node_qc_tools "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/new_qctools.py"
click node_similar_pattern "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/similar_pattern.py"
click node_char_values "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Char_Values_IN_FFT.py"
click node_class_terms_check "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Class_Terms_IN_FFT.py"
click node_document_check "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/DocumentNo_IN_FFT.py"
click node_reference_check "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/ReferenceNo_IN_FFT.py"
click node_long_desc_check "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Same_Long_Desc_Diff_Class.py"
click node_short_desc_check "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Same_Short_Desc_Diff_Class.py"
click node_vendor_check "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Vendor_Name_IN_FFT.py"
click node_word_replace "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/word_replacement.py"
click node_po_api "https://github.com/pilog123/team_python_project_files/blob/master/Rahul%20Projects/PO_Match/api.py"
click node_po_match "https://github.com/pilog123/team_python_project_files/blob/master/Rahul%20Projects/PO_Match/PO_match9.py"
click node_emotion_api "https://github.com/pilog123/team_python_project_files/blob/master/Keerthi%20Projects/New%20folder/FACIAL_EMOTION/api.py"
click node_emotion_model_api "https://github.com/pilog123/team_python_project_files/blob/master/Keerthi%20Projects/New%20folder/FACIAL_EMOTION/FACIAL_EMOTION_API.py"
click node_emotion_db_api "https://github.com/pilog123/team_python_project_files/blob/master/Keerthi%20Projects/New%20folder/FACIAL_EMOTION/FACIAL_ANALYSIS_API_DB.py"
click node_news_feed "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/online_news/google_news_feed.py"
click node_news_analysis "https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/online_news/live_news.py"
click node_youtube_data "https://github.com/pilog123/team_python_project_files/blob/master/Sravani%20Projects/youtube_data_update/youtube_data.py"
click node_youtube_comments "https://github.com/pilog123/team_python_project_files/blob/master/Sravani%20Projects/youtube_data_update/youtube_comments.py"
click node_youtube_update "https://github.com/pilog123/team_python_project_files/blob/master/Sravani%20Projects/youtube_data_update/changed_youtube_data.py"
click node_dha_report "https://github.com/pilog123/team_python_project_files/blob/master/Raviteja%20Projects/DHA%20and%20SABIC/Server_Files/DHA_ALLOCATION_TEST_ORIGINAL.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_allocation_api,node_char_allocate,node_reference_extract,node_db_connector,node_class_terms,node_class_rules,node_client toneBlue
class node_rpa_api,node_qc_tools,node_similar_pattern,node_char_values,node_class_terms_check,node_document_check,node_reference_check,node_long_desc_check,node_short_desc_check,node_vendor_check,node_word_replace toneAmber
class node_po_api,node_po_match toneMint
class node_emotion_api,node_emotion_model_api,node_emotion_db_api toneRose
class node_news_feed,node_news_analysis,node_youtube_data,node_youtube_comments,node_youtube_update,node_dha_report toneIndigo
```

## Components

### Class allocation

- [Allocation endpoint](https://github.com/pilog123/team_python_project_files/blob/master/Rahul%20Projects/Class%20Allocation_New/Server%20Files/allocation_caller_TEST_05.09.22.py): `Rahul Projects/Class Allocation_New/Server Files/allocation_caller_TEST_05.09.22.py`
- [Characteristic allocation](https://github.com/pilog123/team_python_project_files/blob/master/Keerthi%20Projects/New%20folder/CHAR_ALLOCATION_LIVE.py): `Keerthi Projects/New folder/CHAR_ALLOCATION_LIVE.py`
- [Reference extraction](https://github.com/pilog123/team_python_project_files/blob/master/Class%20Allocation_New/Server%20Test/REFERENCE.py): `Class Allocation_New/Server Test/REFERENCE.py`
- [Oracle connector](https://github.com/pilog123/team_python_project_files/blob/master/Class%20Allocation_New/Server%20Files/isk_connectit/ora_connect.py): `Class Allocation_New/Server Files/isk_connectit/ora_connect.py`
- [Class and UNSPSC](https://github.com/pilog123/team_python_project_files/blob/master/Class%20Allocation_New/Server%20Files/CLASS_AND_UNSPSC.py): `Class Allocation_New/Server Files/CLASS_AND_UNSPSC.py`
- [Class allocation rules](https://github.com/pilog123/team_python_project_files/blob/master/Class%20Allocation_New/Server%20Files/CLASS_Allocation%2025-01.py): `Class Allocation_New/Server Files/CLASS_Allocation 25-01.py`

### Record quality

- [RPA validation](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/RPA_VALIDATION_API_02_03_2022.py): `Gopi Projects/DHS_RPA_Validations/RPA_VALIDATION_API_02_03_2022.py`
- [QC tools](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/new_qctools.py): `Gopi Projects/DHS_RPA_Validations/new_qctools.py`
- [Pattern matching](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/similar_pattern.py): `Gopi Projects/DHS_RPA_Validations/similar_pattern.py`
- [Characteristic checks](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Char_Values_IN_FFT.py): `Gopi Projects/DHS_RPA_Validations/Char_Values_IN_FFT.py`
- [Class-term checks](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Class_Terms_IN_FFT.py): `Gopi Projects/DHS_RPA_Validations/Class_Terms_IN_FFT.py`
- [Document checks](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/DocumentNo_IN_FFT.py): `Gopi Projects/DHS_RPA_Validations/DocumentNo_IN_FFT.py`
- [Reference checks](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/ReferenceNo_IN_FFT.py): `Gopi Projects/DHS_RPA_Validations/ReferenceNo_IN_FFT.py`
- [Description checks](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Same_Long_Desc_Diff_Class.py): `Gopi Projects/DHS_RPA_Validations/Same_Long_Desc_Diff_Class.py`
- [Short-text checks](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Same_Short_Desc_Diff_Class.py): `Gopi Projects/DHS_RPA_Validations/Same_Short_Desc_Diff_Class.py`
- [Vendor checks](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/Vendor_Name_IN_FFT.py): `Gopi Projects/DHS_RPA_Validations/Vendor_Name_IN_FFT.py`
- [Word replacement](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/word_replacement.py): `Gopi Projects/DHS_RPA_Validations/word_replacement.py`

### PO matching

- [PO matching API](https://github.com/pilog123/team_python_project_files/blob/master/Rahul%20Projects/PO_Match/api.py): `Rahul Projects/PO_Match/api.py`
- [PO comparison](https://github.com/pilog123/team_python_project_files/blob/master/Rahul%20Projects/PO_Match/PO_match9.py): `Rahul Projects/PO_Match/PO_match9.py`

### Media analysis

- [Emotion API](https://github.com/pilog123/team_python_project_files/blob/master/Keerthi%20Projects/New%20folder/FACIAL_EMOTION/api.py): `Keerthi Projects/New folder/FACIAL_EMOTION/api.py`
- [Emotion analysis API](https://github.com/pilog123/team_python_project_files/blob/master/Keerthi%20Projects/New%20folder/FACIAL_EMOTION/FACIAL_EMOTION_API.py): `Keerthi Projects/New folder/FACIAL_EMOTION/FACIAL_EMOTION_API.py`
- [Emotion data API](https://github.com/pilog123/team_python_project_files/blob/master/Keerthi%20Projects/New%20folder/FACIAL_EMOTION/FACIAL_ANALYSIS_API_DB.py): `Keerthi Projects/New folder/FACIAL_EMOTION/FACIAL_ANALYSIS_API_DB.py`

### Other analytics

- [News collection](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/online_news/google_news_feed.py): `Gopi Projects/DHS_RPA_Validations/online_news/google_news_feed.py`
- [News analysis](https://github.com/pilog123/team_python_project_files/blob/master/Gopi%20Projects/DHS_RPA_Validations/online_news/live_news.py): `Gopi Projects/DHS_RPA_Validations/online_news/live_news.py`
- [YouTube data](https://github.com/pilog123/team_python_project_files/blob/master/Sravani%20Projects/youtube_data_update/youtube_data.py): `Sravani Projects/youtube_data_update/youtube_data.py`
- [YouTube comments](https://github.com/pilog123/team_python_project_files/blob/master/Sravani%20Projects/youtube_data_update/youtube_comments.py): `Sravani Projects/youtube_data_update/youtube_comments.py`
- [YouTube updates](https://github.com/pilog123/team_python_project_files/blob/master/Sravani%20Projects/youtube_data_update/changed_youtube_data.py): `Sravani Projects/youtube_data_update/changed_youtube_data.py`
- [DHA reporting](https://github.com/pilog123/team_python_project_files/blob/master/Raviteja%20Projects/DHA%20and%20SABIC/Server_Files/DHA_ALLOCATION_TEST_ORIGINAL.py): `Raviteja Projects/DHA and SABIC/Server_Files/DHA_ALLOCATION_TEST_ORIGINAL.py`

### Other components

- **API client**

## Connections

- API client → Allocation endpoint: submits request
- Allocation endpoint → Characteristic allocation: invokes analysis (evidence: `Rahul Projects/Class Allocation_New/Server Files/allocation_caller_TEST_05.09.22.py`)
- Allocation endpoint → Reference extraction: runs extraction (evidence: `Rahul Projects/Class Allocation_New/Server Files/allocation_caller_TEST_05.09.22.py`)
- Allocation endpoint → Oracle connector: imports connector (evidence: `Rahul Projects/Class Allocation_New/Server Files/allocation_caller_TEST_05.09.22.py`)
- QC tools → Pattern matching: uses patterns (evidence: `Gopi Projects/DHS_RPA_Validations/new_qctools.py`)
- RPA validation → Pattern matching: uses patterns (evidence: `Gopi Projects/DHS_RPA_Validations/RPA_VALIDATION_API_02_03_2022.py`)
- QC tools → Characteristic checks: imports checks (evidence: `Gopi Projects/DHS_RPA_Validations/new_qctools.py`)
- QC tools → Class-term checks: imports checks (evidence: `Gopi Projects/DHS_RPA_Validations/new_qctools.py`)
- QC tools → Document checks: imports checks (evidence: `Gopi Projects/DHS_RPA_Validations/new_qctools.py`)
- QC tools → Reference checks: imports checks (evidence: `Gopi Projects/DHS_RPA_Validations/new_qctools.py`)
- QC tools → Description checks: imports checks (evidence: `Gopi Projects/DHS_RPA_Validations/new_qctools.py`)
- QC tools → Short-text checks: imports checks (evidence: `Gopi Projects/DHS_RPA_Validations/new_qctools.py`)
- QC tools → Vendor checks: imports checks (evidence: `Gopi Projects/DHS_RPA_Validations/new_qctools.py`)
- QC tools → Word replacement: imports replacement (evidence: `Gopi Projects/DHS_RPA_Validations/new_qctools.py`)
- PO matching API → PO comparison: calls matcher (evidence: `Rahul Projects/PO_Match/api.py`)
