├── .gitignore ├── Covid19_Updates_Notifier_App.py ├── Digital Clock ├── Digital_Clock.py ├── Readme.md └── Screenshot.PNG ├── Email_Sender_App.py ├── FaceDetection_App.py ├── Internet_SpeedTest_App.py ├── Jarvis_AI_Assistant_App.py ├── Kaggle_Notebooks_views_adder.py ├── OCR Image To Text App ├── Details.txt ├── OCR_Image_to_Text.py └── img.png ├── PDF File Handling Tool ├── Extract Images From PDF File │ ├── Extract_Images_From_PDF_Files.py │ ├── Final_Extracted_Images │ │ ├── image_1_1.jpeg │ │ ├── image_1_2.jpeg │ │ ├── image_1_3.jpeg │ │ └── image_2_1.jpeg │ ├── PDF_Merged.pdf │ └── output.txt ├── Merge Multiple PDF Files │ ├── File 1.pdf │ ├── File 2.pdf │ ├── File 3.pdf │ ├── Merge_Multiple_PDF_Files.py │ └── PDF_Merged.pdf ├── Read Text From PDF File │ ├── PDF_Merged.pdf │ ├── Read_Text_From_PDF_Files.py │ └── output.txt └── Splitting PDF File │ ├── PDF_Merged.pdf │ ├── Splitting_PDF_Files.py │ └── split_pdf_files │ ├── page_1.pdf │ ├── page_2.pdf │ └── page_3.pdf ├── Python_Django_Password_Generator ├── Project.zip ├── README.md ├── ScreenRecording.gif ├── Screenshot1.PNG └── Screenshot2.PNG ├── README.md ├── ScreenRecorder_App.py ├── ScreenShot_App.py ├── Text_to_Speech_App.py ├── URL_Shortner_App.py └── Webcam_Photo_capture_App.py /.gitignore: -------------------------------------------------------------------------------- 1 | env.py 2 | venv 3 | .idea 4 | __pycache__ 5 | Practice.py 6 | TestProject 7 | StudyBulletColab.ipynb 8 | ZapCourses/env.py 9 | FreshersGold/env.py 10 | ZapCoursesNew 11 | ZapCourses/ConsoleOutputLogs.txt 12 | OutputLogs 13 | ExecutedPostList.txt -------------------------------------------------------------------------------- /Covid19_Updates_Notifier_App.py: -------------------------------------------------------------------------------- 1 | ''' 2 | GoTo Command Prompt and install requests package using command 'pip install requests' 3 | and install win10toast package using command 'pip install win10toast'. 4 | After that run the below code to get the worldwide CoVid19 cases update on your windows notification area. 5 | ''' 6 | 7 | import requests #To handle Api calls 8 | from win10toast import ToastNotifier #for showing windows notification toast 9 | import json 10 | import time 11 | 12 | def update(): 13 | r= requests.get('https://coronavirus-19-api.herokuapp.com/all') 14 | data = r.json() #converting/typecasting the get request into Json format. 15 | text = f'Confirmed Cases : {data["cases"]} \nDeaths : {data["deaths"]} \nRecovered : {data["recovered"]}' 16 | #The above is the text which will be printed onto the notification window area. 17 | 18 | while True: 19 | toast = ToastNotifier() 20 | toast.show_toast("Covid-19 Updates",text,duration=20) # Duration 20 sec means the notification will disappear in 20 seconds 21 | time.sleep(600) # Time accepted in seconds after each interval new updated notification will come. 22 | 23 | 24 | update() #calling the update function 25 | 26 | ### End of Code ### 27 | -------------------------------------------------------------------------------- /Digital Clock/Digital_Clock.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Python | Create a digital clock using Tkinter 3 | 4 | As we know Tkinter is used to create a variety of GUI (Graphical User Interface) applications. 5 | In this project I will create a Digital clock using Tkinter. 6 | We'll Use Label widget from Tkinter and time module : 7 | In the following application, we are going to use Label widget and also going to use time module which we will use to retrieve system’s time. 8 | ''' 9 | 10 | # importing whole module 11 | from tkinter import * 12 | from tkinter.ttk import * 13 | 14 | # importing strftime function to retrieve system's time 15 | from time import strftime 16 | 17 | # creating tkinter window 18 | root = Tk() 19 | root.title('Amar\'s Clock') 20 | 21 | 22 | # This function is used to display time on the label 23 | def time(): 24 | string = strftime('%I:%M:%S %p') 25 | # To make the clock format 24 hrs. Simply change the strftime('%I:%M:%S %p') to strftime('%H:%M:%S %p'). 26 | lbl.config(text=string) 27 | lbl.after(1000, time) # It will update the time after every (1000 milliseconds i.e. after 1 second) 28 | 29 | 30 | # Styling the label widget so that clock will look more attractive 31 | lbl = Label(root, font=('calibri', 40, 'bold'), background='purple', foreground='white') 32 | 33 | 34 | # Placing clock at the centre of the tkinter window 35 | lbl.pack(anchor='center') 36 | time() 37 | 38 | mainloop() 39 | -------------------------------------------------------------------------------- /Digital Clock/Readme.md: -------------------------------------------------------------------------------- 1 | ## Digital Clock using Python & Tkinter. 2 | ![Python 3.9](https://img.shields.io/badge/Python-3.9-brightgreen.svg) ![Tkinter](https://img.shields.io/badge/tkinter-8.6-blue) 3 | 4 | ### Description: 5 | * As we know Tkinter is used to create a variety of GUI (Graphical User Interface) applications.
6 | * In this project I will create a Digital clock using Tkinter.
7 | * We'll Use Label widget from Tkinter to create GUI and time module which we will use to retrieve system’s time.
8 | 9 | 10 | ## Screenshot: 11 |

