# adithya-netapalli/python-case-studies architecture

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

- Interactive diagram: https://gitdiagram.com/adithya-netapalli/python-case-studies
- Repository: https://github.com/adithya-netapalli/python-case-studies

## Overview

This repository is a collection of three independent Python case studies: a local-news command-line manager, a movie-management command-line system, and a FastAPI student-management API. Users enter news or movie actions through the command line; each entry point dispatches to domain functions backed by in-memory data. Student clients call API endpoints that read and modify in-memory student records. The movie system also offers filtering, analytics, and recommendations. Relationships are based on the sampled source; the README identifies the projects but documents no additional runtime integrations.

Main entry points: [`movie-management-system/main.py`](https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/main.py) (Movie CLI), [`local_news_manager/main.py`](https://github.com/adithya-netapalli/python-case-studies/blob/main/local_news_manager/main.py) (News CLI), [`local_news_manager/func.py`](https://github.com/adithya-netapalli/python-case-studies/blob/main/local_news_manager/func.py) (News Operations), [`movie-management-system/database.py`](https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/database.py) (Catalog Operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_news["Local News"]
  node_news_cli["News CLI<br/>[main.py]"]
  node_news_functions["News Operations<br/>[func.py]"]
  node_news_state[("News List<br/>[func.py]")]
end

subgraph group_movies["Movie Management"]
  node_movie_cli["Movie CLI<br/>[main.py]"]
  node_movie_catalog["Catalog Operations<br/>[database.py]"]
  node_movie_analytics["Analytics and Recommendations<br/>[database.py]"]
  node_movie_state[("Movie List<br/>[database.py]")]
end

subgraph group_students["Student API"]
  node_student_api["Student Endpoints<br/>[student-api.py]"]
  node_student_state[("Student Records<br/>[student-api.py]")]
end

node_news_user(("News User"))
node_movie_user(("Movie User"))
node_student_client(("API Client"))

node_news_user -->|"enters choices"| node_news_cli
node_news_cli -->|"calls operations"| node_news_functions
node_news_functions -->|"reads and updates"| node_news_state
node_movie_user -->|"enters choices"| node_movie_cli
node_movie_cli -->|"calls catalog functions"| node_movie_catalog
node_movie_cli -->|"calls analysis functions"| node_movie_analytics
node_movie_catalog -->|"reads and updates"| node_movie_state
node_movie_analytics -->|"reads movies"| node_movie_state
node_student_client -->|"calls endpoints"| node_student_api
node_student_api -->|"reads and updates"| node_student_state

click node_news_cli "https://github.com/adithya-netapalli/python-case-studies/blob/main/local_news_manager/main.py"
click node_news_functions "https://github.com/adithya-netapalli/python-case-studies/blob/main/local_news_manager/func.py"
click node_news_state "https://github.com/adithya-netapalli/python-case-studies/blob/main/local_news_manager/func.py"
click node_movie_cli "https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/main.py"
click node_movie_catalog "https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/database.py"
click node_movie_analytics "https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/database.py"
click node_movie_state "https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/database.py"
click node_student_api "https://github.com/adithya-netapalli/python-case-studies/blob/main/student-management/student-api.py"
click node_student_state "https://github.com/adithya-netapalli/python-case-studies/blob/main/student-management/student-api.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_news_cli,node_news_functions,node_news_state,node_news_user,node_movie_user,node_student_client toneBlue
class node_movie_cli,node_movie_catalog,node_movie_analytics,node_movie_state toneAmber
class node_student_api,node_student_state toneMint
```

## Components

### Local News

- [News CLI](https://github.com/adithya-netapalli/python-case-studies/blob/main/local_news_manager/main.py): `local_news_manager/main.py`
- [News Operations](https://github.com/adithya-netapalli/python-case-studies/blob/main/local_news_manager/func.py): `local_news_manager/func.py`
- [News List](https://github.com/adithya-netapalli/python-case-studies/blob/main/local_news_manager/func.py): `local_news_manager/func.py`

### Movie Management

- [Movie CLI](https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/main.py): `movie-management-system/main.py`
- [Catalog Operations](https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/database.py): `movie-management-system/database.py`
- [Analytics and Recommendations](https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/database.py): `movie-management-system/database.py`
- [Movie List](https://github.com/adithya-netapalli/python-case-studies/blob/main/movie-management-system/database.py): `movie-management-system/database.py`

### Student API

- [Student Endpoints](https://github.com/adithya-netapalli/python-case-studies/blob/main/student-management/student-api.py): `student-management/student-api.py`
- [Student Records](https://github.com/adithya-netapalli/python-case-studies/blob/main/student-management/student-api.py): `student-management/student-api.py`

### Other components

- **News User**
- **Movie User**
- **API Client**

## Connections

- News User → News CLI: enters choices (evidence: `local_news_manager/main.py`)
- News CLI → News Operations: calls operations (evidence: `local_news_manager/main.py`)
- News Operations → News List: reads and updates (evidence: `local_news_manager/func.py`)
- Movie User → Movie CLI: enters choices (evidence: `movie-management-system/main.py`)
- Movie CLI → Catalog Operations: calls catalog functions (evidence: `movie-management-system/main.py`)
- Movie CLI → Analytics and Recommendations: calls analysis functions (evidence: `movie-management-system/main.py`)
- Catalog Operations → Movie List: reads and updates (evidence: `movie-management-system/database.py`)
- Analytics and Recommendations → Movie List: reads movies (evidence: `movie-management-system/database.py`)
- API Client → Student Endpoints: calls endpoints (evidence: `student-management/student-api.py`)
- Student Endpoints → Student Records: reads and updates (evidence: `student-management/student-api.py`)
