# oscardug/30-days-of-python architecture

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

- Interactive diagram: https://gitdiagram.com/oscardug/30-days-of-python
- Repository: https://github.com/oscardug/30-days-of-python

## Overview

#### Purpose and Navigation
This is a documentation-first, 30-day Python learning curriculum, not a unified deployable application. The root entry point is `readme.md`, which links learners through Days 1–30. Each day is independently consumable and combines explanations, exercises, and occasional runnable examples.

Paths: `readme.md`, `01_Day_Introduction/helloworld.py`, `30_Day_Conclusions/30_conclusions.md`

#### Curriculum Spine
The primary control flow is sequential learning: Python foundations, control flow and abstractions, reliability and I/O, then ecosystem and applied topics. Markdown files are the authoritative instructional units; no central Python package orchestrates their execution.

Paths: `02_Day_Variables_builtin_functions/02_variables_builtin_functions.md`, `11_Day_Functions/11_functions.md`, `21_Day_Classes_and_objects/21_classes_and_objects.md`

#### Runnable Learning Examples
A small subset of days includes standalone Python scripts that learners execute directly with a local Python interpreter. These scripts are examples rather than a shared application: they have no indicated common runtime, package manifest, or cross-day dependency graph.

Paths: `02_Day_Variables_builtin_functions/variables.py`, `03_Day_Operators/day-3.py`, `04_Day_Strings/day_4.py`

#### Module and Package Boundary
Module/package lessons demonstrate local import boundaries through simple modules and packages. There are two independent example layouts: a Day 12 module pair and root-level package examples. They should be treated as instructional fixtures, not reusable production libraries.

Paths: `12_Day_Modules/main.py`, `12_Day_Modules/mymodule.py`, `mypackage/arithmetics.py`

#### Data, File, and Analysis Materials
The repository ships static inputs for lessons involving file handling, text processing, statistics, and Pandas. Learner code and lesson instructions consume local CSV, JSON, text, XML, and spreadsheet files; `22_Day_Web_scraping/scrapped_data.json` is a checked-in scraped-output artifact.

Paths: `data/F500.csv`, `data/countries_data.json`, `files/excel_example.xlsx`

#### Applied Integration Topics
Later curriculum stages document external-facing Python domains: web scraping, web development, MongoDB, APIs, and API construction. The file tree only establishes lesson documentation for most of these, so service contracts, credentials, and active infrastructure should not be inferred from the curriculum pages alone.

Paths: `22_Day_Web_scraping/22_web_scraping.md`, `27_Day_Python_with_mongodb/27_python_with_mongodb.md`, `29_Day_Building_API/29_building_API.md`

#### Isolated Flask Web Example
`python_for_web/` is the sole app-shaped subtree. Its runtime boundary is a Python web process defined by `app.py`, with dependencies in its own `requirements.txt`, HTML templates, static CSS, and a `Procfile` indicating process-hosting compatibility. It is isolated from the curriculum scripts and data directories.

Paths: `python_for_web/app.py`, `python_for_web/requirements.txt`, `python_for_web/Procfile`

#### Localization and Content Variants
Translations mirror portions of the curriculum rather than being generated at runtime. English is canonical at the root; Chinese, Spanish, Korean/korean, Portuguese, and Ukrainian contain varying coverage and independently named navigation readmes. Changes to curriculum structure may require manual synchronization across these content trees.

Paths: `Chinese/README.md`, `Spanish/README_sp.md`, `Korean/readme_ko.md`

