From b943cdc690e9818e3537ffb3f3f95cb1610579ff Mon Sep 17 00:00:00 2001 From: Soumitra Date: Wed, 13 Sep 2023 18:21:24 +0530 Subject: [PATCH 01/49] Delete google-charts directory --- google-charts/pie-chart/app.py | 3 -- google-charts/pie-chart/main.py | 11 ----- google-charts/pie-chart/readme.rst | 1 - .../pie-chart/templates/pie-chart.html | 47 ------------------- 4 files changed, 62 deletions(-) delete mode 100644 google-charts/pie-chart/app.py delete mode 100644 google-charts/pie-chart/main.py delete mode 100644 google-charts/pie-chart/readme.rst delete mode 100644 google-charts/pie-chart/templates/pie-chart.html diff --git a/google-charts/pie-chart/app.py b/google-charts/pie-chart/app.py deleted file mode 100644 index d7562aaca..000000000 --- a/google-charts/pie-chart/app.py +++ /dev/null @@ -1,3 +0,0 @@ -from flask import Flask - -app = Flask(__name__) diff --git a/google-charts/pie-chart/main.py b/google-charts/pie-chart/main.py deleted file mode 100644 index c22a56fc8..000000000 --- a/google-charts/pie-chart/main.py +++ /dev/null @@ -1,11 +0,0 @@ -from app import app -from flask import jsonify, request, render_template - -@app.route('/google-charts/pie-chart') -def google_pie_chart(): - data = {'Task' : 'Hours per Day', 'Work' : 11, 'Eat' : 2, 'Commute' : 2, 'Watching TV' : 2, 'Sleeping' : 7} - #print(data) - return render_template('pie-chart.html', data=data) - -if __name__ == "__main__": - app.run() \ No newline at end of file diff --git a/google-charts/pie-chart/readme.rst b/google-charts/pie-chart/readme.rst deleted file mode 100644 index 64cd8450b..000000000 --- a/google-charts/pie-chart/readme.rst +++ /dev/null @@ -1 +0,0 @@ -You can read tutorial at https://www.roytuts.com/google-pie-chart-using-python-flask/ \ No newline at end of file diff --git a/google-charts/pie-chart/templates/pie-chart.html b/google-charts/pie-chart/templates/pie-chart.html deleted file mode 100644 index 636f94605..000000000 --- a/google-charts/pie-chart/templates/pie-chart.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - Codestin Search App - - - - -
-

Show Data on Google Pie Chart using Python Flask

- -
-
- - From 25a99e001307cb9131dbb57e57fb496f93dbf6da Mon Sep 17 00:00:00 2001 From: Soumitra Date: Mon, 30 Oct 2023 18:35:36 +0530 Subject: [PATCH 02/49] Delete python-flask-ajax-file-upload directory moved to https://github.com/roytuts/flask/tree/master/python-flask-ajax-file-upload --- python-flask-ajax-file-upload/app.py | 8 --- python-flask-ajax-file-upload/main.py | 53 ------------------ python-flask-ajax-file-upload/readme.rst | 1 - .../templates/file-upload.html | 56 ------------------- 4 files changed, 118 deletions(-) delete mode 100644 python-flask-ajax-file-upload/app.py delete mode 100644 python-flask-ajax-file-upload/main.py delete mode 100644 python-flask-ajax-file-upload/readme.rst delete mode 100644 python-flask-ajax-file-upload/templates/file-upload.html diff --git a/python-flask-ajax-file-upload/app.py b/python-flask-ajax-file-upload/app.py deleted file mode 100644 index b656007a4..000000000 --- a/python-flask-ajax-file-upload/app.py +++ /dev/null @@ -1,8 +0,0 @@ -from flask import Flask - -UPLOAD_FOLDER = 'C:/uploads' - -app = Flask(__name__) -app.secret_key = "secret key" -app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER -app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 \ No newline at end of file diff --git a/python-flask-ajax-file-upload/main.py b/python-flask-ajax-file-upload/main.py deleted file mode 100644 index 7db20c19f..000000000 --- a/python-flask-ajax-file-upload/main.py +++ /dev/null @@ -1,53 +0,0 @@ -import os -#import magic -import urllib.request -from app import app -from flask import Flask, flash, request, redirect, render_template, jsonify -from werkzeug.utils import secure_filename - -ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) - -def allowed_file(filename): - return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS - -@app.route('/') -def upload_form(): - return render_template('file-upload.html') - -@app.route('/python-flask-files-upload', methods=['POST']) -def upload_file(): - # check if the post request has the file part - if 'files[]' not in request.files: - resp = jsonify({'message' : 'No file part in the request'}) - resp.status_code = 400 - return resp - - files = request.files.getlist('files[]') - - errors = {} - success = False - - for file in files: - if file and allowed_file(file.filename): - filename = secure_filename(file.filename) - file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename)) - success = True - else: - errors[file.filename] = 'File type is not allowed' - - if success and errors: - errors['message'] = 'File(s) successfully uploaded' - resp = jsonify(errors) - resp.status_code = 206 - return resp - if success: - resp = jsonify({'message' : 'Files successfully uploaded'}) - resp.status_code = 201 - return resp - else: - resp = jsonify(errors) - resp.status_code = 400 - return resp - -if __name__ == "__main__": - app.run() \ No newline at end of file diff --git a/python-flask-ajax-file-upload/readme.rst b/python-flask-ajax-file-upload/readme.rst deleted file mode 100644 index 839e0a09e..000000000 --- a/python-flask-ajax-file-upload/readme.rst +++ /dev/null @@ -1 +0,0 @@ -You can go through the tutorial https://www.roytuts.com/ajax-files-upload-using-python-flask-jquery/ diff --git a/python-flask-ajax-file-upload/templates/file-upload.html b/python-flask-ajax-file-upload/templates/file-upload.html deleted file mode 100644 index 9ae3fa321..000000000 --- a/python-flask-ajax-file-upload/templates/file-upload.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - Codestin Search App - - - - -

Python Flask File(s) Upload - Select file(s) to upload

-
-

-

- - -

