# techiescamp/python-for-devops architecture

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

- Interactive diagram: https://gitdiagram.com/techiescamp/python-for-devops
- Repository: https://github.com/techiescamp/python-for-devops

## Overview

This repository is a collection of Python-for-DevOps learning examples, not one integrated application. Its concrete workflows are independent scripts: provision an EC2 instance, create/load/query a DynamoDB table, connect to SQL databases, call Azure OpenAI, parse JSON, and execute shell commands. The README describes a much broader eight-week curriculum, but most listed projects are aspirations rather than implementations in this tree. The graph therefore focuses on demonstrated scripts and their visible external interactions; it does not infer links between examples.

Main entry points: [`boto3/dynamodb/loadData.py`](https://github.com/techiescamp/python-for-devops/blob/main/boto3/dynamodb/loadData.py) (Load records), [`awsrdsmysqlp.py`](https://github.com/techiescamp/python-for-devops/blob/main/awsrdsmysqlp.py) (Query MySQL), [`operating-system/shell-execution.py`](https://github.com/techiescamp/python-for-devops/blob/main/operating-system/shell-execution.py) (Run shell scripts), [`operating-system/files/script.sh`](https://github.com/techiescamp/python-for-devops/blob/main/operating-system/files/script.sh) (Shell scripts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cloud["Cloud examples"]
  node_ec2script["Provision EC2<br/>[create-instance.py]"]
  node_dynamo_create["Create table<br/>[createTable.py]"]
  node_dynamo_load["Load records<br/>[loadData.py]"]
  node_dynamo_query["Query records<br/>[query.py]"]
  node_azure_ai["Azure OpenAI call<br/>[main.py]"]
  node_data_file["Song records<br/>[data.json]"]
end

subgraph group_databases["Database examples"]
  node_mysql_script["Query MySQL<br/>[awsrdsmysqlp.py]"]
  node_postgres_script["Query PostgreSQL<br/>[postgresql.py]"]
end

subgraph group_fundamentals["Python fundamentals"]
  node_json_parse["Parse JSON<br/>[parse-json.py]"]
  node_json_file["Example JSON<br/>[example.json]"]
end

subgraph group_os["Operating system"]
  node_os_command["Run command"]
  node_os_shell["Run shell scripts<br/>[shell-execution.py]"]
  node_shell_file["Shell scripts<br/>[script.sh]"]
  node_shell_params["Parameterized script<br/>[param.sh]"]
end

node_aws_ec2["AWS EC2"]
node_aws_dynamo[("AWS DynamoDB")]
node_azure_openai["Azure OpenAI"]
node_secrets_mgr[("AWS Secrets Manager")]
node_mysql_db[("MySQL database")]
node_postgres_db[("PostgreSQL database")]

node_ec2script -->|"provisions resources"| node_aws_ec2
node_dynamo_create -->|"creates table"| node_aws_dynamo
node_dynamo_load -->|"reads records"| node_data_file
node_dynamo_load -->|"writes items"| node_aws_dynamo
node_dynamo_query -->|"scans and queries"| node_aws_dynamo
node_azure_ai -->|"requests completion"| node_azure_openai
node_mysql_script -->|"retrieves credentials"| node_secrets_mgr
node_mysql_script -->|"executes SQL"| node_mysql_db
node_postgres_script -->|"selects records"| node_postgres_db
node_json_parse -->|"reads and parses"| node_json_file
node_os_command -->|"executes command"| node_shell_file
node_os_shell -->|"runs script"| node_shell_file
node_os_shell -->|"runs with argument"| node_shell_params

click node_ec2script "https://github.com/techiescamp/python-for-devops/blob/main/boto3/ec2/create-instance.py"
click node_dynamo_create "https://github.com/techiescamp/python-for-devops/blob/main/boto3/dynamodb/createTable.py"
click node_dynamo_load "https://github.com/techiescamp/python-for-devops/blob/main/boto3/dynamodb/loadData.py"
click node_dynamo_query "https://github.com/techiescamp/python-for-devops/blob/main/boto3/dynamodb/query.py"
click node_azure_ai "https://github.com/techiescamp/python-for-devops/blob/main/azure-openapi/basic-api/main.py"
click node_mysql_script "https://github.com/techiescamp/python-for-devops/blob/main/awsrdsmysqlp.py"
click node_postgres_script "https://github.com/techiescamp/python-for-devops/blob/main/database/postgresql.py"
click node_json_parse "https://github.com/techiescamp/python-for-devops/blob/main/json/parse-json.py"
click node_json_file "https://github.com/techiescamp/python-for-devops/blob/main/json/files/example.json"
click node_os_command "https://github.com/techiescamp/python-for-devops/blob/main/operating-system/command-execution.py"
click node_os_shell "https://github.com/techiescamp/python-for-devops/blob/main/operating-system/shell-execution.py"
click node_shell_file "https://github.com/techiescamp/python-for-devops/blob/main/operating-system/files/script.sh"
click node_shell_params "https://github.com/techiescamp/python-for-devops/blob/main/operating-system/files/param.sh"
click node_data_file "https://github.com/techiescamp/python-for-devops/blob/main/boto3/dynamodb/data.json"

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_ec2script,node_dynamo_create,node_dynamo_load,node_dynamo_query,node_azure_ai,node_data_file toneBlue
class node_mysql_script,node_postgres_script,node_aws_dynamo,node_secrets_mgr,node_mysql_db,node_postgres_db toneAmber
class node_json_parse,node_json_file toneMint
class node_os_command,node_os_shell,node_shell_file,node_shell_params toneRose
class node_aws_ec2,node_azure_openai toneIndigo
```

## Components

### Cloud examples

- [Provision EC2](https://github.com/techiescamp/python-for-devops/blob/main/boto3/ec2/create-instance.py): `boto3/ec2/create-instance.py`
- [Create table](https://github.com/techiescamp/python-for-devops/blob/main/boto3/dynamodb/createTable.py): `boto3/dynamodb/createTable.py`
- [Load records](https://github.com/techiescamp/python-for-devops/blob/main/boto3/dynamodb/loadData.py): `boto3/dynamodb/loadData.py`
- [Query records](https://github.com/techiescamp/python-for-devops/blob/main/boto3/dynamodb/query.py): `boto3/dynamodb/query.py`
- [Azure OpenAI call](https://github.com/techiescamp/python-for-devops/blob/main/azure-openapi/basic-api/main.py): `azure-openapi/basic-api/main.py`
- [Song records](https://github.com/techiescamp/python-for-devops/blob/main/boto3/dynamodb/data.json): `boto3/dynamodb/data.json`

### Database examples

- [Query MySQL](https://github.com/techiescamp/python-for-devops/blob/main/awsrdsmysqlp.py): `awsrdsmysqlp.py`
- [Query PostgreSQL](https://github.com/techiescamp/python-for-devops/blob/main/database/postgresql.py): `database/postgresql.py`

### Python fundamentals

- [Parse JSON](https://github.com/techiescamp/python-for-devops/blob/main/json/parse-json.py): `json/parse-json.py`
- [Example JSON](https://github.com/techiescamp/python-for-devops/blob/main/json/files/example.json): `json/files/example.json`

### Operating system

- [Run command](https://github.com/techiescamp/python-for-devops/blob/main/operating-system/command-execution.py): `operating-system/command-execution.py`
- [Run shell scripts](https://github.com/techiescamp/python-for-devops/blob/main/operating-system/shell-execution.py): `operating-system/shell-execution.py`
- [Shell scripts](https://github.com/techiescamp/python-for-devops/blob/main/operating-system/files/script.sh): `operating-system/files/script.sh`
- [Parameterized script](https://github.com/techiescamp/python-for-devops/blob/main/operating-system/files/param.sh): `operating-system/files/param.sh`

### Other components

- **AWS EC2**
- **AWS DynamoDB**
- **Azure OpenAI**
- **AWS Secrets Manager**
- **MySQL database**
- **PostgreSQL database**

## Connections

- Provision EC2 → AWS EC2: provisions resources (evidence: `boto3/ec2/create-instance.py`)
- Create table → AWS DynamoDB: creates table (evidence: `boto3/dynamodb/createTable.py`)
- Load records → Song records: reads records (evidence: `boto3/dynamodb/loadData.py`)
- Load records → AWS DynamoDB: writes items (evidence: `boto3/dynamodb/loadData.py`)
- Query records → AWS DynamoDB: scans and queries (evidence: `boto3/dynamodb/query.py`)
- Azure OpenAI call → Azure OpenAI: requests completion (evidence: `azure-openapi/basic-api/main.py`)
- Query MySQL → AWS Secrets Manager: retrieves credentials (evidence: `awsrdsmysqlp.py`)
- Query MySQL → MySQL database: executes SQL (evidence: `awsrdsmysqlp.py`)
- Query PostgreSQL → PostgreSQL database: selects records (evidence: `database/postgresql.py`)
- Parse JSON → Example JSON: reads and parses (evidence: `json/parse-json.py`)
- Run command → Shell scripts: executes command (evidence: `operating-system/command-execution.py`)
- Run shell scripts → Shell scripts: runs script (evidence: `operating-system/shell-execution.py`)
- Run shell scripts → Parameterized script: runs with argument (evidence: `operating-system/shell-execution.py`)