Main entry points: [`readme.md`](https://github.com/oscardug/30-days-of-python/blob/master/readme.md) (Root navigation), [`22_Day_Web_scraping/22_web_scraping.md`](https://github.com/oscardug/30-days-of-python/blob/master/22_Day_Web_scraping/22_web_scraping.md) (Applied topic lessons), [`02_Day_Variables_builtin_functions/02_variables_builtin_functions.md`](https://github.com/oscardug/30-days-of-python/blob/master/02_Day_Variables_builtin_functions/02_variables_builtin_functions.md) (Foundations lesson), [`11_Day_Functions/11_functions.md`](https://github.com/oscardug/30-days-of-python/blob/master/11_Day_Functions/11_functions.md) (Functions lesson)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_curriculum["30-Day Curriculum"]
  node_root_readme["Root navigation<br/>Markdown index<br/>[readme.md]"]
  node_foundations["Foundations lesson<br/>Markdown lesson"]
  node_functions["Functions lesson<br/>Markdown lesson<br/>[11_functions.md]"]
  node_classes["Classes lesson<br/>Markdown lesson"]
  node_integration_topics["Applied topic lessons<br/>Markdown lessons<br/>[22_web_scraping.md]"]
  node_conclusions["Course conclusions<br/>Markdown lesson<br/>[30_conclusions.md]"]
end

subgraph group_examples["Learning Fixtures"]
  node_hello_example["Hello World<br/>Python script<br/>[helloworld.py]"]
  node_script_examples["Standalone scripts<br/>Python scripts<br/>[variables.py]"]
  node_module_main["Module demo entry<br/>Python script<br/>[main.py]"]
  node_local_module["Local module<br/>Python module<br/>[mymodule.py]"]
  node_package_example["Package arithmetic<br/>Python package module<br/>[arithmetics.py]"]
end

subgraph group_web["Isolated Web Example"]
  node_web_app{{"Flask app<br/>Python web process<br/>[app.py]"}}
  node_web_requirements["Web dependencies<br/>Requirements manifest<br/>[requirements.txt]"]
  node_web_procfile["Process hosting config<br/>Procfile"]
end

subgraph group_localization["Translations"]
  node_chinese_translation["Chinese navigation<br/>Translated Markdown<br/>[README.md]"]
  node_spanish_translation["Spanish navigation<br/>Translated Markdown<br/>[README_sp.md]"]
  node_korean_translation["Korean navigation<br/>Translated Markdown<br/>[readme_ko.md]"]
end

node_lesson_data[("Static lesson data<br/>Data files<br/>[F500.csv]")]
node_scraped_artifact["Scraped data artifact<br/>JSON artifact<br/>[scrapped_data.json]"]

node_root_readme -->|"starts learning path"| node_foundations
node_foundations -->|"progresses to"| node_functions
node_functions -->|"progresses to"| node_classes
node_classes -->|"progresses to"| node_integration_topics
node_integration_topics -->|"continues to"| node_conclusions
node_foundations -.->|"has runnable examples"| node_script_examples
node_root_readme -.->|"introduces"| node_hello_example
node_module_main -->|"imports"| node_local_module
node_integration_topics -.->|"uses local inputs"| node_lesson_data
node_integration_topics -.->|"includes output artifact"| node_scraped_artifact
node_web_requirements -->|"defines dependencies for"| node_web_app
node_web_procfile -->|"declares process for"| node_web_app
node_root_readme -.->|"has translated variant"| node_chinese_translation
node_root_readme -.->|"has translated variant"| node_spanish_translation
node_root_readme -.->|"has translated variant"| node_korean_translation

click node_root_readme "https://github.com/oscardug/30-days-of-python/blob/master/readme.md"
click node_foundations "https://github.com/oscardug/30-days-of-python/blob/master/02_Day_Variables_builtin_functions/02_variables_builtin_functions.md"
click node_functions "https://github.com/oscardug/30-days-of-python/blob/master/11_Day_Functions/11_functions.md"
click node_classes "https://github.com/oscardug/30-days-of-python/blob/master/21_Day_Classes_and_objects/21_classes_and_objects.md"
click node_integration_topics "https://github.com/oscardug/30-days-of-python/blob/master/22_Day_Web_scraping/22_web_scraping.md"
click node_conclusions "https://github.com/oscardug/30-days-of-python/blob/master/30_Day_Conclusions/30_conclusions.md"
click node_hello_example "https://github.com/oscardug/30-days-of-python/blob/master/01_Day_Introduction/helloworld.py"
click node_script_examples "https://github.com/oscardug/30-days-of-python/blob/master/02_Day_Variables_builtin_functions/variables.py"
click node_module_main "https://github.com/oscardug/30-days-of-python/blob/master/12_Day_Modules/main.py"
click node_local_module "https://github.com/oscardug/30-days-of-python/blob/master/12_Day_Modules/mymodule.py"
click node_package_example "https://github.com/oscardug/30-days-of-python/blob/master/mypackage/arithmetics.py"
click node_lesson_data "https://github.com/oscardug/30-days-of-python/blob/master/data/F500.csv"
click node_scraped_artifact "https://github.com/oscardug/30-days-of-python/blob/master/22_Day_Web_scraping/scrapped_data.json"
click node_web_app "https://github.com/oscardug/30-days-of-python/blob/master/python_for_web/app.py"
click node_web_requirements "https://github.com/oscardug/30-days-of-python/blob/master/python_for_web/requirements.txt"
click node_web_procfile "https://github.com/oscardug/30-days-of-python/blob/master/python_for_web/Procfile"
click node_chinese_translation "https://github.com/oscardug/30-days-of-python/blob/master/Chinese/README.md"
click node_spanish_translation "https://github.com/oscardug/30-days-of-python/blob/master/Spanish/README_sp.md"
click node_korean_translation "https://github.com/oscardug/30-days-of-python/blob/master/Korean/readme_ko.md"

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_root_readme,node_foundations,node_functions,node_classes,node_integration_topics,node_conclusions toneBlue
class node_hello_example,node_script_examples,node_module_main,node_local_module,node_package_example toneAmber
class node_web_app,node_web_requirements,node_web_procfile toneMint
class node_chinese_translation,node_spanish_translation,node_korean_translation toneRose
class node_lesson_data,node_scraped_artifact toneNeutral
```

## Components

### 30-Day Curriculum

Sequential Markdown-based learning path.

- [Root navigation](https://github.com/oscardug/30-days-of-python/blob/master/readme.md): Markdown index · Entry point linking learners through Days 1–30. · `readme.md`
- [Foundations lesson](https://github.com/oscardug/30-days-of-python/blob/master/02_Day_Variables_builtin_functions/02_variables_builtin_functions.md): Markdown lesson · `02_Day_Variables_builtin_functions/02_variables_builtin_functions.md`
- [Functions lesson](https://github.com/oscardug/30-days-of-python/blob/master/11_Day_Functions/11_functions.md): Markdown lesson · `11_Day_Functions/11_functions.md`
- [Classes lesson](https://github.com/oscardug/30-days-of-python/blob/master/21_Day_Classes_and_objects/21_classes_and_objects.md): Markdown lesson · `21_Day_Classes_and_objects/21_classes_and_objects.md`
- [Applied topic lessons](https://github.com/oscardug/30-days-of-python/blob/master/22_Day_Web_scraping/22_web_scraping.md): Markdown lessons · Documents scraping, MongoDB, and API construction without asserting live services. · `22_Day_Web_scraping/22_web_scraping.md`
- [Course conclusions](https://github.com/oscardug/30-days-of-python/blob/master/30_Day_Conclusions/30_conclusions.md): Markdown lesson · `30_Day_Conclusions/30_conclusions.md`

### Learning Fixtures

Independent runnable and import examples.

- [Hello World](https://github.com/oscardug/30-days-of-python/blob/master/01_Day_Introduction/helloworld.py): Python script · Standalone introductory executable. · `01_Day_Introduction/helloworld.py`
- [Standalone scripts](https://github.com/oscardug/30-days-of-python/blob/master/02_Day_Variables_builtin_functions/variables.py): Python scripts · Learners execute these independently with local Python. · `02_Day_Variables_builtin_functions/variables.py`
- [Module demo entry](https://github.com/oscardug/30-days-of-python/blob/master/12_Day_Modules/main.py): Python script · Instructional importer for the local module example. · `12_Day_Modules/main.py`
- [Local module](https://github.com/oscardug/30-days-of-python/blob/master/12_Day_Modules/mymodule.py): Python module · `12_Day_Modules/mymodule.py`
- [Package arithmetic](https://github.com/oscardug/30-days-of-python/blob/master/mypackage/arithmetics.py): Python package module · Independent root-level package fixture. · `mypackage/arithmetics.py`

### Isolated Web Example

The repository's only app-shaped subtree.

- [Flask app](https://github.com/oscardug/30-days-of-python/blob/master/python_for_web/app.py): Python web process · Isolated web runtime, separate from curriculum scripts and data. · `python_for_web/app.py`
- [Web dependencies](https://github.com/oscardug/30-days-of-python/blob/master/python_for_web/requirements.txt): Requirements manifest · `python_for_web/requirements.txt`
- [Process hosting config](https://github.com/oscardug/30-days-of-python/blob/master/python_for_web/Procfile): Procfile · `python_for_web/Procfile`

### Translations

Manually maintained curriculum variants.

- [Chinese navigation](https://github.com/oscardug/30-days-of-python/blob/master/Chinese/README.md): Translated Markdown · `Chinese/README.md`
- [Spanish navigation](https://github.com/oscardug/30-days-of-python/blob/master/Spanish/README_sp.md): Translated Markdown · `Spanish/README_sp.md`
- [Korean navigation](https://github.com/oscardug/30-days-of-python/blob/master/Korean/readme_ko.md): Translated Markdown · `Korean/readme_ko.md`

### Other components

- [Static lesson data](https://github.com/oscardug/30-days-of-python/blob/master/data/F500.csv): Data files · Local inputs for file, text, statistics, and Pandas lessons. · `data/F500.csv`
- [Scraped data artifact](https://github.com/oscardug/30-days-of-python/blob/master/22_Day_Web_scraping/scrapped_data.json): JSON artifact · Checked-in output from the web-scraping lesson. · `22_Day_Web_scraping/scrapped_data.json`

## Connections

- Root navigation → Foundations lesson: starts learning path
- Foundations lesson → Functions lesson: progresses to
- Functions lesson → Classes lesson: progresses to
- Classes lesson → Applied topic lessons: progresses to
- Applied topic lessons → Course conclusions: continues to
- Foundations lesson → Standalone scripts: has runnable examples
- Root navigation → Hello World: introduces
- Module demo entry → Local module: imports
- Applied topic lessons → Static lesson data: uses local inputs
- Applied topic lessons → Scraped data artifact: includes output artifact
- Web dependencies → Flask app: defines dependencies for
- Process hosting config → Flask app: declares process for
- Root navigation → Chinese navigation: has translated variant
- Root navigation → Spanish navigation: has translated variant
- Root navigation → Korean navigation: has translated variant