-
- \ No newline at end of file From 9ff72cea14276cc895379b54390cafa845754378 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 3 Nov 2023 15:30:21 +0530 Subject: [PATCH 03/49] Update main.py --- flask-rest-mongodb/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flask-rest-mongodb/main.py b/flask-rest-mongodb/main.py index e836fcb0d..dfcf7c177 100644 --- a/flask-rest-mongodb/main.py +++ b/flask-rest-mongodb/main.py @@ -2,7 +2,7 @@ from bson.json_util import dumps from bson.objectid import ObjectId from flask import jsonify, flash, request -from werkzeug import generate_password_hash, check_password_hash +from werkzeug.security import generate_password_hash, check_password_hash @app.route('/add', methods=['POST']) def add_user(): @@ -15,7 +15,7 @@ def add_user(): #do not save password as a plain text _hashed_password = generate_password_hash(_password) # save details - id = mongo.db.user.insert({'name': _name, 'email': _email, 'pwd': _hashed_password}) + id = mongo.db.user.insert_one({'name': _name, 'email': _email, 'pwd': _hashed_password}) resp = jsonify('User added successfully!') resp.status_code = 200 return resp @@ -72,4 +72,4 @@ def not_found(error=None): return resp if __name__ == "__main__": - app.run() \ No newline at end of file + app.run() From 7e0e9ca02ba4fd011ebe4d9f5c9959770d6c8cc3 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 3 Nov 2023 15:30:48 +0530 Subject: [PATCH 04/49] Update readme.rst --- flask-rest-mongodb/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask-rest-mongodb/readme.rst b/flask-rest-mongodb/readme.rst index 6c0800b3e..cb2738964 100644 --- a/flask-rest-mongodb/readme.rst +++ b/flask-rest-mongodb/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/python-flask-rest-api-mongodb-crud-example/ +Please follow the tutorial https://roytuts.com/flask-rest-api-mongodb-crud-example/ From df4dac38a87824f7c2d8d4e3fffc4b3bb3cd2df2 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 3 Nov 2023 15:35:15 +0530 Subject: [PATCH 05/49] Delete flask-rest-mongodb directory moved to https://github.com/roytuts/flask/tree/master/flask-rest-mongodb --- flask-rest-mongodb/app.py | 7 ---- flask-rest-mongodb/main.py | 75 ----------------------------------- flask-rest-mongodb/readme.rst | 1 - 3 files changed, 83 deletions(-) delete mode 100644 flask-rest-mongodb/app.py delete mode 100644 flask-rest-mongodb/main.py delete mode 100644 flask-rest-mongodb/readme.rst diff --git a/flask-rest-mongodb/app.py b/flask-rest-mongodb/app.py deleted file mode 100644 index 6025c691d..000000000 --- a/flask-rest-mongodb/app.py +++ /dev/null @@ -1,7 +0,0 @@ -from flask import Flask -from flask_pymongo import PyMongo - -app = Flask(__name__) -app.secret_key = "secret key" -app.config["MONGO_URI"] = "mongodb://localhost:27017/roytuts" -mongo = PyMongo(app) \ No newline at end of file diff --git a/flask-rest-mongodb/main.py b/flask-rest-mongodb/main.py deleted file mode 100644 index dfcf7c177..000000000 --- a/flask-rest-mongodb/main.py +++ /dev/null @@ -1,75 +0,0 @@ -from app import app, mongo -from bson.json_util import dumps -from bson.objectid import ObjectId -from flask import jsonify, flash, request -from werkzeug.security import generate_password_hash, check_password_hash - -@app.route('/add', methods=['POST']) -def add_user(): - _json = request.json - _name = _json['name'] - _email = _json['email'] - _password = _json['pwd'] - # validate the received values - if _name and _email and _password and request.method == 'POST': - #do not save password as a plain text - _hashed_password = generate_password_hash(_password) - # save details - id = mongo.db.user.insert_one({'name': _name, 'email': _email, 'pwd': _hashed_password}) - resp = jsonify('User added successfully!') - resp.status_code = 200 - return resp - else: - return not_found() - -@app.route('/users') -def users(): - users = mongo.db.user.find() - resp = dumps(users) - return resp - -@app.route('/user/') -def user(id): - user = mongo.db.user.find_one({'_id': ObjectId(id)}) - resp = dumps(user) - return resp - -@app.route('/update', methods=['PUT']) -def update_user(): - _json = request.json - _id = _json['_id'] - _name = _json['name'] - _email = _json['email'] - _password = _json['pwd'] - # validate the received values - if _name and _email and _password and _id and request.method == 'PUT': - #do not save password as a plain text - _hashed_password = generate_password_hash(_password) - # save edits - mongo.db.user.update_one({'_id': ObjectId(_id['$oid']) if '$oid' in _id else ObjectId(_id)}, {'$set': {'name': _name, 'email': _email, 'pwd': _hashed_password}}) - resp = jsonify('User updated successfully!') - resp.status_code = 200 - return resp - else: - return not_found() - -@app.route('/delete/', methods=['DELETE']) -def delete_user(id): - mongo.db.user.delete_one({'_id': ObjectId(id)}) - resp = jsonify('User deleted successfully!') - resp.status_code = 200 - return resp - -@app.errorhandler(404) -def not_found(error=None): - message = { - 'status': 404, - 'message': 'Not Found: ' + request.url, - } - resp = jsonify(message) - resp.status_code = 404 - - return resp - -if __name__ == "__main__": - app.run() diff --git a/flask-rest-mongodb/readme.rst b/flask-rest-mongodb/readme.rst deleted file mode 100644 index cb2738964..000000000 --- a/flask-rest-mongodb/readme.rst +++ /dev/null @@ -1 +0,0 @@ -Please follow the tutorial https://roytuts.com/flask-rest-api-mongodb-crud-example/ From 9cc8fff2cf89c3a9d80262dcb463dd3613ef416d Mon Sep 17 00:00:00 2001 From: Soumitra Date: Thu, 9 Nov 2023 16:39:00 +0530 Subject: [PATCH 06/49] Update readme.rst --- python-csv-to-pdf/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-csv-to-pdf/readme.rst b/python-csv-to-pdf/readme.rst index 83827e41f..1308e7850 100644 --- a/python-csv-to-pdf/readme.rst +++ b/python-csv-to-pdf/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/how-to-convert-csv-file-to-pdf-file-using-pyfpdf-in-python/ +Please follow the tutorial https://roytuts.com/how-to-convert-csv-file-to-pdf-file-using-pyfpdf-in-python/ From ccbcf6db128cf71656440ac1b309e7c1d1c554e4 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Tue, 21 Nov 2023 21:48:27 +0530 Subject: [PATCH 07/49] Update readme.rst --- python-xml-builder/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-xml-builder/readme.rst b/python-xml-builder/readme.rst index 113e418e1..285ba4f00 100644 --- a/python-xml-builder/readme.rst +++ b/python-xml-builder/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/building-xml-using-python/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/building-xml-using-python/ From 44f0f2a6757fe38b7a007fecc7cccbb191b6fb55 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Tue, 21 Nov 2023 21:49:04 +0530 Subject: [PATCH 08/49] Create bookstore2.xml --- python-xml-builder/bookstore2.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 python-xml-builder/bookstore2.xml diff --git a/python-xml-builder/bookstore2.xml b/python-xml-builder/bookstore2.xml new file mode 100644 index 000000000..4488b187e --- /dev/null +++ b/python-xml-builder/bookstore2.xml @@ -0,0 +1,15 @@ + + + + + Joe + Bob + Trenton Literary Review Honorable Mention + + 12 + + + 12 + + + From fa1f28a8d060907489f5e1ff3647c6a9b6716ee7 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Wed, 22 Nov 2023 14:15:47 +0530 Subject: [PATCH 09/49] Update readme.rst --- python-xml-parser/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-xml-parser/readme.rst b/python-xml-parser/readme.rst index afad10d6e..c909d079c 100644 --- a/python-xml-parser/readme.rst +++ b/python-xml-parser/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/parsing-xml-using-python/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/parsing-xml-using-python/ From 8e42e05c67b735da54455d51966f4c57b0f0b734 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Wed, 22 Nov 2023 14:16:23 +0530 Subject: [PATCH 10/49] Create bookstore.xml --- python-xml-parser/bookstore.xml | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 python-xml-parser/bookstore.xml diff --git a/python-xml-parser/bookstore.xml b/python-xml-parser/bookstore.xml new file mode 100644 index 000000000..bea262040 --- /dev/null +++ b/python-xml-parser/bookstore.xml @@ -0,0 +1,56 @@ + + + + + Joe + Bob + Trenton Literary Review Honorable Mention + + 12 + + + + Mary + Bob + Selected Short Stories of + Mary + Bob + + + + Britney + Bob + + 55 + + + 2.50 + + + + + Toni + Bob + B.A. + Ph.D. + Pulitzer + Still in Trenton + Trenton Forever + + 6.50 + +

It was a dark and stormy night.

+

But then all nights in Trenton seem dark and + stormy to someone who has gone through what + I have.

