my-cloud-devops-consulting 1.1.202504180034__py3-none-any.whl → 1.1.202504191442__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- my_cloud_devops_consulting-1.1.202504191442.dist-info/METADATA +89 -0
- my_cloud_devops_consulting-1.1.202504191442.dist-info/RECORD +5 -0
- my_cloud_devops_consulting-1.1.202504180034.dist-info/METADATA +0 -59
- my_cloud_devops_consulting-1.1.202504180034.dist-info/RECORD +0 -5
- {my_cloud_devops_consulting-1.1.202504180034.dist-info → my_cloud_devops_consulting-1.1.202504191442.dist-info}/WHEEL +0 -0
- {my_cloud_devops_consulting-1.1.202504180034.dist-info → my_cloud_devops_consulting-1.1.202504191442.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,89 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: my-cloud-devops-consulting
|
3
|
+
Version: 1.1.202504191442
|
4
|
+
Summary: This is my consulting website for Cloud & DevOps services.
|
5
|
+
Home-page: https://github.com/Betrand1999/project-root
|
6
|
+
Author: Betrand Mutagha
|
7
|
+
Author-email: mmutagha@gmail.com
|
8
|
+
License: UNKNOWN
|
9
|
+
Platform: UNKNOWN
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
13
|
+
Classifier: Operating System :: OS Independent
|
14
|
+
Requires-Python: >=3.6
|
15
|
+
Description-Content-Type: text/markdown
|
16
|
+
Requires-Dist: Flask>=2.0
|
17
|
+
Requires-Dist: pymongo
|
18
|
+
Requires-Dist: werkzeug
|
19
|
+
Requires-Dist: requests
|
20
|
+
|
21
|
+
# Project‑Root
|
22
|
+
|
23
|
+
A full‑stack web application with an **API‑driven Python backend**, a **static/templated frontend**, and complete **container/Kubernetes** deployment workflows.
|
24
|
+
Security gates (Gitleaks) and CI/CD are handled through GitHub Actions.
|
25
|
+
|
26
|
+
---
|
27
|
+
##
|
28
|
+
crontab -e
|
29
|
+
#####
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
## Table of Contents
|
34
|
+
1. [Architecture](#architecture)
|
35
|
+
2. [Directory Layout](#directory-layout)
|
36
|
+
3. [Local Development](#local-development)
|
37
|
+
4. [Docker Usage](#docker-usage)
|
38
|
+
5. [Kubernetes Deployment](#kubernetes-deployment)
|
39
|
+
6. [CI/CD & Secret Scanning](#cicd--secret-scanning)
|
40
|
+
7. [Environment Variables](#environment-variables)
|
41
|
+
8. [Contributing](#contributing)
|
42
|
+
9. [License](#license)
|
43
|
+
|
44
|
+
---
|
45
|
+
|
46
|
+
## Architecture
|
47
|
+
```text
|
48
|
+
┌─────────────┐ HTTP ┌──────────────┐
|
49
|
+
│ Browser │ ───────────▶ │ Flask API │
|
50
|
+
│ (frontend) │ │ (backend) │
|
51
|
+
└─────────────┘ └──────────────┘
|
52
|
+
▲ │
|
53
|
+
│ Static assets / Jinja │
|
54
|
+
└───────────────┬──────────────┘
|
55
|
+
▼
|
56
|
+
┌──────────────┐
|
57
|
+
│ Database │
|
58
|
+
└──────────────┘
|
59
|
+
|
60
|
+
|
61
|
+
### 🔧 Tech Stack at a Glance
|
62
|
+
|
63
|
+
| Layer | What We Use | Where It Lives |
|
64
|
+
|-------|-------------|----------------|
|
65
|
+
| **Frontend** | HTML • CSS • JavaScript | `static/`, `templates/` |
|
66
|
+
| **Backend** | Flask (`app.py`) | project root |
|
67
|
+
| **Container** | Docker (single image) | `Dockerfile` |
|
68
|
+
| **Orchestration** | Kubernetes manifests | `kubernetes/` |
|
69
|
+
| **Automation / CI · CD** | GitHub Actions | `.github/workflows/` |
|
70
|
+
|
71
|
+
|
72
|
+
# 1. Clone & install deps
|
73
|
+
git clone https://github.com/your-org/project-root.git
|
74
|
+
cd project-root
|
75
|
+
python -m venv .venv && source .venv/bin/activate
|
76
|
+
pip install -r requirements.txt
|
77
|
+
|
78
|
+
# 2. Set env vars (see .env.example)
|
79
|
+
export FLASK_ENV=development
|
80
|
+
export SECRET_KEY=changeme
|
81
|
+
# …
|
82
|
+
|
83
|
+
# 3. Run the server
|
84
|
+
python app.py
|
85
|
+
# → http://localhost:5000
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
@@ -0,0 +1,5 @@
|
|
1
|
+
app.py,sha256=xneaQxVPu56-hZZ3hfxvUIKdbqvktexYKmDLyOA-Tic,5382
|
2
|
+
my_cloud_devops_consulting-1.1.202504191442.dist-info/METADATA,sha256=3eZrbqVg0IF2m7gzIbahkdrannyFLnM1baX261gJjpw,2886
|
3
|
+
my_cloud_devops_consulting-1.1.202504191442.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
my_cloud_devops_consulting-1.1.202504191442.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
|
5
|
+
my_cloud_devops_consulting-1.1.202504191442.dist-info/RECORD,,
|
@@ -1,59 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: my-cloud-devops-consulting
|
3
|
-
Version: 1.1.202504180034
|
4
|
-
Summary: This is my consulting website for Cloud & DevOps services.
|
5
|
-
Home-page: https://github.com/Betrand1999/project-root
|
6
|
-
Author: Betrand Mutagha
|
7
|
-
Author-email: mmutagha@gmail.com
|
8
|
-
License: UNKNOWN
|
9
|
-
Platform: UNKNOWN
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
11
|
-
Classifier: Programming Language :: Python :: 3.10
|
12
|
-
Classifier: License :: OSI Approved :: MIT License
|
13
|
-
Classifier: Operating System :: OS Independent
|
14
|
-
Requires-Python: >=3.6
|
15
|
-
Description-Content-Type: text/markdown
|
16
|
-
Requires-Dist: Flask>=2.0
|
17
|
-
Requires-Dist: pymongo
|
18
|
-
Requires-Dist: werkzeug
|
19
|
-
Requires-Dist: requests
|
20
|
-
|
21
|
-
## 📦 Import‑to‑Usage Cheat‑Sheet
|
22
|
-
|
23
|
-
Think of the import block as a toolbox: once a name is imported, you can grab it anywhere below that point in the file.
|
24
|
-
This table shows exactly which “tool” is used where in **`app.py`**.
|
25
|
-
|
26
|
-
| Import | Purpose | Where it’s used in `app.py` |
|
27
|
-
|--------|---------|-----------------------------|
|
28
|
-
| **Flask** | Create the web‑app object | `app = Flask(__name__)` |
|
29
|
-
| **render_template** | Render Jinja2 templates | `home`, `login`, `register`, `services`, `contact_form`, `private_videos` |
|
30
|
-
| **request** | Access form data & headers | `login()`, `register()`, `contact_form()` |
|
31
|
-
| **redirect** / **url_for** | Navigate between routes | After login/logout/register; after contact‑form submit |
|
32
|
-
| **session** | Signed cookie for per‑user data | `home()` (`if 'username' in session:`) |
|
33
|
-
| **flash** | One‑shot success/error messages | `register()`, `contact_form()`, `logout()` |
|
34
|
-
| **jsonify** | Return JSON API responses | `login()` (`return jsonify({...})`) |
|
35
|
-
| **MongoClient** | Connect to MongoDB Atlas | `client = MongoClient(decoded_mongo_url)` → all DB calls |
|
36
|
-
| **generate_password_hash** / **check_password_hash** | Secure password hashing & verification | Hash in `register()`, verify in `login()` |
|
37
|
-
| **quote_plus** | URL‑encode credentials in the Mongo URI | Building `decoded_mongo_url` |
|
38
|
-
| **ObjectId** | Convert string → MongoDB primary key | `User.get()` (`ObjectId(user_id)`) |
|
39
|
-
| **os** | Env‑vars & file‑paths (future‑proof) | e.g. `os.getenv()`—not shown yet but reserved |
|
40
|
-
| **LoginManager** | Central auth manager | `login_manager = LoginManager()` & `login_manager.init_app(app)` |
|
41
|
-
| **login_user** | Log a user in | Inside `login()` |
|
42
|
-
| **login_required** | Protect private routes | Decorator on `/logout` (and optionally `/videos`) |
|
43
|
-
| **logout_user** | Log a user out | `logout()` |
|
44
|
-
| **current_user** | Proxy to the logged‑in user | Checks in `login()`, `/videos`, `/logout` |
|
45
|
-
| **UserMixin** | Adds default methods to `User` class | Inherits inside your `User` model |
|
46
|
-
| **SECRET_KEY** | Signs sessions & CSRF tokens | `app.secret_key = SECRET_KEY` |
|
47
|
-
| **MONGO_USERNAME / MONGO_PASSWORD** | Credentials for MongoDB | Interpolated into `decoded_mongo_url` |
|
48
|
-
|
49
|
-
| **MONGO_URI** | (Optional) pre‑built connection string | *Not used* in this file, but kept for flexibility |
|
50
|
-
|
51
|
-
| **EMAIL_USER** | “From” address for outgoing mail | Passed to `send_email()` in `contact_form()` |
|
52
|
-
|
53
|
-
| **send_email** | Helper that sends email via SMTP/API | Two calls in `contact_form()` |
|
54
|
-
|
55
|
-
| **get_videos** | Fetches private‑video metadata | Used in `private_videos()` |
|
56
|
-
|
57
|
-
> **Tip:** Linters like *flake8* will warn you if an import never gets referenced (`F401 unused import`). That’s an easy way to keep the toolbox clean.
|
58
|
-
|
59
|
-
|
@@ -1,5 +0,0 @@
|
|
1
|
-
app.py,sha256=xneaQxVPu56-hZZ3hfxvUIKdbqvktexYKmDLyOA-Tic,5382
|
2
|
-
my_cloud_devops_consulting-1.1.202504180034.dist-info/METADATA,sha256=Z_sKW7s_8zenreADhP22ww79h0s-0a-imNC_UvqnIFs,3463
|
3
|
-
my_cloud_devops_consulting-1.1.202504180034.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
my_cloud_devops_consulting-1.1.202504180034.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
|
5
|
-
my_cloud_devops_consulting-1.1.202504180034.dist-info/RECORD,,
|
File without changes
|