12 | 13 | ### Don't forget to ⭐ the repository, if it helped you in anyway. 14 | 15 | #### Feel Free to contact me at➛ databoyamar@gmail.com for any help related to Projects in this Repository! 16 | -------------------------------------------------------------------------------- /Digital Clock/Screenshot.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/Digital Clock/Screenshot.PNG -------------------------------------------------------------------------------- /Email_Sender_App.py: -------------------------------------------------------------------------------- 1 | ''' 2 | GoTo sender's Gmail account first and turn_On/Allow the toggle of "Access of Less Secure Apps" using this link- 3 | https://www.google.com/settings/security/lesssecureapps so that SMTP server can login to sender's gmail account without 4 | security errors. 5 | ''' 6 | import smtplib 7 | from email.mime.multipart import MIMEMultipart 8 | from email.mime.text import MIMEText 9 | 10 | msg = MIMEMultipart() 11 | msg['From'] = 'Your_email@gmail.com' 12 | msg['To'] = 'To_email@gmail.com' 13 | msg['Subject'] = 'simple email in python 3' 14 | message = 'here is the email hello sir' 15 | msg.attach(MIMEText(message)) 16 | 17 | 18 | def SendEmail(From, to, content): 19 | try: 20 | server = smtplib.SMTP('smtp.gmail.com', 587) 21 | server.ehlo() # identify ourselves to smtp gmail client 22 | server.starttls() # secure our email with tls encryption 23 | server.login(From, 'Your_email_password') # Update your Email password here! 24 | server.sendmail(From, to, content) 25 | print("Mail Sent Successfully!") 26 | except: 27 | print("Error occurred while sending mail") 28 | 29 | 30 | SendEmail(msg['From'], msg['To'], msg.as_string()) 31 | 32 | ### End of Code ### 33 | -------------------------------------------------------------------------------- /FaceDetection_App.py: -------------------------------------------------------------------------------- 1 | ''' 2 | step1. GoTo Command Prompt and install package opencv using command 'pip install opencv-python' 3 | 4 | after running the code 5 | ''' 6 | 7 | import numpy as np 8 | import cv2, time 9 | 10 | # We point OpenCV's CascadeClassifier function to where our 11 | # classifier (XML file format) is stored 12 | #face_classifier = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') 13 | 14 | face_classifier = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml') 15 | eye_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_eye.xml') 16 | 17 | # Load our image then convert it to grayscale 18 | # Update your image path Here! 19 | image = cv2.imread('C:/Users/gsc-30431/PycharmProjects/test1.py/Python_Projects/FaceDetection_App/img2.jpg') 20 | gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) 21 | 22 | # Our classifier returns the ROI of the detected face as a tuple 23 | # It stores the top left coordinate and the bottom right coordiantes 24 | faces = face_classifier.detectMultiScale(gray, 1.3, 5) 25 | 26 | # When no faces detected, face_classifier returns and empty tuple 27 | if faces is (): 28 | print("No faces found") 29 | 30 | # We iterate through our faces array and draw a rectangle 31 | # over each face in faces 32 | for (x, y, w, h) in faces: 33 | cv2.rectangle(image, (x, y), (x + w, y + h), (255, 0, 0), 2) 34 | cv2.imshow('Face Detection', image) 35 | cv2.waitKey(1200) 36 | cv2.waitKey(0) 37 | cv2.destroyAllWindows() 38 | 39 | ### End of Code ### 40 | -------------------------------------------------------------------------------- /Internet_SpeedTest_App.py: -------------------------------------------------------------------------------- 1 | 2 | ''' 3 | GoTo Command Prompt and install speedtest package using command 'pip install speedtest-cli' 4 | After that run the below code to get the internet speed on your console. 5 | ''' 6 | 7 | 8 | import os 9 | os.system('cmd /c "speedtest-cli"') # Here we are running the console command 'speedtest-cli' using python code 10 | # The above line of code is enough for getting the internet speed.. There's no Long Coding is needed for this! 11 | 12 | ### End of Code ### 13 | 14 | ''' 15 | The output will be like- 16 | 17 | Retrieving speedtest.net configuration... 18 | Testing from Airtel (223.187.156.60)... 19 | Retrieving speedtest.net server list... 20 | Selecting best server based on ping... 21 | Hosted by NANDBALAJI CONNECTING ZONE PVT. LTD (Godda) [52.57 km]: 133.118 ms 22 | Testing download speed.......................................... 23 | Download: 12.68 Mbit/s 24 | Testing upload speed............................................ 25 | Upload: 11.69 Mbit/s 26 | 27 | Process finished with exit code 0 28 | 29 | ''' 30 | -------------------------------------------------------------------------------- /Jarvis_AI_Assistant_App.py: -------------------------------------------------------------------------------- 1 | 2 | ''' 3 | GoTo Command Prompt and install pyttsx3 package using command 'pip install pyttsx3' 4 | and install SpeechRecognition package using command 'pip install SpeechRecognition'. 5 | and install wikipedia package using command 'pip install wikipedia. 6 | After that run the below code and Speak something then the Assistant will repeat whatever you said! 7 | ''' 8 | 9 | import speech_recognition as sr 10 | import datetime 11 | import time as tt 12 | import pyttsx3, wikipedia 13 | 14 | 15 | engine = pyttsx3.init('sapi5') 16 | voices = engine.getProperty('voices') 17 | 18 | engine.setProperty('voice',voices[0].id) 19 | 20 | def speak(audio): 21 | engine.say(audio) 22 | engine.runAndWait() 23 | 24 | def time(): 25 | speak("Welcome Back!") 26 | Time = datetime.datetime.now().strftime("%I:%M:%S") 27 | print(Time) 28 | speak(f"The time is {Time}") 29 | 30 | 31 | 32 | def wiki(): 33 | try: 34 | query = "sadsdasd" 35 | results = wikipedia.summary(query, sentences = 3) 36 | speak("According to Wikipedia") 37 | print(results) 38 | speak(results) 39 | except: 40 | print("No results Found or Network Connection Error!") 41 | 42 | 43 | 44 | def takecommand(): 45 | r = sr.Recognizer() 46 | with sr.Microphone() as source: 47 | print("Listening...") 48 | r.pause_threshold = 1 49 | audio = r.listen(source) 50 | 51 | try: 52 | print("Recognizing......") 53 | query = r.recognize_google(audio, language= 'en-in') 54 | tt.sleep(2) 55 | print((f"You Said:{query}\n")) 56 | speak((f"You Said:{query}\n")) 57 | 58 | except Exception as e: 59 | print(e) 60 | print("Say That Again....") 61 | speak("Say That Again....") 62 | return "None" 63 | return query 64 | 65 | takecommand() # use this function and speak something which Asistant will repeat 66 | #wiki() # Use this function if you want to search something on wikipedia using Assistant 67 | #time() #use this function if you want assistant to speak the current time 68 | 69 | 70 | ### End of Code ### 71 | 72 | -------------------------------------------------------------------------------- /Kaggle_Notebooks_views_adder.py: -------------------------------------------------------------------------------- 1 | 2 | ''' 3 | GoTo Command Prompt and install selenium package using command 'pip install selenium' 4 | and install humanfriendly package using command 'pip install humanfriendly'. 5 | Update the Kaggle Notebook Post link into the "Link" Variable and set the number of Views you want 6 | Downloaded the latest ChromeDriver.exe from this link - (https://chromedriver.chromium.org/downloads) and after 7 | downloading, extract it and keep that Chromedriver.exe into the same folder from where you're running this Python file. 8 | After that run the below code and wait till the views are getting added. 9 | ''' 10 | 11 | from selenium import webdriver 12 | from selenium.webdriver.support.ui import WebDriverWait 13 | from selenium.common.exceptions import * 14 | from selenium.webdriver.support import expected_conditions as EC 15 | from selenium.webdriver.common.by import By 16 | import time 17 | import random 18 | from random import randint 19 | from humanfriendly import format_timespan 20 | from selenium.webdriver.common.keys import Keys 21 | from selenium.webdriver.common.action_chains import ActionChains 22 | 23 | start_time = time.time() 24 | 25 | # ----------------------------------- Update Link and Views Count Below ------------------------------- 26 | 27 | link = "https://www.kaggle.com/carlmcbrideellis/jane-street-eda-of-day-0-and-feature-importance" # Change the Kaggle Notebook Link Here. 28 | limit = 20 # Update how many views you want on your post. 29 | 30 | # ------------------------------------------------------------------------------------------------------ 31 | 32 | driver = webdriver.Chrome() 33 | wait = WebDriverWait(driver, 30) 34 | wait1 = WebDriverWait(driver, 7) 35 | driver.get(link) 36 | driver.maximize_window() 37 | time.sleep(5) 38 | 39 | for i in range(0, limit): 40 | chrome_options = webdriver.ChromeOptions() 41 | chrome_options.add_argument("--incognito") 42 | chrome_options.add_experimental_option("detach", True) 43 | driver1 = webdriver.Chrome(options=chrome_options) 44 | wait_incognito = WebDriverWait(driver1, 30) 45 | driver1.maximize_window() 46 | driver1.get(link) 47 | time.sleep(10) 48 | wait_incognito.until(EC.element_to_be_clickable((By.XPATH,'(//*[@title ="Input"])[1]'))).click() 49 | time.sleep(10) 50 | wait_incognito.until(EC.element_to_be_clickable((By.XPATH, '(//*[@title ="Comments"])[1]'))).click() 51 | time.sleep(10) 52 | driver1.close() 53 | print("Completed "+str(i+1) +" Click!!") 54 | 55 | end_time = time.time() - start_time 56 | print("Total execution time: ", format_timespan(end_time)) 57 | -------------------------------------------------------------------------------- /OCR Image To Text App/Details.txt: -------------------------------------------------------------------------------- 1 | OCR_Image_to_Text 2 | -------------------------------------------------------------------------------- /OCR Image To Text App/OCR_Image_to_Text.py: -------------------------------------------------------------------------------- 1 | ''' 2 | step1. GoTo Command Prompt and install pytesseract package using command 'pip install pytesseract' 3 | step2. Goto this link - https://github.com/ub-mannheim/tesseract/wiki and download 4 | 'tesseract-ocr-w64-setup-v5.0.0-alpha.20200328.exe (64 bit) resp.' setup and Install it on your machine. 5 | step3. Change the Image path in the below code. 6 | After that run the below code 7 | ''' 8 | 9 | import pytesseract # Importing the package installed in step1. 10 | from PIL import Image 11 | 12 | pytesseract.pytesseract.tesseract_cmd = r"C:/Users/gsc-30431/AppData/Local/Tesseract-OCR/tesseract.exe" 13 | # Provide the path of tesseract.exe file which was installed in step2 14 | 15 | def convert(): 16 | img = Image.open('C:/Users/gsc-30431/PycharmProjects/test1.py/Python_Projects/OCR_Img_to_Text/img5.jpg') # Update Image Path Here! 17 | # Provite the path of Image which is to be converted into text 18 | text = pytesseract.image_to_string(img) 19 | print(text) 20 | 21 | convert() 22 | -------------------------------------------------------------------------------- /OCR Image To Text App/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/OCR Image To Text App/img.png -------------------------------------------------------------------------------- /PDF File Handling Tool/Extract Images From PDF File/Extract_Images_From_PDF_Files.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Install essential libraries using pip command-> !pip install PyPDF2 pdfplumber pymupdf reportlab 3 | ''' 4 | 5 | # Extract images from the PDF File. 6 | import fitz # PyMuPDF 7 | def extract_images(pdf_path, output_dir): 8 | pdf_document = fitz.open(pdf_path) 9 | for page_index in range(len(pdf_document)): 10 | page = pdf_document.load_page(page_index) 11 | image_list = page.get_images(full=True) 12 | for img_index, img in enumerate(image_list): 13 | xref = img[0] 14 | base_image = pdf_document.extract_image(xref) 15 | image_bytes = base_image["image"] 16 | image_ext = base_image["ext"] 17 | image_filename = f"{output_dir}/image_{page_index + 1}_{img_index + 1}.{image_ext}" 18 | with open(image_filename, "wb") as image_file: 19 | image_file.write(image_bytes) 20 | print(f"Saved {image_filename}") 21 | # Usage 22 | extract_images('PDF_Merged.pdf', 'Final_Extracted_Images') -------------------------------------------------------------------------------- /PDF File Handling Tool/Extract Images From PDF File/Final_Extracted_Images/image_1_1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Extract Images From PDF File/Final_Extracted_Images/image_1_1.jpeg -------------------------------------------------------------------------------- /PDF File Handling Tool/Extract Images From PDF File/Final_Extracted_Images/image_1_2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Extract Images From PDF File/Final_Extracted_Images/image_1_2.jpeg -------------------------------------------------------------------------------- /PDF File Handling Tool/Extract Images From PDF File/Final_Extracted_Images/image_1_3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Extract Images From PDF File/Final_Extracted_Images/image_1_3.jpeg -------------------------------------------------------------------------------- /PDF File Handling Tool/Extract Images From PDF File/Final_Extracted_Images/image_2_1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Extract Images From PDF File/Final_Extracted_Images/image_2_1.jpeg -------------------------------------------------------------------------------- /PDF File Handling Tool/Extract Images From PDF File/PDF_Merged.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Extract Images From PDF File/PDF_Merged.pdf -------------------------------------------------------------------------------- /PDF File Handling Tool/Extract Images From PDF File/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Extract Images From PDF File/output.txt -------------------------------------------------------------------------------- /PDF File Handling Tool/Merge Multiple PDF Files/File 1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Merge Multiple PDF Files/File 1.pdf -------------------------------------------------------------------------------- /PDF File Handling Tool/Merge Multiple PDF Files/File 2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Merge Multiple PDF Files/File 2.pdf -------------------------------------------------------------------------------- /PDF File Handling Tool/Merge Multiple PDF Files/File 3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Merge Multiple PDF Files/File 3.pdf -------------------------------------------------------------------------------- /PDF File Handling Tool/Merge Multiple PDF Files/Merge_Multiple_PDF_Files.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Install essential libraries using pip command-> !pip install PyPDF2 pdfplumber pymupdf reportlab 3 | ''' 4 | 5 | import PyPDF2 6 | def merge_pdfs(pdf_list, output_path): 7 | pdf_writer = PyPDF2.PdfWriter() 8 | for pdf in pdf_list: 9 | pdf_reader = PyPDF2.PdfReader(pdf) 10 | for page_num in range(len(pdf_reader.pages)): 11 | pdf_writer.add_page(pdf_reader.pages[page_num]) 12 | with open(output_path, 'wb') as out: 13 | pdf_writer.write(out) 14 | print(f"Merged PDF saved as {output_path}") 15 | # Usage 16 | merge_pdfs(['File 1.pdf', 'File 2.pdf', 'File 3.pdf'], 'PDF_Merged.pdf') -------------------------------------------------------------------------------- /PDF File Handling Tool/Merge Multiple PDF Files/PDF_Merged.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Merge Multiple PDF Files/PDF_Merged.pdf -------------------------------------------------------------------------------- /PDF File Handling Tool/Read Text From PDF File/PDF_Merged.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Read Text From PDF File/PDF_Merged.pdf -------------------------------------------------------------------------------- /PDF File Handling Tool/Read Text From PDF File/Read_Text_From_PDF_Files.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Install essential libraries using pip command-> !pip install PyPDF2 pdfplumber pymupdf reportlab 3 | ''' 4 | 5 | # Extract Text from the PDF File. 6 | import pdfplumber 7 | def extract_text(pdf_path, output_txt_path): 8 | with pdfplumber.open(pdf_path) as pdf: 9 | full_text = '' 10 | for page in pdf.pages: 11 | full_text += page.extract_text() + '\n' 12 | with open(output_txt_path, 'w') as f: 13 | f.write(full_text) 14 | print(f"Extracted text saved as {output_txt_path}") 15 | # Usage 16 | extract_text('PDF_Merged.pdf', 'output.txt') -------------------------------------------------------------------------------- /PDF File Handling Tool/Read Text From PDF File/output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Read Text From PDF File/output.txt -------------------------------------------------------------------------------- /PDF File Handling Tool/Splitting PDF File/PDF_Merged.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Splitting PDF File/PDF_Merged.pdf -------------------------------------------------------------------------------- /PDF File Handling Tool/Splitting PDF File/Splitting_PDF_Files.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Install essential libraries using pip command-> !pip install PyPDF2 pdfplumber pymupdf reportlab 3 | ''' 4 | 5 | # Splitting PDF file to multiple PDF files/Pages. 6 | import PyPDF2 7 | 8 | 9 | def split_pdf(pdf_path, output_dir): 10 | pdf_reader = PyPDF2.PdfReader(pdf_path) 11 | for page_num in range(len(pdf_reader.pages)): 12 | pdf_writer = PyPDF2.PdfWriter() 13 | pdf_writer.add_page(pdf_reader.pages[page_num]) 14 | output_path = f"{output_dir}/page_{page_num + 1}.pdf" 15 | with open(output_path, 'wb') as out: 16 | pdf_writer.write(out) 17 | print(f"Saved {output_path}") 18 | 19 | 20 | # Usage 21 | split_pdf('PDF_Merged.pdf', 'split_pdf_files') -------------------------------------------------------------------------------- /PDF File Handling Tool/Splitting PDF File/split_pdf_files/page_1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Splitting PDF File/split_pdf_files/page_1.pdf -------------------------------------------------------------------------------- /PDF File Handling Tool/Splitting PDF File/split_pdf_files/page_2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Splitting PDF File/split_pdf_files/page_2.pdf -------------------------------------------------------------------------------- /PDF File Handling Tool/Splitting PDF File/split_pdf_files/page_3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/PDF File Handling Tool/Splitting PDF File/split_pdf_files/page_3.pdf -------------------------------------------------------------------------------- /Python_Django_Password_Generator/Project.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/Python_Django_Password_Generator/Project.zip -------------------------------------------------------------------------------- /Python_Django_Password_Generator/README.md: -------------------------------------------------------------------------------- 1 | # Python_Django_Password_Generator 2 | Python_Django - Random Password Generator 3 | 4 | Features: 5 | 6 | 1. Generate 100% secure password. 7 | 8 | 2. Random password generation. 9 | 10 | 3. We do not store passwords in our system. 11 | 12 | 4. Open Source 13 | 14 | ### ScreenRecording of Running the Live Project 15 | [![Demo Doccou alpha](https://github.com/amark720/Python_Projects/blob/master/Python_Django_Password_Generator/ScreenRecording.gif)](https://recordit.co/ohLjBzVxYK) 16 | 17 | ## Screenshots of The Project: 18 | ### Screenshot1 19 | ![alt text](https://github.com/amark720/Python_Projects/blob/master/Python_Django_Password_Generator/Screenshot1.PNG?raw=true) 20 | ### Screenshot2 21 | ![alt text](https://github.com/amark720/Python_Projects/blob/master/Python_Django_Password_Generator/Screenshot2.PNG?raw=true) 22 | 23 | -------------------------------------------------------------------------------- /Python_Django_Password_Generator/ScreenRecording.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/Python_Django_Password_Generator/ScreenRecording.gif -------------------------------------------------------------------------------- /Python_Django_Password_Generator/Screenshot1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/Python_Django_Password_Generator/Screenshot1.PNG -------------------------------------------------------------------------------- /Python_Django_Password_Generator/Screenshot2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amark720/Python_Projects/79ac3b769655d0085266ad0e0d95d4b497077181/Python_Django_Password_Generator/Screenshot2.PNG -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Python_Projects 2 | #### This Repository contains multiple Python projects created by me! 3 | #### I've Written and executed all these programs using Pycharm Ide so it will be better if you use Pycharm IDE to execute these programs. 4 | 5 | ## List of Python Projects available into this Repository: 6 | 7 | ### 1. Email Sender App 8 | In this project you'll just need to enter your Gmail ID and password for Login and you need to fill the receiver's email Id and subject Then it will automatically send that mail to the Specific person. 9 | 10 | ### 2. Face Detection App 11 | In this project you just need to feed an image which will consist faces of human beings then after running the app it will give output file as an image on which every face will be marked with square boxes onto it. 12 | 13 | ### 3. Internet Speed Test App 14 | In this project you will be able to check the Upload and Download speed of your network. just run the python application and in the output you'll see the Internet Speed details. 15 | 16 | ### 4. Screen Recorder App 17 | In this project you'll be able to record the screen of your whole desktop. Just run the program and it will start capturing your entire screen and the output file will be saved in your specified path mentioned into the python code. 18 | 19 | ### 5. Screenshot App 20 | In thie project You can take screenshot of your entire screen, after running the application a small window will open in which you'll see a take screenshot button and upon clicking on that button will take the screenshot of the entire screen and will save onto the path specified into the python program. 21 | 22 | ### 6. Text to Speech App 23 | In this project you need to enter the Text into the console and after that just hit enter and program will then speak out whatever text you've written. 24 | *Note: keep your speaker unmute to hear what program will be speaking* 25 | 26 | ### 7. URL Shortner App 27 | In this project you just need to enter the URL into the console which you want to shorten and then you'll see the shorten url using Tinyurl as an output. 28 | 29 | ### 8.OCR Image to Text App 30 | In this project you need to submit image which contains text then after running the program it will give output in the console with the Text whatever was written onto the Image 31 | 32 | ### 9. Covid19 Updates Notifier App 33 | In this project you just need to run the application and you'll see that into the windows notification area a poupup will be generated with the current wordwide Corona Virus case updates in which you'll see the number of total cases followed by total number of recoverd and Deaths. 34 | you just need to set the interval time into the program then after that interval of time it will againg give you a windows notification with latest corona Virus case updates. 35 | 36 | 37 | 38 | ### Repo Stats: 39 | [![GitHub](https://img.shields.io/github/followers/amark720?style=social)](https://github.com/amark720)   [![GitHub](https://img.shields.io/github/stars/amark720/Python_Projects?style=social)](https://github.com/amark720/Python_Projects)   [![GitHub](https://img.shields.io/github/forks/amark720/Python_Projects?style=social)](https://github.com/amark720/Python_Projects) 40 | ### Don't forget to ⭐ the repository, if it helped you in anyway. 41 | 42 | #### Feel Free to contact me at➛ databoyamar@gmail.com for any help related to Projects in this Repository! 43 | -------------------------------------------------------------------------------- /ScreenRecorder_App.py: -------------------------------------------------------------------------------- 1 | ''' 2 | 3 | minimize the ScreenRecorder popup window that opens after running the program so that it can capture the screen without 4 | giving any multiple window popups recording. 5 | 6 | ''' 7 | 8 | import cv2 9 | import numpy as np 10 | from PIL import ImageGrab 11 | import time 12 | 13 | def screenRecorder(): 14 | time.sleep(5) 15 | fourcc = cv2.VideoWriter_fourcc(*'XVID') 16 | out = cv2.VideoWriter("output.avi", fourcc, 5.0, (1366, 768)) 17 | # Here 5.0 is the frame rate and 1366,768 is the screen size 18 | 19 | while (1): 20 | img = ImageGrab.grab() 21 | img_np = np.array(img) 22 | frame = cv2.cvtColor(img_np, cv2.COLOR_BGR2RGB) 23 | cv2.imshow("Screen Recorder", frame) 24 | out.write(frame) 25 | 26 | if cv2.waitKey(1) ==27: 27 | break 28 | out.release() 29 | cv2.destroyAllWindows() 30 | screenRecorder() 31 | 32 | 33 | ### End of Code ### 34 | -------------------------------------------------------------------------------- /ScreenShot_App.py: -------------------------------------------------------------------------------- 1 | import time 2 | import pyautogui 3 | import tkinter as tk 4 | 5 | 6 | def screenshot(): 7 | name = int(round(time.time() * 1000)) 8 | name = 'C:/Users/gsc-30431/PycharmProjects/test1.py/Screenshot_App/{}.png'.format(name) 9 | # Update the Directory path above where the screenshots will be saved. 10 | 11 | img = pyautogui.screenshot(name) 12 | img.show() 13 | 14 | 15 | root = tk.Tk() 16 | frame = tk.Frame(root) 17 | frame.pack() 18 | 19 | button = tk.Button( 20 | frame, 21 | text="Take Screenshot", 22 | command=screenshot) 23 | 24 | button.pack(side=tk.LEFT) 25 | close = tk.Button( 26 | frame, 27 | text="Quit", 28 | command=quit) 29 | 30 | close.pack(side=tk.LEFT) 31 | 32 | root.mainloop() 33 | 34 | 35 | ### End of Code ### 36 | -------------------------------------------------------------------------------- /Text_to_Speech_App.py: -------------------------------------------------------------------------------- 1 | ''' 2 | step1. GoTo Command Prompt and install package pyttsx3==2.71 using command 'pip install pyttsx3==2.71' 3 | step2. install package pywin32 using command pip install pywin32 4 | 5 | After that run the below code 6 | ''' 7 | 8 | import pyttsx3 9 | 10 | data = input("Enter text which you want to convert to Speech:\n") 11 | 12 | engine = pyttsx3.init() 13 | engine.say(data) 14 | engine.runAndWait() 15 | 16 | ### End of Code ### 17 | -------------------------------------------------------------------------------- /URL_Shortner_App.py: -------------------------------------------------------------------------------- 1 | ''' 2 | step1. GoTo Command Prompt and install pyshorteners package using command 'pip install pyshorteners' 3 | After that run the below code 4 | ''' 5 | 6 | 7 | import pyshorteners 8 | 9 | url = input("Enter URL which you want to Shorten : \n") 10 | 11 | print("URL After Shortening :- ", pyshorteners.Shortener().tinyurl.short(url)) 12 | # This above line print the Shorten url of your Entred Long URL. 13 | 14 | 15 | ### End of Code ### 16 | 17 | -------------------------------------------------------------------------------- /Webcam_Photo_capture_App.py: -------------------------------------------------------------------------------- 1 | ''' 2 | step1. GoTo Command Prompt and install package opencv using command 'pip install opencv-python' 3 | 4 | after running the code 5 | note: image will be saved in the same directory where this python file is located. 6 | image will directly be captured without opening any preview of camera. 7 | ''' 8 | 9 | 10 | import cv2 11 | 12 | imgcapture = cv2.VideoCapture(0) 13 | result = True 14 | 15 | while(result): 16 | ret, frame = imgcapture.read() 17 | cv2.imwrite("test.jpg", frame) 18 | result = False 19 | print("Image Captured...") 20 | 21 | imgcapture.release() 22 | 23 | ### End of Code ### 24 | --------------------------------------------------------------------------------