+ + Trenton + misery + +
+
+ + Who's Who in Trenton + Robert Bob + +
From 8c44b12c47d5c445ff2ba5cf7036d5fe719ab7e3 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Wed, 10 Jan 2024 13:12:15 +0530 Subject: [PATCH 11/49] Delete python-flask-ajax-mysql-login-logout directory Moved to the repo https://github.com/roytuts/flask/tree/master/python-flask-ajax-mysql-login-logout --- python-flask-ajax-mysql-login-logout/app.py | 4 -- python-flask-ajax-mysql-login-logout/dao.py | 30 -------- .../db_config.py | 11 --- python-flask-ajax-mysql-login-logout/main.py | 14 ---- .../readme.rst | 1 - python-flask-ajax-mysql-login-logout/rest.py | 27 ------- .../static/js/auth.js | 72 ------------------- .../templates/index.html | 34 --------- .../templates/login.html | 49 ------------- 9 files changed, 242 deletions(-) delete mode 100644 python-flask-ajax-mysql-login-logout/app.py delete mode 100644 python-flask-ajax-mysql-login-logout/dao.py delete mode 100644 python-flask-ajax-mysql-login-logout/db_config.py delete mode 100644 python-flask-ajax-mysql-login-logout/main.py delete mode 100644 python-flask-ajax-mysql-login-logout/readme.rst delete mode 100644 python-flask-ajax-mysql-login-logout/rest.py delete mode 100644 python-flask-ajax-mysql-login-logout/static/js/auth.js delete mode 100644 python-flask-ajax-mysql-login-logout/templates/index.html delete mode 100644 python-flask-ajax-mysql-login-logout/templates/login.html diff --git a/python-flask-ajax-mysql-login-logout/app.py b/python-flask-ajax-mysql-login-logout/app.py deleted file mode 100644 index 5e65b47b6..000000000 --- a/python-flask-ajax-mysql-login-logout/app.py +++ /dev/null @@ -1,4 +0,0 @@ -from flask import Flask - -app = Flask(__name__) -app.secret_key = "secret key" \ No newline at end of file diff --git a/python-flask-ajax-mysql-login-logout/dao.py b/python-flask-ajax-mysql-login-logout/dao.py deleted file mode 100644 index 712875c63..000000000 --- a/python-flask-ajax-mysql-login-logout/dao.py +++ /dev/null @@ -1,30 +0,0 @@ -import pymysql -from db_config import mysql -from werkzeug import check_password_hash - -def login(email, pwd): - conn = None; - cursor = None; - - try: - conn = mysql.connect() - cursor = conn.cursor() - - sql = "SELECT email, pwd FROM user WHERE email=%s" - sql_where = (email,) - - cursor.execute(sql, sql_where) - row = cursor.fetchone() - - if row: - if check_password_hash(row[1], pwd): - return row[0] - return None - - except Exception as e: - print(e) - - finally: - if cursor and conn: - cursor.close() - conn.close() \ No newline at end of file diff --git a/python-flask-ajax-mysql-login-logout/db_config.py b/python-flask-ajax-mysql-login-logout/db_config.py deleted file mode 100644 index ba6e5ddb7..000000000 --- a/python-flask-ajax-mysql-login-logout/db_config.py +++ /dev/null @@ -1,11 +0,0 @@ -from app import app -from flaskext.mysql import MySQL - -mysql = MySQL() - -# MySQL configurations -app.config['MYSQL_DATABASE_USER'] = 'root' -app.config['MYSQL_DATABASE_PASSWORD'] = 'root' -app.config['MYSQL_DATABASE_DB'] = 'fitness' -app.config['MYSQL_DATABASE_HOST'] = 'localhost' -mysql.init_app(app) \ No newline at end of file diff --git a/python-flask-ajax-mysql-login-logout/main.py b/python-flask-ajax-mysql-login-logout/main.py deleted file mode 100644 index 1ade8f93b..000000000 --- a/python-flask-ajax-mysql-login-logout/main.py +++ /dev/null @@ -1,14 +0,0 @@ -import rest -from app import app -from flask import render_template - -@app.route('/') -def home_page(): - return render_template('index.html') - -@app.route('/login/page') -def login_page(): - return render_template('login.html') - -if __name__ == "__main__": - app.run() \ No newline at end of file diff --git a/python-flask-ajax-mysql-login-logout/readme.rst b/python-flask-ajax-mysql-login-logout/readme.rst deleted file mode 100644 index 8617891aa..000000000 --- a/python-flask-ajax-mysql-login-logout/readme.rst +++ /dev/null @@ -1 +0,0 @@ -You can read tutorial https://www.roytuts.com/jquery-ajax-based-login-logout-using-python-flask-mysql/ \ No newline at end of file diff --git a/python-flask-ajax-mysql-login-logout/rest.py b/python-flask-ajax-mysql-login-logout/rest.py deleted file mode 100644 index 8c625ea63..000000000 --- a/python-flask-ajax-mysql-login-logout/rest.py +++ /dev/null @@ -1,27 +0,0 @@ -import dao -from app import app -from flask import jsonify, request, session - -@app.route('/login', methods=['POST']) -def login(): - _json = request.json - #print(_json) - _username = _json['username'] - _password = _json['password'] - - if _username and _password: - user = dao.login(_username, _password) - - if user != None: - session['username'] = user - return jsonify({'message' : 'User logged in successfully'}) - - resp = jsonify({'message' : 'Bad Request - invalid credendtials'}) - resp.status_code = 400 - return resp - -@app.route('/logout') -def logout(): - if 'username' in session: - session.pop('username', None) - return jsonify({'message' : 'You successfully logged out'}) \ No newline at end of file diff --git a/python-flask-ajax-mysql-login-logout/static/js/auth.js b/python-flask-ajax-mysql-login-logout/static/js/auth.js deleted file mode 100644 index 489e3da0c..000000000 --- a/python-flask-ajax-mysql-login-logout/static/js/auth.js +++ /dev/null @@ -1,72 +0,0 @@ -$(document).ready(function() { - var isLoggedIn = localStorage.getItem('loggedin'); - - if(isLoggedIn == 1) { - $('#sign').hide(); - $('#loginform').hide(); - $('#signupform').hide(); - $('#logoff').show(); - } else { - $('#sign').show(); - $('#logoff').hide(); - } - - $('#loginSubmit').on('click', function(e) { - e.preventDefault(); - - var email = $('#email').val(); - var pwd = $('#password').val(); - - var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/i; - - if(email != "" && pwd != "" ) { - if(!regex.test(email)) { - $('#msg').html('Invalid email address'); - } else { - $.ajax({ - method: "POST", - url: '/login', - contentType: 'application/json;charset=UTF-8', - data: JSON.stringify({'username': email, 'password': pwd}), - dataType: "json", - success: function(data) { - localStorage.setItem('loggedin', 1); - - $('#sign').hide(); - $('#loginform').hide(); - $('#logoff').show(); - $('#msg').html('You are logged in'); - }, - statusCode: { - 400: function() { - $('#msg').html('Bad request - invalid credentials'); - } - }, - error: function(err) { - console.log(err); - } - }); - } - } else { - $('#msg').html('Invalid username and password'); - } - }); - - $('#logout').on('click', function(e) { - e.preventDefault(); - - $.ajax({ - url: '/logout', - dataType: "json", - success: function(data) { - localStorage.setItem('loggedin', 0); - $('#sign').show(); - $('#logoff').hide(); - $('#msg').html('You are logged off'); - }, - error: function(err) { - console.log(err); - } - }); - }); -}); \ No newline at end of file diff --git a/python-flask-ajax-mysql-login-logout/templates/index.html b/python-flask-ajax-mysql-login-logout/templates/index.html deleted file mode 100644 index ec0cbe2ed..000000000 --- a/python-flask-ajax-mysql-login-logout/templates/index.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Codestin Search App - - - - - -
- -
- -
- - This is a home page - -
- - - \ No newline at end of file diff --git a/python-flask-ajax-mysql-login-logout/templates/login.html b/python-flask-ajax-mysql-login-logout/templates/login.html deleted file mode 100644 index be7d76857..000000000 --- a/python-flask-ajax-mysql-login-logout/templates/login.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - Codestin Search App - - - - - -
- -
- -
- -
-
-
-

Login

-
-

- -

-

- -

-
-

- -

