my-cloud-devops-consulting 1.1.202507091017__tar.gz → 1.1.202507100102__tar.gz
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.202507091017/my_cloud_devops_consulting.egg-info → my-cloud-devops-consulting-1.1.202507100102}/PKG-INFO +1 -1
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/app.py +50 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102/my_cloud_devops_consulting.egg-info}/PKG-INFO +1 -1
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/my_cloud_devops_consulting.egg-info/SOURCES.txt +2 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/templates/base.html +43 -0
- my-cloud-devops-consulting-1.1.202507100102/templates/forgot-password.html +47 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/templates/login.html +20 -11
- my-cloud-devops-consulting-1.1.202507100102/templates/reset-password.html +9 -0
- my-cloud-devops-consulting-1.1.202507100102/test/test.py +21 -0
- my-cloud-devops-consulting-1.1.202507091017/test/test.py +0 -9
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/MANIFEST.in +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/README.md +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/my_cloud_devops_consulting.egg-info/dependency_links.txt +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/my_cloud_devops_consulting.egg-info/requires.txt +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/my_cloud_devops_consulting.egg-info/top_level.txt +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/setup.cfg +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/setup.py +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/anifest.json +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/css/about.css +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/css/assessment.css +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/css/contact-form.css +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/css/index.css +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/css/login.css +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/css/main.css +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/css/register.css +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/css/services.css +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/images/facebook.png +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/images/favicon.svg +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/images/image.jpg +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/images/instagram.png +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/images/linkedin.png +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/images/whatsapp-navbar.png +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/js/counter.js +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/js/index.js +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/js/login.js +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/js/main.js +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/js/register.js +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/js/services.js +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/js/typing.js +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/robots.txt +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/static/sitemap.xml +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/templates/about.html +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/templates/assessment.html +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/templates/contact-form.html +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/templates/index.html +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/templates/private-videos.html +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/templates/register.html +0 -0
- {my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/templates/services.html +0 -0
{my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/app.py
RENAMED
@@ -200,6 +200,56 @@ def sitemap():
|
|
200
200
|
def robots():
|
201
201
|
return app.send_static_file('robots.txt')
|
202
202
|
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
# adding logic for passwords reset
|
207
|
+
|
208
|
+
from itsdangerous import URLSafeTimedSerializer
|
209
|
+
|
210
|
+
serializer = URLSafeTimedSerializer(SECRET_KEY)
|
211
|
+
|
212
|
+
@app.route('/forgot-password', methods=['GET', 'POST'])
|
213
|
+
def forgot_password():
|
214
|
+
if request.method == 'POST':
|
215
|
+
email = request.form['email']
|
216
|
+
user = users_collection.find_one({'username': email})
|
217
|
+
if user:
|
218
|
+
token = serializer.dumps(str(user['_id']), salt='password-reset')
|
219
|
+
reset_url = url_for('reset_password', token=token, _external=True)
|
220
|
+
send_email("Password Reset Request", email, f"Click here to reset your password: {reset_url}")
|
221
|
+
flash("Password reset link sent to your email.", "info")
|
222
|
+
else:
|
223
|
+
flash("User not found.", "error")
|
224
|
+
return render_template('forgot-password.html')
|
225
|
+
|
226
|
+
|
227
|
+
# adding logic for passwords reset
|
228
|
+
|
229
|
+
@app.route('/reset-password/<token>', methods=['GET', 'POST'])
|
230
|
+
def reset_password(token):
|
231
|
+
try:
|
232
|
+
user_id = serializer.loads(token, salt='password-reset', max_age=3600) # 1 hour
|
233
|
+
except:
|
234
|
+
flash("The reset link is invalid or has expired.", "danger")
|
235
|
+
return redirect(url_for('login'))
|
236
|
+
|
237
|
+
if request.method == 'POST':
|
238
|
+
new_password = request.form['password']
|
239
|
+
hashed = generate_password_hash(new_password)
|
240
|
+
users_collection.update_one({'_id': ObjectId(user_id)}, {'$set': {'password': hashed}})
|
241
|
+
flash("Password updated. Please log in.", "success")
|
242
|
+
return redirect(url_for('login'))
|
243
|
+
|
244
|
+
return render_template('reset-password.html')
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
# Cookies
|
249
|
+
@app.route('/cookie-policy')
|
250
|
+
def cookie_policy():
|
251
|
+
return render_template('cookie-policy.html')
|
252
|
+
|
203
253
|
if __name__ == '__main__':
|
204
254
|
app.run(debug=True, host='0.0.0.0', port=50)
|
205
255
|
|
@@ -35,9 +35,11 @@ templates/about.html
|
|
35
35
|
templates/assessment.html
|
36
36
|
templates/base.html
|
37
37
|
templates/contact-form.html
|
38
|
+
templates/forgot-password.html
|
38
39
|
templates/index.html
|
39
40
|
templates/login.html
|
40
41
|
templates/private-videos.html
|
41
42
|
templates/register.html
|
43
|
+
templates/reset-password.html
|
42
44
|
templates/services.html
|
43
45
|
test/test.py
|
@@ -106,6 +106,7 @@
|
|
106
106
|
crossorigin="anonymous"
|
107
107
|
/>
|
108
108
|
</head>
|
109
|
+
|
109
110
|
<body>
|
110
111
|
<header>
|
111
112
|
<div class="header-container">
|
@@ -340,6 +341,48 @@
|
|
340
341
|
src="//code.tidio.co/nm9da68kwarxu4poexeqqsiblocw7heq.js"
|
341
342
|
async
|
342
343
|
></script>
|
344
|
+
|
345
|
+
<!-- ✅ Tidio Live Chat Widget -->
|
346
|
+
<script
|
347
|
+
src="//code.tidio.co/nm9da68kwarxu4poexeqqsiblocw7heq.js"
|
348
|
+
async
|
349
|
+
></script>
|
350
|
+
|
351
|
+
<!-- ✅ Cookie Consent Banner -->
|
352
|
+
<div
|
353
|
+
id="cookieConsent"
|
354
|
+
style="
|
355
|
+
display: none;
|
356
|
+
position: fixed;
|
357
|
+
bottom: 0;
|
358
|
+
background: #f1f1f1;
|
359
|
+
width: 100%;
|
360
|
+
padding: 15px;
|
361
|
+
text-align: center;
|
362
|
+
z-index: 1000;
|
363
|
+
"
|
364
|
+
>
|
365
|
+
<span>
|
366
|
+
We use cookies to improve your experience.
|
367
|
+
<a href="/cookie-policy" target="_blank">Learn more</a>
|
368
|
+
</span>
|
369
|
+
<button onclick="acceptCookies()" style="margin-left: 10px">
|
370
|
+
Accept All Cookies
|
371
|
+
</button>
|
372
|
+
</div>
|
373
|
+
|
374
|
+
<script>
|
375
|
+
function acceptCookies() {
|
376
|
+
localStorage.setItem("cookiesAccepted", "true");
|
377
|
+
document.getElementById("cookieConsent").style.display = "none";
|
378
|
+
}
|
379
|
+
|
380
|
+
window.onload = function () {
|
381
|
+
if (!localStorage.getItem("cookiesAccepted")) {
|
382
|
+
document.getElementById("cookieConsent").style.display = "block";
|
383
|
+
}
|
384
|
+
};
|
385
|
+
</script>
|
343
386
|
</body>
|
344
387
|
</html>
|
345
388
|
<!-- ✅ Tidio Live Chat Widget -->
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<!-- templates/forgot-password.html -->
|
2
|
+
{% extends 'base.html' %} {% block content %}
|
3
|
+
<div class="container">
|
4
|
+
<div class="row justify-content-center my-5">
|
5
|
+
<div class="col-md-6 mx-auto">
|
6
|
+
<h2 class="text-center">Forgot Password</h2>
|
7
|
+
|
8
|
+
{% with messages = get_flashed_messages(with_categories=true) %} {% if
|
9
|
+
messages %}
|
10
|
+
<div class="alert alert-dismissible fade show" role="alert">
|
11
|
+
{% for category, message in messages %}
|
12
|
+
<div
|
13
|
+
class="alert alert-{{ category }} alert-dismissible fade show"
|
14
|
+
role="alert"
|
15
|
+
>
|
16
|
+
{{ message }}
|
17
|
+
<button
|
18
|
+
type="button"
|
19
|
+
class="btn-close"
|
20
|
+
data-bs-dismiss="alert"
|
21
|
+
aria-label="Close"
|
22
|
+
></button>
|
23
|
+
</div>
|
24
|
+
{% endfor %}
|
25
|
+
</div>
|
26
|
+
{% endif %} {% endwith %}
|
27
|
+
|
28
|
+
<form method="POST" class="p-4 border rounded bg-light">
|
29
|
+
<div class="mb-3">
|
30
|
+
<label for="email" class="form-label">Email address</label>
|
31
|
+
<input
|
32
|
+
type="email"
|
33
|
+
class="form-control"
|
34
|
+
id="email"
|
35
|
+
name="email"
|
36
|
+
placeholder="Enter your email"
|
37
|
+
required
|
38
|
+
/>
|
39
|
+
</div>
|
40
|
+
<button type="submit" class="btn btn-primary w-100">
|
41
|
+
Send Reset Link
|
42
|
+
</button>
|
43
|
+
</form>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
{% endblock %}
|
@@ -1,25 +1,31 @@
|
|
1
|
-
{% extends "base.html" %}
|
2
|
-
|
3
|
-
{% block main %}
|
1
|
+
{% extends "base.html" %} {% block main %}
|
4
2
|
|
5
3
|
<div class="container">
|
6
|
-
<div class="row justify-content-center my-5" style="width: 100
|
7
|
-
<div class="col-md-6 mx-auto">
|
4
|
+
<div class="row justify-content-center my-5" style="width: 100%">
|
5
|
+
<div class="col-md-6 mx-auto">
|
6
|
+
<!-- Centering the form -->
|
8
7
|
<h2 class="text-center">Login</h2>
|
9
8
|
|
10
9
|
<!-- Flash messages for feedback -->
|
11
|
-
{% with messages = get_flashed_messages(with_categories=true) %}
|
12
|
-
|
10
|
+
{% with messages = get_flashed_messages(with_categories=true) %} {% if
|
11
|
+
messages %}
|
13
12
|
<div class="alert alert-dismissible fade show" role="alert">
|
14
13
|
{% for category, message in messages %}
|
15
|
-
<div
|
14
|
+
<div
|
15
|
+
class="alert alert-{{ category }} alert-dismissible fade show"
|
16
|
+
role="alert"
|
17
|
+
>
|
16
18
|
{{ message }}
|
17
|
-
<button
|
19
|
+
<button
|
20
|
+
type="button"
|
21
|
+
class="btn-close"
|
22
|
+
data-bs-dismiss="alert"
|
23
|
+
aria-label="Close"
|
24
|
+
></button>
|
18
25
|
</div>
|
19
26
|
{% endfor %}
|
20
27
|
</div>
|
21
|
-
{% endif %}
|
22
|
-
{% endwith %}
|
28
|
+
{% endif %} {% endwith %}
|
23
29
|
|
24
30
|
<form id="loginForm" method="post" class="p-4 border rounded bg-light">
|
25
31
|
<div class="mb-3">
|
@@ -49,6 +55,9 @@
|
|
49
55
|
<button type="submit" class="btn btn-primary w-100">Login</button>
|
50
56
|
</form>
|
51
57
|
<p class="mt-3 text-center">
|
58
|
+
|
59
|
+
<a href="{{ url_for('forgot_password') }}">Forgot Password?</a>
|
60
|
+
|
52
61
|
Don't have an account?
|
53
62
|
<a href="{{ url_for('register') }}">Register here</a>
|
54
63
|
</p>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- templates/reset-password.html -->
|
2
|
+
{% extends 'base.html' %} {% block content %}
|
3
|
+
<h2>Reset Password</h2>
|
4
|
+
<form method="POST">
|
5
|
+
<label>New Password:</label>
|
6
|
+
<input type="password" name="password" required />
|
7
|
+
<button type="submit">Set New Password</button>
|
8
|
+
</form>
|
9
|
+
{% endblock %}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class LibraryBook:
|
2
|
+
def __init__(self,title,author,year_published,genre,is_checked_out):
|
3
|
+
self.title=title
|
4
|
+
self.author=author
|
5
|
+
self.year_published=year_published
|
6
|
+
self.genre=genre
|
7
|
+
self.is_checked_out=is_checked_out
|
8
|
+
|
9
|
+
book_1=LibraryBook("The Alchemist","Paulo Coelho"," 2025","Fantasy,","False")
|
10
|
+
print(book_1.title)
|
11
|
+
print(book_1.author)
|
12
|
+
print(book_1.year_published)
|
13
|
+
print(book_1.genre)
|
14
|
+
print(book_1.is_checked_out)
|
15
|
+
|
16
|
+
book_2=LibraryBook("Betrand","Love book","2026"," Fiction","False")
|
17
|
+
print(book_2.title)
|
18
|
+
print(book_2.author)
|
19
|
+
print(book_2.year_published)
|
20
|
+
print(book_2.genre)
|
21
|
+
print(book_2.is_checked_out)
|
@@ -1,9 +0,0 @@
|
|
1
|
-
def create_hero(name, power, city):
|
2
|
-
return f"Captain {name} has the {power} of fire and protects New {city}"
|
3
|
-
message = create_hero("Flames", "power","York")
|
4
|
-
print(message)
|
5
|
-
|
6
|
-
def hero_intro(hero_description):
|
7
|
-
return message
|
8
|
-
new_message = hero_intro(message)
|
9
|
-
print(new_message)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{my-cloud-devops-consulting-1.1.202507091017 → my-cloud-devops-consulting-1.1.202507100102}/setup.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|