-
- -
- - - \ No newline at end of file From 08b538ddd90a3533b460a63e8ae9fe3dca19e58c Mon Sep 17 00:00:00 2001 From: Soumitra Date: Thu, 11 Jan 2024 13:17:23 +0530 Subject: [PATCH 12/49] Update readme.rst --- read-lines-from-last/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read-lines-from-last/readme.rst b/read-lines-from-last/readme.rst index 04757ea38..309bf4985 100644 --- a/read-lines-from-last/readme.rst +++ b/read-lines-from-last/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/read-last-n-lines-from-file-using-python/ +Please follow the tutorial https://roytuts.com/read-last-n-lines-from-file-using-python/ From 33c8d2636918080746feff9f41813536507f1c77 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Thu, 11 Jan 2024 13:18:06 +0530 Subject: [PATCH 13/49] Create SampleTextFile_10kb.txt --- read-lines-from-last/SampleTextFile_10kb.txt | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 read-lines-from-last/SampleTextFile_10kb.txt diff --git a/read-lines-from-last/SampleTextFile_10kb.txt b/read-lines-from-last/SampleTextFile_10kb.txt new file mode 100644 index 000000000..e0f98f53f --- /dev/null +++ b/read-lines-from-last/SampleTextFile_10kb.txt @@ -0,0 +1,27 @@ +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus condimentum sagittis lacus, laoreet luctus ligula laoreet ut. Vestibulum ullamcorper accumsan velit vel vehicula. Proin tempor lacus arcu. Nunc at elit condimentum, semper nisi et, condimentum mi. In venenatis blandit nibh at sollicitudin. Vestibulum dapibus mauris at orci maximus pellentesque. Nullam id elementum ipsum. Suspendisse cursus lobortis viverra. Proin et erat at mauris tincidunt porttitor vitae ac dui. + +Donec vulputate lorem tortor, nec fermentum nibh bibendum vel. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent dictum luctus massa, non euismod lacus. Pellentesque condimentum dolor est, ut dapibus lectus luctus ac. Ut sagittis commodo arcu. Integer nisi nulla, facilisis sit amet nulla quis, eleifend suscipit purus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam euismod ultrices lorem, sit amet imperdiet est tincidunt vel. Phasellus dictum justo sit amet ligula varius aliquet auctor et metus. Fusce vitae tortor et nisi pulvinar vestibulum eget in risus. Donec ante ex, placerat a lorem eget, ultricies bibendum purus. Nam sit amet neque non ante laoreet rutrum. Nullam aliquet commodo urna, sed ullamcorper odio feugiat id. Mauris nisi sapien, porttitor in condimentum nec, venenatis eu urna. Pellentesque feugiat diam est, at rhoncus orci porttitor non. + +Nulla luctus sem sit amet nisi consequat, id ornare ipsum dignissim. Sed elementum elit nibh, eu condimentum orci viverra quis. Aenean suscipit vitae felis non suscipit. Suspendisse pharetra turpis non eros semper dictum. Etiam tincidunt venenatis venenatis. Praesent eget gravida lorem, ut congue diam. Etiam facilisis elit at porttitor egestas. Praesent consequat, velit non vulputate convallis, ligula diam sagittis urna, in venenatis nisi justo ut mauris. Vestibulum posuere sollicitudin mi, et vulputate nisl fringilla non. Nulla ornare pretium velit a euismod. Nunc sagittis venenatis vestibulum. Nunc sodales libero a est ornare ultricies. Sed sed leo sed orci pellentesque ultrices. Mauris sollicitudin, sem quis placerat ornare, velit arcu convallis ligula, pretium finibus nisl sapien vel sem. Vivamus sit amet tortor id lorem consequat hendrerit. Nullam at dui risus. + +Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed feugiat semper velit consequat facilisis. Etiam facilisis justo non iaculis dictum. Fusce turpis neque, pharetra ut odio eu, hendrerit rhoncus lacus. Nunc orci felis, imperdiet vel interdum quis, porta eu ipsum. Pellentesque dictum sem lacinia, auctor dui in, malesuada nunc. Maecenas sit amet mollis eros. Proin fringilla viverra ligula, sollicitudin viverra ante sollicitudin congue. Donec mollis felis eu libero malesuada, et lacinia risus interdum. + +Etiam vitae accumsan augue. Ut urna orci, malesuada ut nisi a, condimentum gravida magna. Nulla bibendum ex in vulputate sagittis. Nulla facilisi. Nullam faucibus et metus ac consequat. Quisque tempor eros velit, id mattis nibh aliquet a. Aenean tempor elit ut finibus auctor. Sed at imperdiet mauris. Vestibulum pharetra non lacus sed pulvinar. Sed pellentesque magna a eros volutpat ullamcorper. In hac habitasse platea dictumst. Donec ipsum mi, feugiat in eros sed, varius lacinia turpis. Donec vulputate tincidunt dui ac laoreet. Sed in eros dui. Pellentesque placerat tristique ligula eu finibus. Proin nec faucibus felis, eu commodo ipsum. + +Integer eu hendrerit diam, sed consectetur nunc. Aliquam a sem vitae leo fermentum faucibus quis at sem. Etiam blandit, quam quis fermentum varius, ante urna ultricies lectus, vel pellentesque ligula arcu nec elit. Donec placerat ante in enim scelerisque pretium. Donec et rhoncus erat. Aenean tempor nisi vitae augue tincidunt luctus. Nam condimentum dictum ante, et laoreet neque pellentesque id. Curabitur consectetur cursus neque aliquam porta. Ut interdum nunc nec nibh vestibulum, in sagittis metus facilisis. Pellentesque feugiat condimentum metus. Etiam venenatis quam at ante rhoncus vestibulum. Maecenas suscipit congue pellentesque. Vestibulum suscipit scelerisque fermentum. Nulla iaculis risus ac vulputate porttitor. + +Mauris nec metus vel dolor blandit faucibus et vel magna. Ut tincidunt ipsum non nunc dapibus, sed blandit mi condimentum. Quisque pharetra interdum quam nec feugiat. Sed pellentesque nulla et turpis blandit interdum. Curabitur at metus vitae augue elementum viverra. Sed mattis lorem non enim fermentum finibus. Sed at dui in magna dignissim accumsan. Proin tincidunt ultricies cursus. Maecenas tincidunt magna at urna faucibus lacinia. + +Quisque venenatis justo sit amet tortor condimentum, nec tincidunt tellus viverra. Morbi risus ipsum, consequat convallis malesuada non, fermentum non velit. Nulla facilisis orci eget ligula mattis fermentum. Aliquam vel velit ultricies, sollicitudin nibh eu, congue velit. Donec nulla lorem, euismod id cursus at, sollicitudin et arcu. Proin vitae tincidunt ipsum. Vivamus elementum eleifend justo, placerat interdum nulla rutrum id. + +Phasellus fringilla luctus magna, a finibus justo dapibus a. Nam risus felis, rhoncus eget diam sit amet, congue facilisis nibh. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent consequat euismod diam, eget volutpat magna convallis at. Mauris placerat pellentesque imperdiet. Nulla porta scelerisque enim, et scelerisque neque bibendum in. Proin eget turpis nisi. Suspendisse ut est a erat egestas eleifend at euismod arcu. Donec aliquet, nisi sed faucibus condimentum, nisi metus dictum eros, nec dignissim justo odio id nulla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Maecenas sollicitudin, justo id elementum eleifend, justo neque aliquet nibh, finibus malesuada metus erat eget neque. Suspendisse nec auctor orci. Aenean et vestibulum nulla. Nullam hendrerit augue tristique, commodo metus id, sodales lorem. Etiam feugiat dui est, vitae auctor risus convallis non. + +Maecenas turpis enim, consectetur eget lectus eu, hendrerit posuere lacus. Praesent efficitur, felis eget dapibus consectetur, nisi massa dignissim enim, nec semper dolor est eu urna. Nullam ut sodales lorem. Aliquam dapibus faucibus diam. Vestibulum vel magna et dolor gravida imperdiet ut sit amet sem. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur elementum metus tincidunt nulla euismod ultricies. Duis elementum nec neque in porttitor. Nulla sagittis lorem elit, et consectetur ante laoreet eu. Maecenas nulla tellus, scelerisque ac erat sed, fermentum dapibus metus. Donec tincidunt fermentum molestie. + +Sed consequat mi at maximus faucibus. Pellentesque aliquet tincidunt sapien vel auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Praesent accumsan nunc eget leo aliquam, facilisis hendrerit turpis egestas. Morbi in ultricies mauris, a eleifend turpis. Quisque fringilla massa iaculis risus ultrices, sit amet tincidunt dui varius. Quisque maximus porta tristique. Proin tincidunt, turpis ut tempor pretium, lectus ipsum ullamcorper leo, ac tincidunt felis dui non leo. Aenean porta augue ligula, non consequat ipsum aliquet et. Suspendisse ut suscipit ex. Pellentesque vitae lacinia arcu. Curabitur eget tincidunt nulla, non bibendum metus. Nullam mi ipsum, eleifend vitae tortor pulvinar, facilisis sollicitudin ipsum. + +Vestibulum molestie risus lorem, at feugiat lorem congue sed. Phasellus ullamcorper laoreet enim, nec aliquam turpis scelerisque et. Etiam dictum metus in elit aliquam dapibus. Vivamus vel lectus velit. Nam sed purus luctus, commodo dui quis, malesuada dui. Nulla porttitor aliquet elit sit amet viverra. Proin tempor nulla urna, non aliquet metus maximus quis. Aliquam ac lectus nec mi aliquam sagittis. Quisque venenatis quam eget nisl tempor, egestas rutrum eros eleifend. Nullam venenatis commodo velit, non tempor mauris fermentum ut. In a metus quis erat cursus sagittis. Donec congue nisl in viverra egestas. + +Vestibulum facilisis ligula magna, eu ornare lectus varius et. Mauris facilisis faucibus quam, quis mollis eros convallis non. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent sit amet rutrum erat. Suspendisse potenti. Donec lorem mi, sagittis a fringilla sit amet, sagittis bibendum mauris. In in diam et lorem rutrum eleifend a et felis. Sed ac magna quis enim faucibus dictum. Suspendisse blandit enim eu ex laoreet gravida. + +Suspendisse sed semper felis. Etiam mattis magna mi, suscipit ullamcorper tellus euismod sed. Aenean congue scelerisque ligula id sodales. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nunc sem lectus, gravida ac dui non, pharetra posuere leo. Maecenas lacus libero, facilisis et elit vitae, commodo facilisis sem. Vivamus id nisl nulla. Integer at maximus dui. Ut a tincidunt lorem. Vivamus vitae ligula vel lacus cursus condimentum. Phasellus quis mauris lobortis, finibus lorem in, vulputate ex. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed faucibus aliquam metus, quis varius elit porttitor id. Vivamus dignissim sollicitudin scelerisque. Morbi tincidunt, dolor quis vehicula consequat, dui diam condimentum nunc, vitae scelerisque odio libero nec ligula. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; From c7d4ec53c5d71a6f2eb9286fd3dacea3cbb40f4c Mon Sep 17 00:00:00 2001 From: Soumitra Date: Thu, 11 Jan 2024 13:55:07 +0530 Subject: [PATCH 14/49] Delete python_flask_multiple_files_upload directory Move to repo https://github.com/roytuts/flask/tree/master/flask-multiple-files-upload --- python_flask_multiple_files_upload/app.py | 8 ----- python_flask_multiple_files_upload/main.py | 33 ------------------- python_flask_multiple_files_upload/readme.rst | 1 - .../templates/upload.html | 24 -------------- 4 files changed, 66 deletions(-) delete mode 100644 python_flask_multiple_files_upload/app.py delete mode 100644 python_flask_multiple_files_upload/main.py delete mode 100644 python_flask_multiple_files_upload/readme.rst delete mode 100644 python_flask_multiple_files_upload/templates/upload.html diff --git a/python_flask_multiple_files_upload/app.py b/python_flask_multiple_files_upload/app.py deleted file mode 100644 index d58a47f40..000000000 --- a/python_flask_multiple_files_upload/app.py +++ /dev/null @@ -1,8 +0,0 @@ -from flask import Flask - -UPLOAD_FOLDER = 'D:/uploads' - -app = Flask(__name__) -app.secret_key = "secret key" -app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER -app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 diff --git a/python_flask_multiple_files_upload/main.py b/python_flask_multiple_files_upload/main.py deleted file mode 100644 index cff123f81..000000000 --- a/python_flask_multiple_files_upload/main.py +++ /dev/null @@ -1,33 +0,0 @@ -import os -#import magic -import urllib.request -from app import app -from flask import Flask, flash, request, redirect, render_template -from werkzeug.utils import secure_filename - -ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) - -def allowed_file(filename): - return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS - -@app.route('/') -def upload_form(): - return render_template('upload.html') - -@app.route('/', methods=['POST']) -def upload_file(): - if request.method == 'POST': - # check if the post request has the files part - if 'files[]' not in request.files: - flash('No file part') - return redirect(request.url) - files = request.files.getlist('files[]') - for file in files: - if file and allowed_file(file.filename): - filename = secure_filename(file.filename) - file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename)) - flash('File(s) successfully uploaded') - return redirect('/') - -if __name__ == "__main__": - app.run() \ No newline at end of file diff --git a/python_flask_multiple_files_upload/readme.rst b/python_flask_multiple_files_upload/readme.rst deleted file mode 100644 index 174cf9c7e..000000000 --- a/python_flask_multiple_files_upload/readme.rst +++ /dev/null @@ -1 +0,0 @@ -You can go through the tutorial https://www.roytuts.com/python-flask-multiple-files-upload-example/ diff --git a/python_flask_multiple_files_upload/templates/upload.html b/python_flask_multiple_files_upload/templates/upload.html deleted file mode 100644 index 6203d5cf7..000000000 --- a/python_flask_multiple_files_upload/templates/upload.html +++ /dev/null @@ -1,24 +0,0 @@ - -Codestin Search App -

Select file(s) to upload

-

- {% with messages = get_flashed_messages() %} - {% if messages %} -

    - {% for message in messages %} -
  • {{ message }}
  • - {% endfor %} -
- {% endif %} - {% endwith %} -

-
-
-

- -

-
-

- -

-
\ No newline at end of file From 4b664589321f5d2ffd2b473cf8c5d798ee1baa54 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Thu, 18 Jan 2024 14:51:27 +0530 Subject: [PATCH 15/49] Delete python-flask-flash directory Moved to repo https://github.com/roytuts/flask/tree/master/flask-flash --- python-flask-flash/main.py | 16 ---------------- python-flask-flash/readme.rst | 1 - 2 files changed, 17 deletions(-) delete mode 100644 python-flask-flash/main.py delete mode 100644 python-flask-flash/readme.rst diff --git a/python-flask-flash/main.py b/python-flask-flash/main.py deleted file mode 100644 index c758ec854..000000000 --- a/python-flask-flash/main.py +++ /dev/null @@ -1,16 +0,0 @@ -from flask import Flask, flash, render_template - -app = Flask(__name__) -app.secret_key = "secret key" - -@app.route('/') -def app_session(): - #flash('This is a flash message') - #flash('This is a flash error message', 'error') - #flash('This is a flash success message', 'success') - - return render_template('template.html') - - -if __name__ == "__main__": - app.run() \ No newline at end of file diff --git a/python-flask-flash/readme.rst b/python-flask-flash/readme.rst deleted file mode 100644 index bdbc4a817..000000000 --- a/python-flask-flash/readme.rst +++ /dev/null @@ -1 +0,0 @@ -You can go through the tutorial https://www.roytuts.com/flash-message-management-in-python-flask From b2f44e5dd5ced19f1bc8d078bf53b70400632ee8 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Mon, 12 Feb 2024 21:56:57 +0530 Subject: [PATCH 16/49] Delete python-flask-mysql-ajax-username-availability-check directory moved to repo https://github.com/roytuts/flask/tree/master/python-flask-mysql-ajax-username-availability-check --- .../app.py | 3 - .../db_config.py | 11 ---- .../main.py | 43 -------------- .../readme.rst | 1 - .../templates/username.html | 56 ------------------- 5 files changed, 114 deletions(-) delete mode 100644 python-flask-mysql-ajax-username-availability-check/app.py delete mode 100644 python-flask-mysql-ajax-username-availability-check/db_config.py delete mode 100644 python-flask-mysql-ajax-username-availability-check/main.py delete mode 100644 python-flask-mysql-ajax-username-availability-check/readme.rst delete mode 100644 python-flask-mysql-ajax-username-availability-check/templates/username.html diff --git a/python-flask-mysql-ajax-username-availability-check/app.py b/python-flask-mysql-ajax-username-availability-check/app.py deleted file mode 100644 index acd3dac9a..000000000 --- a/python-flask-mysql-ajax-username-availability-check/app.py +++ /dev/null @@ -1,3 +0,0 @@ -from flask import Flask - -app = Flask(__name__) \ No newline at end of file diff --git a/python-flask-mysql-ajax-username-availability-check/db_config.py b/python-flask-mysql-ajax-username-availability-check/db_config.py deleted file mode 100644 index 68c6468a1..000000000 --- a/python-flask-mysql-ajax-username-availability-check/db_config.py +++ /dev/null @@ -1,11 +0,0 @@ -from app import app -from flaskext.mysql import MySQL - -mysql = MySQL() - -# MySQL configurations -app.config['MYSQL_DATABASE_USER'] = 'root' -app.config['MYSQL_DATABASE_PASSWORD'] = 'root' -app.config['MYSQL_DATABASE_DB'] = 'roytuts' -app.config['MYSQL_DATABASE_HOST'] = 'localhost' -mysql.init_app(app) \ No newline at end of file diff --git a/python-flask-mysql-ajax-username-availability-check/main.py b/python-flask-mysql-ajax-username-availability-check/main.py deleted file mode 100644 index 786faf69f..000000000 --- a/python-flask-mysql-ajax-username-availability-check/main.py +++ /dev/null @@ -1,43 +0,0 @@ -import pymysql -from app import app -from db_config import mysql -from flask import jsonify, request, render_template - -@app.route('/user_check', methods=['POST']) -def username_check(): - conn = None - cursor = None - try: - username = request.form['username'] - - # validate the received values - if username and request.method == 'POST': - conn = mysql.connect() - cursor = conn.cursor(pymysql.cursors.DictCursor) - cursor.execute("SELECT * FROM user WHERE login_username=%s", username) - row = cursor.fetchone() - - if row: - resp = jsonify('Username unavailable') - resp.status_code = 200 - return resp - else: - resp = jsonify('Username available') - resp.status_code = 200 - return resp - else: - resp = jsonify('Username is required field.') - resp.status_code = 200 - return resp - except Exception as e: - print(e) - finally: - cursor.close() - conn.close() - -@app.route('/') -def home(): - return render_template('username.html') - -if __name__ == "__main__": - app.run() \ No newline at end of file diff --git a/python-flask-mysql-ajax-username-availability-check/readme.rst b/python-flask-mysql-ajax-username-availability-check/readme.rst deleted file mode 100644 index c5dd7df89..000000000 --- a/python-flask-mysql-ajax-username-availability-check/readme.rst +++ /dev/null @@ -1 +0,0 @@ -You can go through the tutorial https://www.roytuts.com/python-flask-username-availability-check-with-mysql-ajax/ diff --git a/python-flask-mysql-ajax-username-availability-check/templates/username.html b/python-flask-mysql-ajax-username-availability-check/templates/username.html deleted file mode 100644 index d46da158a..000000000 --- a/python-flask-mysql-ajax-username-availability-check/templates/username.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - Codestin Search App - - - - - -
-

Python Flask, AJAX, MySQL - username availability check

- -
-
- Check username -
-
- -
-
-
-
-
- - - - - From 349bf7edce9684763dece469240b2a6d114647d5 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Tue, 13 Feb 2024 23:03:49 +0530 Subject: [PATCH 17/49] Delete python-flask-mysql-jquery-ajax-multi-step-registration directory Moved to repo https://github.com/roytuts/flask/tree/master/python-flask-mysql-jquery-ajax-multi-step-registration --- .../app.py | 4 - .../db_config.py | 11 - .../main.py | 49 ---- .../readme.rst | 1 - .../templates/multi-step-registration.html | 253 ------------------ 5 files changed, 318 deletions(-) delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/app.py delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/db_config.py delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/main.py delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/readme.rst delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/templates/multi-step-registration.html diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/app.py b/python-flask-mysql-jquery-ajax-multi-step-registration/app.py deleted file mode 100644 index 5e65b47b6..000000000 --- a/python-flask-mysql-jquery-ajax-multi-step-registration/app.py +++ /dev/null @@ -1,4 +0,0 @@ -from flask import Flask - -app = Flask(__name__) -app.secret_key = "secret key" \ No newline at end of file diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/db_config.py b/python-flask-mysql-jquery-ajax-multi-step-registration/db_config.py deleted file mode 100644 index 68c6468a1..000000000 --- a/python-flask-mysql-jquery-ajax-multi-step-registration/db_config.py +++ /dev/null @@ -1,11 +0,0 @@ -from app import app -from flaskext.mysql import MySQL - -mysql = MySQL() - -# MySQL configurations -app.config['MYSQL_DATABASE_USER'] = 'root' -app.config['MYSQL_DATABASE_PASSWORD'] = 'root' -app.config['MYSQL_DATABASE_DB'] = 'roytuts' -app.config['MYSQL_DATABASE_HOST'] = 'localhost' -mysql.init_app(app) \ No newline at end of file diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/main.py b/python-flask-mysql-jquery-ajax-multi-step-registration/main.py deleted file mode 100644 index df09f7e86..000000000 --- a/python-flask-mysql-jquery-ajax-multi-step-registration/main.py +++ /dev/null @@ -1,49 +0,0 @@ -import pymysql -from app import app -from db_config import mysql -from flask import flash, render_template, request, redirect, url_for -from werkzeug import generate_password_hash, check_password_hash - -@app.route('/register', methods=['POST']) -def save_user_info(): - cursor = None - try: - name = request.form['name'] - dob = request.form['dob'] - gender = request.form['gender'] - password = request.form['password'] - phone = request.form['phone'] - email = request.form['email'] - address = request.form['address'] - - # validate the received values - if name and dob and gender and password and phone and email and address and request.method == 'POST': - - #do not save password as a plain text - _hashed_password = generate_password_hash(password) - - # save user information - sql = "INSERT INTO user(name, password, email, phone, gender, dob, address) VALUES(%s, %s, %s, %s, %s, %s, %s)" - data = (name, _hashed_password, email, phone, gender, dob, address) - conn = mysql.connect() - cursor = conn.cursor() - cursor.execute(sql, data) - conn.commit() - - flash('You registered successfully!') - - return redirect(url_for('.home')) - else: - return 'Error while saving user information' - except Exception as e: - print(e) - finally: - cursor.close() - conn.close() - -@app.route('/') -def home(): - return render_template('multi-step-registration.html') - -if __name__ == "__main__": - app.run() \ No newline at end of file diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/readme.rst b/python-flask-mysql-jquery-ajax-multi-step-registration/readme.rst deleted file mode 100644 index d6506640d..000000000 --- a/python-flask-mysql-jquery-ajax-multi-step-registration/readme.rst +++ /dev/null @@ -1 +0,0 @@ -You can go through the tutorial https://www.roytuts.com/python-flask-multi-step-registration-form-with-mysql-jquery/ diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/templates/multi-step-registration.html b/python-flask-mysql-jquery-ajax-multi-step-registration/templates/multi-step-registration.html deleted file mode 100644 index 357416030..000000000 --- a/python-flask-mysql-jquery-ajax-multi-step-registration/templates/multi-step-registration.html +++ /dev/null @@ -1,253 +0,0 @@ - - - Codestin Search App - - - - - - - - -
    -
  • Personal Detail
  • -
  • Password
  • -
  • Contact
  • -
- -
- {% with messages = get_flashed_messages() %} - {% if messages %} -
    - {% for message in messages %} -
  • {{ message }}
  • - {% endfor %} -
- {% endif %} - {% endwith %} -
- -
-
-
- -
- -
- -
- -
-
- - - - - -
- - - -
-
-
- - From 37f74a2eb4df961b5c1dc4976cfeb928b77c5e70 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Thu, 18 Jul 2024 17:19:43 +0530 Subject: [PATCH 18/49] Update readme.rst --- python-email-html/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-email-html/readme.rst b/python-email-html/readme.rst index a511e3e83..b3a8275e4 100644 --- a/python-email-html/readme.rst +++ b/python-email-html/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/how-to-send-an-html-email-using-python/ +Please follow the tutorial https://roytuts.com/how-to-send-an-html-email-using-python/ From 719d6734d6846b8dc8420ae4f69e0b3c8c43f088 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:03:25 +0530 Subject: [PATCH 19/49] Update readme.rst --- python-email-text/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-email-text/readme.rst b/python-email-text/readme.rst index a41d94b03..70eb46241 100644 --- a/python-email-text/readme.rst +++ b/python-email-text/readme.rst @@ -1 +1 @@ -You can read tutorial at https://www.roytuts.com/how-to-send-a-simple-email-using-python/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/how-to-send-a-simple-email-using-python/ From 2cae98487bd36ca7b3ccd624f629e405fc4e0b0a Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:05:25 +0530 Subject: [PATCH 20/49] Update html_email.py --- python-email-html/html_email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-email-html/html_email.py b/python-email-html/html_email.py index 468424bd4..9c628ac75 100644 --- a/python-email-html/html_email.py +++ b/python-email-html/html_email.py @@ -12,7 +12,7 @@

Hello

Here is an example of sending HTML email using Python. Please click on below link: - + Send an HTML email using Python

@@ -33,4 +33,4 @@ s.login(fromEmail, 'gmail password') s.send_message(msg) -s.quit() \ No newline at end of file +s.quit() From e35d7c0734236b735e6a43cafc252273b0621124 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:07:34 +0530 Subject: [PATCH 21/49] Update html_email_ssl.py --- python-email-html/html_email_ssl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-email-html/html_email_ssl.py b/python-email-html/html_email_ssl.py index 3d0773db6..e2b074a3e 100644 --- a/python-email-html/html_email_ssl.py +++ b/python-email-html/html_email_ssl.py @@ -12,7 +12,7 @@

Hello

Here is an example of sending HTML email using Python. Please click on below link: - + Send an HTML email using Python

@@ -31,4 +31,4 @@ s.login(fromEmail, 'gmail password') s.send_message(msg) -s.quit() \ No newline at end of file +s.quit() From 1139d050aebf76ee906b9f0fa1fd59d3b89964d7 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:25:12 +0530 Subject: [PATCH 22/49] Update readme.rst --- python-blur-image/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-blur-image/readme.rst b/python-blur-image/readme.rst index 5d1ffaef3..f5e310a34 100644 --- a/python-blur-image/readme.rst +++ b/python-blur-image/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/python-blur-image-pillow/ +Please follow the tutorial https://roytuts.com/python-blur-image-pillow/ From 11763d4c7c452a6d71897accf469a80731be56b3 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:25:33 +0530 Subject: [PATCH 23/49] Update readme.rst --- python-bulk-images-resize/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-bulk-images-resize/readme.rst b/python-bulk-images-resize/readme.rst index 1525949e5..d909698f3 100644 --- a/python-bulk-images-resize/readme.rst +++ b/python-bulk-images-resize/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/how-to-resize-bulk-images-using-python/ +Please follow the tutorial https://roytuts.com/how-to-resize-bulk-images-using-python/ From ca01a78642277dc70f66b22b784af3a833515b11 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:25:53 +0530 Subject: [PATCH 24/49] Update readme.rst --- python-connect-mysql/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-connect-mysql/readme.rst b/python-connect-mysql/readme.rst index a4bd56ca2..71f22babc 100644 --- a/python-connect-mysql/readme.rst +++ b/python-connect-mysql/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/how-to-connect-to-mysql-database-using-python-in-different-ways/ +Please follow the tutorial https://roytuts.com/how-to-connect-to-mysql-database-using-python-in-different-ways/ From a400e62c694d106a3e30fda10e8a3d2694638ae4 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:26:31 +0530 Subject: [PATCH 25/49] Update readme.rst --- python-different-date-time-formats/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-different-date-time-formats/readme.rst b/python-different-date-time-formats/readme.rst index dd6de6551..3a566f5c4 100644 --- a/python-different-date-time-formats/readme.rst +++ b/python-different-date-time-formats/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://roytuts.com/how-to-display-date-time-in-different-formats-in-python/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/how-to-display-date-time-in-different-formats-in-python/ From fc343812c257660e055dbce7b67b55a2dcb0f96b Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:26:52 +0530 Subject: [PATCH 26/49] Update readme.rst --- python-email-attachments/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-email-attachments/readme.rst b/python-email-attachments/readme.rst index 3e3b37f62..2d416f967 100644 --- a/python-email-attachments/readme.rst +++ b/python-email-attachments/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/how-to-send-attachments-with-email-using-python/ +Please follow the tutorial https://roytuts.com/how-to-send-attachments-with-email-using-python/ From 003f24cb60ce7b1f32ac9ce76979341db55e3809 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:27:18 +0530 Subject: [PATCH 27/49] Update readme.rst --- python-email-rfc-822/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-email-rfc-822/readme.rst b/python-email-rfc-822/readme.rst index 5d1c46e25..5682a9977 100644 --- a/python-email-rfc-822/readme.rst +++ b/python-email-rfc-822/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/how-to-use-rfc-822-for-sending-email-in-python/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/how-to-use-rfc-822-for-sending-email-in-python/ From 16dc88ab225413a529e80ffc643125ba82206bdd Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:27:40 +0530 Subject: [PATCH 28/49] Update readme.rst --- python-extract-text-from-pdf/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-extract-text-from-pdf/readme.rst b/python-extract-text-from-pdf/readme.rst index bde676bbe..1f6c66e76 100644 --- a/python-extract-text-from-pdf/readme.rst +++ b/python-extract-text-from-pdf/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/extract-text-from-pdf-file-using-python/ +Please follow the tutorial https://roytuts.com/extract-text-from-pdf-file-using-python/ From 012b535747cea87de9a14d2b21dfe2c60c363c30 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:27:59 +0530 Subject: [PATCH 29/49] Update readme.rst --- python-fibonacci-series/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-fibonacci-series/readme.rst b/python-fibonacci-series/readme.rst index ee12c3bd3..d79603f5f 100644 --- a/python-fibonacci-series/readme.rst +++ b/python-fibonacci-series/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/fibonacci-series-using-python/ +Please follow the tutorial https://roytuts.com/fibonacci-series-using-python/ From 2e33b96e2b8ebcae2b7322d6866ddc50d41882fe Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:28:17 +0530 Subject: [PATCH 30/49] Update readme.rst --- python-file-read-write-compress/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-file-read-write-compress/readme.rst b/python-file-read-write-compress/readme.rst index d80d982eb..640235820 100644 --- a/python-file-read-write-compress/readme.rst +++ b/python-file-read-write-compress/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/how-to-read-write-and-compress-text-file-in-python/ +Please follow the tutorial https://roytuts.com/how-to-read-write-and-compress-text-file-in-python/ From c04bc52dc6bcb2b7ce61de887e218d0ca845a421 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:28:36 +0530 Subject: [PATCH 31/49] Update readme.rst --- python-flask-mysql-csv-report/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-flask-mysql-csv-report/readme.rst b/python-flask-mysql-csv-report/readme.rst index 5759c7b93..05a7dc6de 100644 --- a/python-flask-mysql-csv-report/readme.rst +++ b/python-flask-mysql-csv-report/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/generate-csv-report-from-mysql-database-using-python-flask/ +Please follow the tutorial https://roytuts.com/generate-csv-report-from-mysql-database-using-python-flask/ From 2ceaf1c3ca86ffd1baf97cfe07eecac171b39003 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:28:53 +0530 Subject: [PATCH 32/49] Update readme.rst --- python-flask-mysql-excel-report/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-flask-mysql-excel-report/readme.rst b/python-flask-mysql-excel-report/readme.rst index 48d6633b4..a01006989 100644 --- a/python-flask-mysql-excel-report/readme.rst +++ b/python-flask-mysql-excel-report/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/generate-excel-report-from-mysql-database-using-python-flask/ +Please follow the tutorial https://roytuts.com/generate-excel-report-from-mysql-database-using-python-flask/ From 22d5b4c9a67f9c9ab4580f8781a709844812a172 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:29:12 +0530 Subject: [PATCH 33/49] Update readme.rst --- python-flask-mysql-online-visitor-tracker/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-flask-mysql-online-visitor-tracker/readme.rst b/python-flask-mysql-online-visitor-tracker/readme.rst index a97eb521a..bd64407f4 100644 --- a/python-flask-mysql-online-visitor-tracker/readme.rst +++ b/python-flask-mysql-online-visitor-tracker/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/python-flask-online-visitor-tracking-system/ +Please follow the tutorial https://roytuts.com/python-flask-online-visitor-tracking-system/ From 709bcd3ca3c77a4ee02252cd2dce0d4897c5e1fc Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:29:30 +0530 Subject: [PATCH 34/49] Update readme.rst --- python-flask-mysql-pdf-report/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-flask-mysql-pdf-report/readme.rst b/python-flask-mysql-pdf-report/readme.rst index 7b9e5be3a..31f9299b1 100644 --- a/python-flask-mysql-pdf-report/readme.rst +++ b/python-flask-mysql-pdf-report/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/generate-pdf-report-from-mysql-database-using-python-flask/ +Please follow the tutorial https://roytuts.com/generate-pdf-report-from-mysql-database-using-python-flask/ From edfee42bc27acc96e5a81f3be796c82e1b276816 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:29:48 +0530 Subject: [PATCH 35/49] Update readme.rst --- python-flask-rest-api-basic-auth/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-flask-rest-api-basic-auth/readme.rst b/python-flask-rest-api-basic-auth/readme.rst index 7aa212bbc..916255b67 100644 --- a/python-flask-rest-api-basic-auth/readme.rst +++ b/python-flask-rest-api-basic-auth/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/python-flask-http-basic-authentication/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/python-flask-http-basic-authentication/ From 9aa2bd15091e1174ca57b6cc7cc54d94666dbb5a Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:30:05 +0530 Subject: [PATCH 36/49] Update readme.rst --- python-flask-rest-api-login-logout-remember/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-flask-rest-api-login-logout-remember/readme.rst b/python-flask-rest-api-login-logout-remember/readme.rst index 6830f76d6..228a92353 100644 --- a/python-flask-rest-api-login-logout-remember/readme.rst +++ b/python-flask-rest-api-login-logout-remember/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/python-flask-login-logout-with-remember-me/ +Please follow the tutorial https://roytuts.com/python-flask-login-logout-with-remember-me/ From a26ddc1ff6dbffff33d6de5cb096cc01c7152cd0 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:30:22 +0530 Subject: [PATCH 37/49] Update readme.rst --- python-flask-rest-api-login-logout/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-flask-rest-api-login-logout/readme.rst b/python-flask-rest-api-login-logout/readme.rst index d8e25e5db..f5501ccba 100644 --- a/python-flask-rest-api-login-logout/readme.rst +++ b/python-flask-rest-api-login-logout/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/python-flask-rest-api-login-logout-example/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/python-flask-rest-api-login-logout-example/ From 6be88d2876176239b0fb896844a34b0247cf1ae5 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:30:49 +0530 Subject: [PATCH 38/49] Update readme.rst --- python-flask-xchart/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-flask-xchart/readme.rst b/python-flask-xchart/readme.rst index d7ab4857e..be2b62b3c 100644 --- a/python-flask-xchart/readme.rst +++ b/python-flask-xchart/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/ajax-jquery-based-xchart-example-using-python-flask-mysql/ +Please follow the tutorial https://roytuts.com/ajax-jquery-based-xchart-example-using-python-flask-mysql/ From 3d870c0568d0b1c3fcc4c89d65da5c326323523a Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:31:22 +0530 Subject: [PATCH 39/49] Update readme.rst --- python-pdf-text-to-audio/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-pdf-text-to-audio/readme.rst b/python-pdf-text-to-audio/readme.rst index fc6ae6587..2ad269f96 100644 --- a/python-pdf-text-to-audio/readme.rst +++ b/python-pdf-text-to-audio/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/convert-pdf-file-text-to-audio-speech-using-python-and-google-gtts-api/ +Please follow the tutorial https://roytuts.com/convert-pdf-file-text-to-audio-speech-using-python-and-google-gtts-api/ From b00b5e58b94bb819cb7d05cf7d17f1c24e6f8788 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:32:45 +0530 Subject: [PATCH 40/49] Update readme.rst --- python-record-my-voice/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-record-my-voice/readme.rst b/python-record-my-voice/readme.rst index 8545d6911..aec9108d1 100644 --- a/python-record-my-voice/readme.rst +++ b/python-record-my-voice/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/python-voice-recording-through-microphone-for-arbitrary-time-using-pyaudio/ +Please follow the tutorial https://roytuts.com/python-voice-recording-through-microphone-for-arbitrary-time-using-pyaudio/ From 2c5b030323ca01628442b41b8f15b94256468537 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:33:13 +0530 Subject: [PATCH 41/49] Update readme.rst --- python-video-to-gif/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-video-to-gif/readme.rst b/python-video-to-gif/readme.rst index 129021745..3bd286326 100644 --- a/python-video-to-gif/readme.rst +++ b/python-video-to-gif/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://roytuts.com/how-to-convert-video-mp4-avi-clips-to-gif-in-python/ +Please follow the tutorial https://roytuts.com/how-to-convert-video-mp4-avi-clips-to-gif-in-python/ From 7441c6803a9857e9740059e7e5abe4677476dae8 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:41:40 +0530 Subject: [PATCH 42/49] Update readme.rst --- python-write-file-content-pdf/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-write-file-content-pdf/readme.rst b/python-write-file-content-pdf/readme.rst index ad85c8436..01a451627 100644 --- a/python-write-file-content-pdf/readme.rst +++ b/python-write-file-content-pdf/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/how-to-convert-file-content-into-pdf-document-using-python/ +Please follow the tutorial https://roytuts.com/how-to-convert-file-content-into-pdf-document-using-python/ From 57c6a59b3c95ebcd5e6fcb604d43611092c6c11a Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:41:58 +0530 Subject: [PATCH 43/49] Update readme.rst --- python-write-html-pdf/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-write-html-pdf/readme.rst b/python-write-html-pdf/readme.rst index 87a1e4419..23c9253a1 100644 --- a/python-write-html-pdf/readme.rst +++ b/python-write-html-pdf/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/how-to-convert-html-content-into-pdf-document-using-python/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/how-to-convert-html-content-into-pdf-document-using-python/ From 324863ab9e10f046a82c20edbee7a27fedaa7f66 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:42:38 +0530 Subject: [PATCH 44/49] Update readme.rst --- python_flask_mysql_bootstrap_calendar_events/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_flask_mysql_bootstrap_calendar_events/readme.rst b/python_flask_mysql_bootstrap_calendar_events/readme.rst index ff1f95163..3b835cc75 100644 --- a/python_flask_mysql_bootstrap_calendar_events/readme.rst +++ b/python_flask_mysql_bootstrap_calendar_events/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/bootstrap-calendar-events-demo-using-python-flask-mysql/ +Please follow the tutorial https://roytuts.com/bootstrap-calendar-events-demo-using-python-flask-mysql/ From fba43769a119f7111cf9a10c6edd6e895ece5a16 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:43:05 +0530 Subject: [PATCH 45/49] Update readme.rst --- real-time-face-detection/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/real-time-face-detection/readme.rst b/real-time-face-detection/readme.rst index 72191e6d2..05217726c 100644 --- a/real-time-face-detection/readme.rst +++ b/real-time-face-detection/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/real-time-face-detection-in-webcam-using-python/ +Please follow the tutorial https://roytuts.com/real-time-face-detection-in-webcam-using-python/ From 48f7dde682544a64d4efb7f90c781aa4d1e85be2 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:43:24 +0530 Subject: [PATCH 46/49] Update readme.rst --- real_time_eye_detection/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/real_time_eye_detection/readme.rst b/real_time_eye_detection/readme.rst index 81cbd3dd5..8cbe87ce1 100644 --- a/real_time_eye_detection/readme.rst +++ b/real_time_eye_detection/readme.rst @@ -1 +1 @@ -You can go through the tutorial https://www.roytuts.com/real-time-eye-detection-in-webcam-using-python-3/ +Please follow the tutorial https://roytuts.com/real-time-eye-detection-in-webcam-using-python-3/ From 91cfdc6a398b0e0e1c584abbdcf75a2d620ef76b Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:43:43 +0530 Subject: [PATCH 47/49] Update readme.rst --- retrive-forgotten-password/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retrive-forgotten-password/readme.rst b/retrive-forgotten-password/readme.rst index 414d8d4ea..942a7fa21 100644 --- a/retrive-forgotten-password/readme.rst +++ b/retrive-forgotten-password/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/check-saved-password-in-wifi-network/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/check-saved-password-in-wifi-network/ From 3beaeca4fdd3e9d6952e85be14be9d63304a7706 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:44:01 +0530 Subject: [PATCH 48/49] Update readme.rst --- see-yourself-camera/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/see-yourself-camera/readme.rst b/see-yourself-camera/readme.rst index 1416097f6..67b58966e 100644 --- a/see-yourself-camera/readme.rst +++ b/see-yourself-camera/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/see-yourself-in-webcam-using-python/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/see-yourself-in-webcam-using-python/ From 9294708a1e07fce559f8870f272d24f5f1eb0309 Mon Sep 17 00:00:00 2001 From: Soumitra Date: Fri, 19 Jul 2024 15:44:18 +0530 Subject: [PATCH 49/49] Update readme.rst --- wifi-connected-users/readme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wifi-connected-users/readme.rst b/wifi-connected-users/readme.rst index 70b9c6e01..52badff08 100644 --- a/wifi-connected-users/readme.rst +++ b/wifi-connected-users/readme.rst @@ -1 +1 @@ -You can read tutorial https://www.roytuts.com/find-all-users-connected-to-wifi-network-using-python/ \ No newline at end of file +Please follow the tutorial https://roytuts.com/find-all-users-connected-to-wifi-network-using-python/