├── .github └── ISSUE_TEMPLATE │ ├── add_new_project.md │ ├── bug_report.md │ └── feature_request.md ├── AIR_QUALITY_DETECTOR └── airqualitydetector.py ├── ALARM_CLOCK ├── AlarmClock.py └── MyAlarm.wav ├── Admission Prediction using ML ├── Admission_Predict_Ver1.1.csv ├── Screenshot 1.png ├── Screenshot 2.png ├── Screenshot 3.png ├── Screenshot 4.png ├── Screenshot 5.png ├── Thumbs.db └── admission_prediction_using_machine_learning.py ├── Automatic FB login └── Project _ Automatic FB login.py ├── Breast Cancer Detection using Neural Network └── BreastCancerDetectionUsingCNN.ipynb ├── CALCULATOR_PYTHON ├── CALC.py └── sample outputs │ ├── factorial operation.png │ ├── layout.png │ └── multiplication operation.png ├── CODE_OF_CONDUCT.md ├── CONTACT_BOOK_APPLICATION ├── Creating Table 1.JPG ├── Creating Table 2 .JPG ├── Creating Table 3 .JPG ├── Creating table in database 1.JPG ├── Creating table in database 2.JPG ├── Creating table in database 3.JPG ├── Deleting Table in database.JPG ├── Deleting Table.JPG ├── Drop Table.JPG ├── Drop table in database.JPG ├── Output - contact book application.JPG ├── Updating Table.JPG ├── Updating table in database.JPG ├── contact book application 1.JPG ├── contact book application 2.JPG ├── contact book application 3.JPG ├── contact book application 4.JPG ├── contact book application 5.JPG └── contact book application.py ├── CONTACT_MANAGEMENT_APP_DJANGO ├── README.md ├── app │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ ├── admin.cpython-37.pyc │ │ ├── models.cpython-37.pyc │ │ ├── urls.cpython-37.pyc │ │ └── views.cpython-37.pyc │ ├── admin.py │ ├── apps.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── 0002_auto_20190209_1152.py │ │ ├── 0003_auto_20190217_2103.py │ │ ├── 0004_remove_contact_manager.py │ │ ├── 0005_contact_manager.py │ │ ├── 0006_auto_20200502_1342.py │ │ ├── __init__.py │ │ └── __pycache__ │ │ │ ├── 0001_initial.cpython-37.pyc │ │ │ ├── 0002_auto_20190209_1152.cpython-37.pyc │ │ │ ├── 0003_auto_20190217_2103.cpython-37.pyc │ │ │ ├── 0004_remove_contact_manager.cpython-37.pyc │ │ │ ├── 0005_contact_manager.cpython-37.pyc │ │ │ ├── 0006_auto_20200502_1342.cpython-37.pyc │ │ │ └── __init__.cpython-37.pyc │ ├── models.py │ ├── tests.py │ ├── urls.py │ └── views.py ├── contacts │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ ├── settings.cpython-37.pyc │ │ ├── urls.cpython-37.pyc │ │ └── wsgi.cpython-37.pyc │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── db.sqlite3 ├── manage.py ├── media │ └── images │ │ ├── barack_obama.jpg │ │ ├── barack_obama_27LVOFd.jpg │ │ ├── barack_obama_h5PhxaQ.jpg │ │ ├── bill_gates.jpg │ │ ├── bill_gates_RsO78Qg.jpg │ │ ├── bill_gates_x83UvLx.jpg │ │ ├── boy.jpg │ │ ├── boy_XFva2Xw.jpg │ │ ├── boy_q3yEobQ.jpg │ │ ├── donald_trump.jpg │ │ ├── donald_trump_K40s1aT.jpg │ │ ├── donald_trump_Ld3I8nX.jpg │ │ ├── elon_musk.jpg │ │ ├── elon_musk_FqlcciW.jpg │ │ ├── elon_musk_rHUiKNX.jpg │ │ ├── emma_watson.png │ │ ├── emma_watson_5zJrNYP.png │ │ ├── emma_watson_MT2gLIs.png │ │ ├── girl.jpg │ │ ├── jackie_chan.jpg │ │ ├── jackie_chan_002ZUrV.jpg │ │ ├── jackie_chan_69MWG5J.jpg │ │ ├── jackie_chan_QQyq1xV.jpg │ │ ├── james_bond.jpg │ │ ├── james_bond_6pP7XrW.jpg │ │ ├── james_bond_uVwokiJ.jpg │ │ ├── messi.jpg │ │ ├── messi_7v0emTr.jpg │ │ ├── messi_H4IiZAr.jpg │ │ ├── oprah_winfrey.jpg │ │ ├── oprah_winfrey_SVvY68g.jpg │ │ ├── oprah_winfrey_wPNomnv.jpg │ │ ├── ronaldo.jpg │ │ ├── ronaldo_EyQB5kI.jpg │ │ ├── ronaldo_qy2rWAL.jpg │ │ ├── sarukh_khan.jpg │ │ ├── sarukh_khan_abKBxIc.jpg │ │ ├── sarukh_khan_qVVY7a2.jpg │ │ ├── taylor_swift.jpg │ │ ├── taylor_swift_OCC4Eps.jpg │ │ └── taylor_swift_VhVXvsP.jpg ├── requirements.txt ├── screenshot.png ├── static │ ├── css │ │ ├── admin.css │ │ └── main.css │ └── images │ │ ├── boy.png │ │ ├── contact-icon.png │ │ └── girl.png └── templates │ ├── 404.html │ ├── 500.html │ ├── admin │ └── base_site.html │ ├── base.html │ ├── create.html │ ├── delete.html │ ├── detail.html │ ├── index.html │ ├── partials │ ├── _card.html │ └── _message.html │ ├── registration │ ├── logged_out.html │ ├── login.html │ └── signup.html │ ├── search.html │ └── update.html ├── CONTRIBUTING.md ├── CREDITCARD_FRAUD_PREDICTION_PROJECT ├── Credit Card Fraudent Detection.ipynb └── model.pkl ├── FILE_RENAME_TOOL ├── LICENSE ├── README.md ├── files │ ├── atom-1.txt │ ├── atom-10.txt │ ├── atom-11.txt │ ├── atom-12.txt │ ├── atom-13.txt │ ├── atom-14.txt │ ├── atom-15.txt │ ├── atom-16.txt │ ├── atom-17.txt │ ├── atom-18.txt │ ├── atom-19.txt │ ├── atom-2.txt │ ├── atom-20.txt │ ├── atom-21.txt │ ├── atom-22.txt │ ├── atom-23.txt │ ├── atom-24.txt │ ├── atom-25.txt │ ├── atom-26.txt │ ├── atom-27.txt │ ├── atom-28.txt │ ├── atom-29.txt │ ├── atom-3.txt │ ├── atom-30.txt │ ├── atom-31.txt │ ├── atom-32.txt │ ├── atom-33.txt │ ├── atom-34.txt │ ├── atom-35.txt │ ├── atom-36.txt │ ├── atom-37.txt │ ├── atom-38.txt │ ├── atom-39.txt │ ├── atom-4.txt │ ├── atom-40.txt │ ├── atom-41.txt │ ├── atom-42.txt │ ├── atom-43.txt │ ├── atom-44.txt │ ├── atom-45.txt │ ├── atom-46.txt │ ├── atom-47.txt │ ├── atom-48.txt │ ├── atom-49.txt │ ├── atom-5.txt │ ├── atom-50.txt │ ├── atom-6.txt │ ├── atom-7.txt │ ├── atom-8.txt │ └── atom-9.txt ├── images │ ├── after_operation.png │ └── before_operation.png └── main.py ├── FLIGHT_FARE_PREDICTION ├── .gitignore ├── README.md ├── data │ └── Data_Train.xlsx ├── fligth_fare_prediction_.ipynb └── results │ └── Result.PNG ├── Facebook Birthday Bot ├── Project _FB birthday bot.py └── req.txt ├── GOOGLE API ├── Capture1.PNG ├── Capture2.PNG ├── Capture3.PNG ├── README.md ├── geodump.py ├── geoload.py ├── where.html └── where.js ├── HANGMAN_GAME ├── hangman.py ├── output-img.PNG └── output.PNG ├── HOUSING PRICES PREDICTION ├── Housing.csv ├── model.h5 └── model.ipynb ├── IPL_SCORE_PREDICTOR ├── IPLScore.ipynb ├── Procfile ├── README.md ├── app.py ├── ipl.csv ├── model.pkl ├── requirements.txt ├── screenshot │ ├── Screenshot (359).png │ ├── Screenshot (360).png │ └── Screenshot (361).png ├── static │ ├── 1.jpg │ ├── 2.jpg │ ├── csk.jpg │ ├── dc.jpg │ ├── kkr.jpg │ ├── kxip.jpg │ ├── mi.jpg │ ├── rcb.jpg │ ├── rr.jpg │ └── srh.jpg └── templates │ └── index1.html ├── IRIS_FLOWER_CLASSIFICATION_USING_ML ├── README.md ├── Screenshot │ ├── bar.png │ ├── boxplot.png │ ├── color-pairplot.png │ ├── histogram.png │ ├── pairplot.png │ └── subplot.png └── iris_flowers_Data_Classification_using_Python_Machine_Learning_.ipynb ├── IRIS_FLOWER_DETECTION ├── IRIS_FLOWER_DETECTION.ipynb └── Results │ ├── Confusion-Matrix.PNG │ └── classification_report.PNG ├── LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER ├── LatLong │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── README.md ├── app │ ├── admin.py │ ├── apps.py │ ├── latLongToAddressConverter.py │ ├── latLongToAddressConverterFromCSV.py │ ├── latlong2.csv │ ├── models.py │ ├── tests.py │ ├── urls.py │ └── views.py ├── db.sqlite3 ├── manage.py ├── requirements.txt └── templates │ ├── app │ └── index.html │ └── static │ └── style.css ├── LICENSE ├── LICENSE_PLATE_DETECTION ├── name_plate_detection.py └── ouput_image.jpg ├── LOAN PREDICTION ├── dataset.csv ├── model.ipynb └── model_svm.pkl ├── Live sketching project ├── 4.3. Live Sketching.ipynb └── README.md ├── MyAlarm ├── HeyYa.mp3 └── alarm2.py ├── NOTIFICATION_APP ├── Output - notification desktop.JPG ├── desktop notification.JPG └── desktop notification.py ├── PASSWORD_MANAGER ├── info.txt └── password.py ├── PIN_YOUR_NOTE ├── Output - Pin your note application.JPG ├── pin your note application.JPG └── pin your note application.py ├── PULL_REQUEST_TEMPLATE.md ├── QUIZ APP ├── Question.py ├── app.py └── sample results │ ├── 1.png │ ├── 2.png │ ├── 3.png │ └── colab.png ├── README.md ├── ROCK_PAPER_SCISSOR ├── GAME.PY ├── ROCKPAPERSCISSOR.py └── SAMPLE OUTPUTS │ ├── 2.png │ └── Untitled.png ├── ROLLING_DICE ├── Output_Screenshots │ ├── output_1.png │ ├── output_2.png │ └── output_3.png └── Rolling Dice.py ├── SECURE_YOUR_PASSWORD ├── Output - secure your password.JPG ├── Updated code.py ├── secure your password 1.JPG ├── secure your password 2.JPG └── secure your password.py ├── SENTIMENT_ANALYSER_ML_PROJECT ├── README.md └── Root folder │ ├── Images folder │ ├── Output 1 - Sentiment analysis.JPG │ ├── Output 2 - Sentiment analysis.JPG │ ├── README.md │ ├── emotions 1.JPG │ ├── emotions 10.JPG │ ├── emotions 11.JPG │ ├── emotions 12.JPG │ ├── emotions 13.JPG │ ├── emotions 14.JPG │ ├── emotions 15.JPG │ ├── emotions 16.JPG │ ├── emotions 2.JPG │ ├── emotions 3.JPG │ ├── emotions 4.JPG │ ├── emotions 5.JPG │ ├── emotions 6.JPG │ ├── emotions 7.JPG │ ├── emotions 8.JPG │ ├── emotions 9.JPG │ ├── main 1.JPG │ ├── main 2.JPG │ ├── main 3.JPG │ ├── read 1.JPG │ └── read 2.JPG │ ├── emotions.txt │ ├── main.py │ └── read.txt ├── SENTIMENT_ANALYSIS_ML_PROJECT ├── Data │ ├── test_SentimentAnalysis.csv │ └── train_SentimentAnalysis.csv ├── Screenshots │ └── Model_Evaluation.png └── Sentiment_Analysis_Twitter.ipynb ├── SINE_VS_COSINE └── app.py ├── STOCK_PRICE_PREDICTION ├── Data Collection.ipynb ├── Model_Notebook.ipynb ├── google_dataset.csv └── model.h5 ├── Search and edit Gui Application ├── README.md ├── The Searching and Editing App 18-12-2020 06_08_33.png └── searchwikipedia.py ├── StockPricePredictor ├── Data │ ├── Testdata_SBI.csv │ └── Traindata_SBI.csv └── StockPricePredictior.ipynb ├── TCREDIT_CARD_FRAUD_DETECTION ├── CreditCardFraudDetection.ipynb ├── Data │ └── creditcard.csv.zip └── Screenshot │ └── Model_Metrics.png ├── TIC TAC TOE ( vs Computer ) ├── .gitignore └── tic_tac_toe_vs_computer.py ├── TIC_TAC_TOE ├── tic_tac_toe └── tictactoe ├── TIC_TAC_TOE_MINMAX_ALGO ├── Screenshot (334).png ├── Screenshot (335).png └── minimax_tic_tac_toe.ipynb ├── TITANIC_SURVIVAL_PROJECT2 ├── Reference.md ├── Titanic_Survival_Project2.ipynb └── Titanic_Survival_Project2_result.png ├── TYPING_SPEED_TEST ├── Output - Typing Speed Test.JPG ├── Typing Speed Test.JPG └── Typing Speed Test.py ├── Twitter-Bot ├── README.md ├── __pycache__ │ ├── config.cpython-38.pyc │ └── credientials.cpython-38.pyc ├── config.py ├── credientials.py ├── daily_tweets.png ├── result.png └── twitterapp.py ├── URL_SHORTENER └── app.py ├── WEATHER_APP └── weatherapp.py ├── WORDGAMES ├── description └── letter_partner.py ├── _config.yml ├── movie recommandation ├── 1.PNG ├── 2.PNG ├── main.py └── readme.md └── movierecommandation.py /.github/ISSUE_TEMPLATE/add_new_project.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Add or suggest your own Python project 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe your project clearly.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /AIR_QUALITY_DETECTOR/airqualitydetector.py: -------------------------------------------------------------------------------- 1 | from tkinter import * 2 | from PIL import ImageTk, Image 3 | import requests 4 | import json 5 | 6 | root=Tk() 7 | root.title("Air quality detector") 8 | #root.iconbitmap('c:/Users/Garima Singh/Desktop/image.png') 9 | root.geometry("800x40") 10 | root.configure(background='green') 11 | 12 | try: 13 | api_request= requests.get("http://www.airnowapi.org/aq/observation/zipCode/current/?format=application/json&zipCode=20002&distance=10&API_KEY=1415D85E-FB89-40EF-B8F0-63F99A595BC8") 14 | api=json.loads(api_request.content) 15 | city=api[0]['ReportingArea'] 16 | quality=api[0]['AQI'] 17 | category=api[0]['Category']['Name'] 18 | except Exception as e: 19 | api="Error..." 20 | 21 | myLabel= Label(root, text=city + " Air Quality" + str(quality) + " "+ category, font=("Helvetica", 20), background="green") 22 | myLabel.pack() 23 | 24 | 25 | root.mainloop() 26 | 27 | #https://www.youtube.com/watch?v=vJCjDevYDt8 -------------------------------------------------------------------------------- /ALARM_CLOCK/MyAlarm.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/ALARM_CLOCK/MyAlarm.wav -------------------------------------------------------------------------------- /Admission Prediction using ML/Screenshot 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Admission Prediction using ML/Screenshot 1.png -------------------------------------------------------------------------------- /Admission Prediction using ML/Screenshot 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Admission Prediction using ML/Screenshot 2.png -------------------------------------------------------------------------------- /Admission Prediction using ML/Screenshot 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Admission Prediction using ML/Screenshot 3.png -------------------------------------------------------------------------------- /Admission Prediction using ML/Screenshot 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Admission Prediction using ML/Screenshot 4.png -------------------------------------------------------------------------------- /Admission Prediction using ML/Screenshot 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Admission Prediction using ML/Screenshot 5.png -------------------------------------------------------------------------------- /Admission Prediction using ML/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Admission Prediction using ML/Thumbs.db -------------------------------------------------------------------------------- /Admission Prediction using ML/admission_prediction_using_machine_learning.py: -------------------------------------------------------------------------------- 1 | # Admission_Prediction_using_Machine_Learning By Zahra Shahid 2 | 3 | 4 | """# **Import libraries**""" 5 | 6 | import pandas as pd 7 | import seaborn as sns 8 | import matplotlib.pyplot as plt 9 | 10 | 11 | """# **Upload and Read file**""" 12 | 13 | from google.colab import files 14 | files.upload() 15 | 16 | df = pd.read_csv("Admission_Predict_Ver1.1.csv") 17 | 18 | df.head(8) 19 | 20 | 21 | """# **Cleaning the data**""" 22 | 23 | df.columns 24 | 25 | df.drop('Serial No.',axis=1,inplace=True) 26 | 27 | df.head() 28 | 29 | 30 | """#**Exploratory Data Aanalysis**""" 31 | 32 | df.describe() 33 | 34 | df.corr() 35 | 36 | sns.heatmap(df.corr(), annot=True) 37 | 38 | sns.distplot(df.CGPA) 39 | 40 | sns.pairplot(df,x_vars=['SOP','GRE Score','TOEFL Score','CGPA'],y_vars=['Chance of Admit '],height=5, aspect=0.8, kind='reg') 41 | 42 | 43 | """# **Creating Model**""" 44 | 45 | df.columns 46 | 47 | x=df[['GRE Score', 'TOEFL Score', 'CGPA']] 48 | 49 | y=df[['Chance of Admit ']] 50 | 51 | from sklearn.linear_model import LinearRegression 52 | from sklearn.model_selection import train_test_split 53 | import random 54 | 55 | x_train, x_test, y_train, y_test =train_test_split(x,y,test_size=0.20,random_state=0) 56 | 57 | x_train.shape 58 | 59 | y_train.shape 60 | 61 | linreg = LinearRegression() 62 | linreg.fit(x_train,y_train) 63 | 64 | 65 | """# **Testing and Evaluating the Model**""" 66 | 67 | y_pred=linreg.predict(x_test) 68 | 69 | y_pred[:7] 70 | 71 | y_test.head(7) 72 | 73 | from sklearn import metrics 74 | print(metrics.mean_absolute_error(y_test,y_pred)) #96% prediction 75 | 76 | -------------------------------------------------------------------------------- /Automatic FB login/Project _ Automatic FB login.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | import time 3 | from selenium.webdriver.common.keys import Keys 4 | 5 | 6 | user_id=input('Enter User Id of your Fb Account :') # Take user id and password as input from the user 7 | password=input('Enter the password :') 8 | 9 | print(user_id) 10 | print(password) 11 | 12 | cd='C:\\webdrivers\\chromedriver.exe' #path to your chrome driver 13 | 14 | 15 | browser= webdriver.Chrome(cd) 16 | browser.get('https://www.facebook.com/') 17 | 18 | 19 | user_box = browser.find_element_by_id("email") # For detecting the user id box 20 | user_box.send_keys(user_id) # Enter the user id in the box 21 | 22 | password_box = browser.find_element_by_id("pass") # For detecting the password box 23 | password_box.send_keys(password) # For detecting the password in the box 24 | 25 | login_box = browser.find_element_by_id("u_0_b") # For detecting the Login button 26 | login_box.click() 27 | -------------------------------------------------------------------------------- /CALCULATOR_PYTHON/sample outputs/factorial operation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CALCULATOR_PYTHON/sample outputs/factorial operation.png -------------------------------------------------------------------------------- /CALCULATOR_PYTHON/sample outputs/layout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CALCULATOR_PYTHON/sample outputs/layout.png -------------------------------------------------------------------------------- /CALCULATOR_PYTHON/sample outputs/multiplication operation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CALCULATOR_PYTHON/sample outputs/multiplication operation.png -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Creating Table 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Creating Table 1.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Creating Table 2 .JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Creating Table 2 .JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Creating Table 3 .JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Creating Table 3 .JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Creating table in database 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Creating table in database 1.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Creating table in database 2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Creating table in database 2.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Creating table in database 3.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Creating table in database 3.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Deleting Table in database.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Deleting Table in database.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Deleting Table.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Deleting Table.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Drop Table.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Drop Table.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Drop table in database.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Drop table in database.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Output - contact book application.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Output - contact book application.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Updating Table.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Updating Table.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/Updating table in database.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/Updating table in database.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/contact book application 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/contact book application 1.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/contact book application 2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/contact book application 2.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/contact book application 3.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/contact book application 3.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/contact book application 4.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/contact book application 4.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/contact book application 5.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_BOOK_APPLICATION/contact book application 5.JPG -------------------------------------------------------------------------------- /CONTACT_BOOK_APPLICATION/contact book application.py: -------------------------------------------------------------------------------- 1 | from tkinter import * 2 | import sqlite3 3 | 4 | root=Tk() 5 | root.geometry('410x450') 6 | root.title("DataBase using Sqlite3 and Tkinter") 7 | root.configure(background="powder blue") 8 | 9 | textin=StringVar() 10 | textinn=StringVar() 11 | 12 | menu=Menu(root) 13 | root.config(menu=menu) 14 | 15 | menu = Menu(root) 16 | root.config(menu=menu) 17 | 18 | def helpp(): 19 | help(sqlite3) 20 | 21 | subm = Menu(menu) 22 | menu.add_cascade(label="Help",menu=subm) 23 | subm.add_command(label="Sqlite3 Docs",command=helpp) 24 | 25 | 26 | 27 | db = sqlite3.connect('mysq.db') 28 | cursor = db.cursor() 29 | cursor.execute("CREATE TABLE IF NOT EXISTS people(name TEXT, phone TEXT)") 30 | db.commit() 31 | 32 | lab=Label(root,text='Name:',font=('none 13 bold')) 33 | lab.place(x=0,y=0) 34 | 35 | entname=Entry(root,width=20,font=('none 13 bold'),textvar=textin) 36 | entname.place(x=80,y=0) 37 | 38 | entphone=Entry(root,width=20,font=('none 13 bold'),textvar=textinn) 39 | entphone.place(x=80,y=40) 40 | 41 | lab1=Label(root,text='Phone:',font=('none 13 bold')) 42 | lab1.place(x=0,y=40) 43 | 44 | def insert(): 45 | 46 | name1 = textin.get() 47 | phone1 = textinn.get() 48 | conn = sqlite3.connect('mysq.db') 49 | with conn: 50 | cursor = conn.cursor() 51 | cursor.execute('INSERT INTO people(name, phone) VALUES(?,?)',(name1, phone1,)) 52 | db.close() 53 | 54 | 55 | def show(): 56 | connt = sqlite3.connect('mysq.db') 57 | cursor = connt.cursor() 58 | cursor.execute('SELECT * FROM people') 59 | for row in cursor.fetchall(): 60 | print(row) 61 | 62 | 63 | 64 | 65 | name=StringVar() 66 | phone=StringVar() 67 | def updateContact(): 68 | nam=name.get() 69 | ph=phone.get() 70 | 71 | 72 | connnt=sqlite3.connect('mysq.db') 73 | cursor = connnt.cursor() 74 | cursor.execute("UPDATE people SET name = ? WHERE phone = ?",(nam,ph)) 75 | connnt.commit() 76 | 77 | dell=StringVar() 78 | def det(): 79 | dee=dell.get() 80 | connnt=sqlite3.connect('mysq.db') 81 | cursor = connnt.cursor() 82 | cursor.execute("DELETE FROM people WHERE name = ?",(dee,)) 83 | connnt.commit() 84 | 85 | 86 | 87 | 88 | def drop(): 89 | connnt=sqlite3.connect('mysq.db') 90 | cursor = connnt.cursor() 91 | cursor.execute("DROP table people") 92 | connnt.commit() 93 | 94 | 95 | 96 | 97 | buttdrop=Button(root,padx=2,pady=2,text='Drop table',command=drop,font=('none 13 bold'),relief='raise') 98 | buttdrop.place(x=180,y=380) 99 | 100 | buttupdate=Button(root,padx=2,pady=2,text='Update',command=updateContact,font=('none 13 bold'),relief='raise') 101 | buttupdate.place(x=80,y=280) 102 | 103 | labuname=Label(root,text='Update Name :',font=('none 13 bold')) 104 | labuname.place(x=0,y=200) 105 | 106 | enttupadtename=Entry(root,width=20,font=('none 13 bold'),textvar=name) 107 | enttupadtename.place(x=160,y=200) 108 | 109 | labuphone=Label(root,text='Provide Phone No. :',font=('none 13 bold')) 110 | labuphone.place(x=0,y=240) 111 | 112 | entupdatephone=Entry(root,width=20,font=('none 13 bold'),textvar=phone) 113 | entupdatephone.place(x=210,y=240) 114 | 115 | labdelete=Label(root,text='Delete :',font=('none 13 bold')) 116 | labdelete.place(x=0,y=340) 117 | 118 | endelete=Entry(root,width=20,textvar=dell,font=('none 13 bold')) 119 | endelete.place(x=90,y=340) 120 | 121 | 122 | butdel=Button(root,padx=2,pady=2,text='Delete',command=det,font=('none 13 bold')) 123 | butdel.place(x=90,y=380) 124 | 125 | 126 | but=Button(root,padx=2,pady=2,text='Submit',command=insert,font=('none 13 bold')) 127 | but.place(x=60,y=100) 128 | 129 | res=Button(root,padx=2,pady=2,text='Show',command=show,font=('none 13 bold')) 130 | res.place(x=160,y=100) 131 | 132 | 133 | 134 | root.mainloop() 135 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/README.md: -------------------------------------------------------------------------------- 1 |

Contact-Manager-App-Django

2 | 3 |
4 | 5 |
6 |
7 | 8 | ## Functionalities 9 | - [x] User Authentication 10 | - [x] Search 11 | - [x] Real Time Update from Admin 12 | - [x] Delete 13 | - [x] Filter according to gender 14 | - [x] Profile Image 15 | 16 | 17 | 18 | ## How To Run 19 | ``` 20 | git clone https://github.com/saadhaxxan/Contact-Manager-Django.git 21 | cd Contact-Manager-Django 22 | python manage.py runserver 23 | ``` 24 | ## Access to the Admin Panel 25 | ``` 26 | python manage.py createsuperuser 27 | ``` 28 | 29 | ## Author 30 | You can get in touch with me on my LinkedIn Profile: 31 | 32 | #### Saad Hassan 33 | [![LinkedIn Link](https://img.shields.io/badge/Connect-saadhaxxan-blue.svg?logo=linkedin&longCache=true&style=social&label=Connect 34 | )](https://www.linkedin.com/in/saadhaxxan) 35 | 36 | You can also follow my GitHub Profile to stay updated about my latest projects: [![GitHub Follow](https://img.shields.io/badge/Connect-saadhaxxan-blue.svg?logo=Github&longCache=true&style=social&label=Follow)](https://github.com/saadhaxxan) 37 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/__init__.py -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/admin.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/admin.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/models.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/models.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/urls.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/urls.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/views.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/__pycache__/views.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.contrib.auth.models import Group 3 | from .models import Contact 4 | from import_export.admin import ImportExportModelAdmin 5 | 6 | class ContactAdmin(admin.ModelAdmin): 7 | list_display = ('name','gender','email','phone','info') 8 | list_editable = ('info',) 9 | list_per_page = 10 10 | search_fields =('name','gender','email','phone','info') 11 | list_filter = ('gender',) 12 | 13 | 14 | admin.site.register(Contact,ContactAdmin) 15 | admin.site.unregister(Group) 16 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class AppConfig(AppConfig): 5 | name = 'app' 6 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.1.5 on 2019-02-06 12:46 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | initial = True 9 | 10 | dependencies = [ 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='Contact', 16 | fields=[ 17 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 18 | ('name', models.CharField(max_length=20)), 19 | ('email', models.EmailField(max_length=100)), 20 | ('phone', models.IntegerField()), 21 | ('info', models.CharField(max_length=30)), 22 | ('gender', models.CharField(choices=[('male', 'Male'), ('feamle', 'Female')], max_length=50)), 23 | ('image', models.ImageField(blank=True, upload_to='images/')), 24 | ('date_added', models.DateField(auto_now_add=True)), 25 | ], 26 | ), 27 | ] 28 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/0002_auto_20190209_1152.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.1.5 on 2019-02-09 06:07 2 | 3 | import datetime 4 | from django.db import migrations, models 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('app', '0001_initial'), 11 | ] 12 | 13 | operations = [ 14 | migrations.AlterField( 15 | model_name='contact', 16 | name='date_added', 17 | field=models.DateTimeField(default=datetime.datetime.now), 18 | ), 19 | ] 20 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/0003_auto_20190217_2103.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.1.5 on 2019-02-17 15:18 2 | 3 | from django.conf import settings 4 | from django.db import migrations, models 5 | import django.db.models.deletion 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('app', '0002_auto_20190209_1152'), 13 | ] 14 | 15 | operations = [ 16 | migrations.AlterModelOptions( 17 | name='contact', 18 | options={'ordering': ['-id']}, 19 | ), 20 | migrations.AddField( 21 | model_name='contact', 22 | name='manager', 23 | field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), 24 | ), 25 | ] 26 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/0004_remove_contact_manager.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.1.5 on 2019-02-17 15:35 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('app', '0003_auto_20190217_2103'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RemoveField( 14 | model_name='contact', 15 | name='manager', 16 | ), 17 | ] 18 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/0005_contact_manager.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.1.5 on 2019-02-19 02:36 2 | 3 | from django.conf import settings 4 | from django.db import migrations, models 5 | import django.db.models.deletion 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 12 | ('app', '0004_remove_contact_manager'), 13 | ] 14 | 15 | operations = [ 16 | migrations.AddField( 17 | model_name='contact', 18 | name='manager', 19 | field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), 20 | ), 21 | ] 22 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/0006_auto_20200502_1342.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.8 on 2020-05-02 08:42 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('app', '0005_contact_manager'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterModelOptions( 14 | name='contact', 15 | options={}, 16 | ), 17 | migrations.AlterField( 18 | model_name='contact', 19 | name='gender', 20 | field=models.CharField(choices=[('male', 'Male'), ('female', 'Female')], max_length=50), 21 | ), 22 | ] 23 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__init__.py -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0001_initial.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0001_initial.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0002_auto_20190209_1152.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0002_auto_20190209_1152.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0003_auto_20190217_2103.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0003_auto_20190217_2103.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0004_remove_contact_manager.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0004_remove_contact_manager.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0005_contact_manager.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0005_contact_manager.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0006_auto_20200502_1342.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/0006_auto_20200502_1342.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/app/migrations/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | from django.utils.timezone import datetime 5 | from django.contrib.auth.models import User 6 | 7 | class Contact(models.Model): 8 | manager = models.ForeignKey(User, on_delete=models.CASCADE,default=None) 9 | name = models.CharField(max_length=20) 10 | email = models.EmailField(max_length=100) 11 | phone = models.IntegerField() 12 | info = models.CharField(max_length=30) 13 | gender = models.CharField(max_length=50, choices=( 14 | ('male', 'Male'), 15 | ('female', 'Female') 16 | )) 17 | image = models.ImageField(upload_to='images/', blank=True) 18 | date_added = models.DateTimeField(default=datetime.now) 19 | 20 | def __str__(self): 21 | return self.name 22 | 23 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from . import views 3 | urlpatterns = [ 4 | # path('', views.home, name="home"), 5 | path('', views.HomePageView.as_view(), name="home"), 6 | # path('detail//', views.detail, name="detail"), 7 | path('detail//', views.ContactDetailView.as_view(), name="detail"), 8 | path('search/', views.search, name="search"), 9 | path('contacts/create', views.ContactCreateView.as_view(), name="create"), 10 | path('contacts/update/', 11 | views.ContactUpdateView.as_view(), name="update"), 12 | path('contacts/delete/', 13 | views.ContactDeleteView.as_view(), name="delete"), 14 | path('signup/', views.SignUpView.as_view(), name="signup"), 15 | ] 16 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/app/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render, get_object_or_404, redirect 2 | from .models import Contact 3 | from django.views.generic import ListView, DetailView 4 | from django.db.models import Q 5 | from django.views.generic.edit import CreateView, UpdateView, DeleteView 6 | from django.contrib.auth.forms import UserCreationForm 7 | from django.contrib.auth.mixins import LoginRequiredMixin 8 | from django.contrib.auth.decorators import login_required 9 | from django.urls import reverse_lazy 10 | from django.contrib import messages 11 | 12 | # def home(request): 13 | # context = { 14 | # 'contacts': Contact.objects.all() 15 | # } 16 | # return render(request, 'index.html', context) 17 | 18 | 19 | # def detail(request, id): 20 | # context = { 21 | # 'contact': get_object_or_404(Contact, pk=id) 22 | # } 23 | # return render(request, 'detail.html', context) 24 | 25 | 26 | class HomePageView(LoginRequiredMixin, ListView): 27 | template_name = 'index.html' 28 | model = Contact 29 | context_object_name = 'contacts' 30 | 31 | def get_queryset(self): 32 | contacts = super().get_queryset() 33 | return contacts.filter(manager=self.request.user) 34 | 35 | 36 | class ContactDetailView(LoginRequiredMixin, DetailView): 37 | template_name = 'detail.html' 38 | model = Contact 39 | context_object_name = 'contact' 40 | 41 | 42 | @login_required 43 | def search(request): 44 | if request.GET: 45 | search_term = request.GET['search_term'] 46 | search_results = Contact.objects.filter( 47 | Q(name__icontains=search_term) | 48 | Q(email__icontains=search_term) | 49 | Q(info__icontains=search_term) | 50 | Q(phone__iexact=search_term) 51 | ) 52 | context = { 53 | 'search_term': search_term, 54 | 'contacts': search_results.filter(manager=request.user) 55 | } 56 | return render(request, 'search.html', context) 57 | else: 58 | return redirect('home') 59 | 60 | 61 | class ContactCreateView(LoginRequiredMixin, CreateView): 62 | model = Contact 63 | template_name = 'create.html' 64 | fields = ['name', 'email', 'phone', 'info', 'gender', 'image'] 65 | 66 | def form_valid(self, form): 67 | instance = form.save(commit=False) 68 | instance.manager = self.request.user 69 | instance.save() 70 | messages.success( 71 | self.request, 'Your contact has been successfully created!') 72 | return redirect('home') 73 | 74 | 75 | class ContactUpdateView(LoginRequiredMixin, UpdateView): 76 | model = Contact 77 | template_name = 'update.html' 78 | fields = ['name', 'email', 'phone', 'info', 'gender', 'image'] 79 | 80 | def form_valid(self, form): 81 | instance = form.save() 82 | messages.success( 83 | self.request, 'Your contact has been successfully updated!') 84 | return redirect('detail', instance.pk) 85 | 86 | 87 | class ContactDeleteView(LoginRequiredMixin, DeleteView): 88 | model = Contact 89 | template_name = 'delete.html' 90 | success_url = '/' 91 | 92 | def delete(self, request, *args, **kwargs): 93 | messages.success( 94 | self.request, 'Your contact has been successfully deleted!') 95 | return super().delete(self, request, *args, **kwargs) 96 | 97 | 98 | class SignUpView(CreateView): 99 | form_class = UserCreationForm 100 | template_name = 'registration/signup.html' 101 | success_url = reverse_lazy('home') 102 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/contacts/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/contacts/__init__.py -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/contacts/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/contacts/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/contacts/__pycache__/settings.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/contacts/__pycache__/settings.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/contacts/__pycache__/urls.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/contacts/__pycache__/urls.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/contacts/__pycache__/wsgi.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/contacts/__pycache__/wsgi.cpython-37.pyc -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/contacts/settings.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...) 4 | BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 5 | 6 | 7 | # Quick-start development settings - unsuitable for production 8 | # See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ 9 | 10 | # SECURITY WARNING: keep the secret key used in production secret! 11 | SECRET_KEY = '0bnnld8r@b@m46fqk_f@$7s*-(g#7mw*2_t8bllsio-1t*vh^a' 12 | 13 | # SECURITY WARNING: don't run with debug turned on in production! 14 | DEBUG = True 15 | 16 | ALLOWED_HOSTS = [] 17 | 18 | INSTALLED_APPS = [ 19 | 'django.contrib.admin', 20 | 'django.contrib.auth', 21 | 'django.contrib.contenttypes', 22 | 'django.contrib.sessions', 23 | 'django.contrib.messages', 24 | 'django.contrib.staticfiles', 25 | 'app', 26 | 'crispy_forms', 27 | 'import_export', 28 | ] 29 | 30 | MIDDLEWARE = [ 31 | 'django.middleware.security.SecurityMiddleware', 32 | 'django.contrib.sessions.middleware.SessionMiddleware', 33 | 'django.middleware.common.CommonMiddleware', 34 | 'django.middleware.csrf.CsrfViewMiddleware', 35 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 36 | 'django.contrib.messages.middleware.MessageMiddleware', 37 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 38 | ] 39 | 40 | ROOT_URLCONF = 'contacts.urls' 41 | 42 | TEMPLATES = [ 43 | { 44 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 45 | 'DIRS': [os.path.join(BASE_DIR, 'templates')], 46 | 'APP_DIRS': True, 47 | 'OPTIONS': { 48 | 'context_processors': [ 49 | 'django.template.context_processors.debug', 50 | 'django.template.context_processors.request', 51 | 'django.contrib.auth.context_processors.auth', 52 | 'django.contrib.messages.context_processors.messages', 53 | ], 54 | }, 55 | }, 56 | ] 57 | 58 | WSGI_APPLICATION = 'contacts.wsgi.application' 59 | 60 | 61 | # Database 62 | # https://docs.djangoproject.com/en/2.1/ref/settings/#databases 63 | 64 | DATABASES = { 65 | 'default': { 66 | 'ENGINE': 'django.db.backends.sqlite3', 67 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 68 | } 69 | } 70 | 71 | 72 | # Password validation 73 | # https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators 74 | 75 | AUTH_PASSWORD_VALIDATORS = [ 76 | { 77 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 78 | }, 79 | { 80 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 81 | }, 82 | { 83 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', 84 | }, 85 | { 86 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', 87 | }, 88 | ] 89 | 90 | 91 | # Internationalization 92 | # https://docs.djangoproject.com/en/2.1/topics/i18n/ 93 | 94 | LANGUAGE_CODE = 'en-us' 95 | 96 | TIME_ZONE = 'Asia/Kathmandu' 97 | 98 | USE_I18N = True 99 | 100 | USE_L10N = True 101 | 102 | USE_TZ = True 103 | 104 | 105 | # Static files (CSS, JavaScript, Images) 106 | # https://docs.djangoproject.com/en/2.1/howto/static-files/ 107 | 108 | STATIC_URL = '/static/' 109 | STATICFILES_DIRS = ( 110 | os.path.join(BASE_DIR, 'static'), 111 | ) 112 | 113 | # Setting media files 114 | MEDIA_URL = '/media/' 115 | MEDIA_ROOT = os.path.join(BASE_DIR, 'media') 116 | 117 | # Crispy forms 118 | CRISPY_TEMPLATE_PACK = 'bootstrap4' 119 | 120 | # for authentication 121 | LOGIN_URL = 'login' 122 | LOGOUT_URL = 'logout' 123 | LOGIN_REDIRECT_URL = 'home' 124 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/contacts/urls.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.urls import path, include 3 | from django.conf import settings 4 | from django.conf.urls.static import static 5 | urlpatterns = [ 6 | path('admin/', admin.site.urls), 7 | path('', include('app.urls')), 8 | path('',include('django.contrib.auth.urls')), 9 | ]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) 10 | 11 | admin.site.site_header = 'Contact-Manager' 12 | admin.site.index_title = 'Welcome to Contact-Manager' 13 | admin.site.site_title = 'Contact-Manager' -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/contacts/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for contacts project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'contacts.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/db.sqlite3 -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | if __name__ == '__main__': 6 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'contacts.settings') 7 | try: 8 | from django.core.management import execute_from_command_line 9 | except ImportError as exc: 10 | raise ImportError( 11 | "Couldn't import Django. Are you sure it's installed and " 12 | "available on your PYTHONPATH environment variable? Did you " 13 | "forget to activate a virtual environment?" 14 | ) from exc 15 | execute_from_command_line(sys.argv) 16 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/barack_obama.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/barack_obama.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/barack_obama_27LVOFd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/barack_obama_27LVOFd.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/barack_obama_h5PhxaQ.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/barack_obama_h5PhxaQ.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/bill_gates.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/bill_gates.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/bill_gates_RsO78Qg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/bill_gates_RsO78Qg.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/bill_gates_x83UvLx.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/bill_gates_x83UvLx.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/boy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/boy.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/boy_XFva2Xw.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/boy_XFva2Xw.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/boy_q3yEobQ.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/boy_q3yEobQ.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/donald_trump.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/donald_trump.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/donald_trump_K40s1aT.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/donald_trump_K40s1aT.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/donald_trump_Ld3I8nX.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/donald_trump_Ld3I8nX.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/elon_musk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/elon_musk.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/elon_musk_FqlcciW.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/elon_musk_FqlcciW.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/elon_musk_rHUiKNX.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/elon_musk_rHUiKNX.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/emma_watson.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/emma_watson.png -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/emma_watson_5zJrNYP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/emma_watson_5zJrNYP.png -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/emma_watson_MT2gLIs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/emma_watson_MT2gLIs.png -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/girl.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/girl.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/jackie_chan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/jackie_chan.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/jackie_chan_002ZUrV.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/jackie_chan_002ZUrV.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/jackie_chan_69MWG5J.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/jackie_chan_69MWG5J.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/jackie_chan_QQyq1xV.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/jackie_chan_QQyq1xV.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/james_bond.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/james_bond.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/james_bond_6pP7XrW.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/james_bond_6pP7XrW.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/james_bond_uVwokiJ.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/james_bond_uVwokiJ.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/messi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/messi.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/messi_7v0emTr.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/messi_7v0emTr.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/messi_H4IiZAr.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/messi_H4IiZAr.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/oprah_winfrey.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/oprah_winfrey.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/oprah_winfrey_SVvY68g.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/oprah_winfrey_SVvY68g.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/oprah_winfrey_wPNomnv.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/oprah_winfrey_wPNomnv.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/ronaldo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/ronaldo.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/ronaldo_EyQB5kI.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/ronaldo_EyQB5kI.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/ronaldo_qy2rWAL.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/ronaldo_qy2rWAL.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/sarukh_khan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/sarukh_khan.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/sarukh_khan_abKBxIc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/sarukh_khan_abKBxIc.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/sarukh_khan_qVVY7a2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/sarukh_khan_qVVY7a2.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/taylor_swift.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/taylor_swift.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/taylor_swift_OCC4Eps.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/taylor_swift_OCC4Eps.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/media/images/taylor_swift_VhVXvsP.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/media/images/taylor_swift_VhVXvsP.jpg -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/requirements.txt: -------------------------------------------------------------------------------- 1 | astroid==2.1.0 2 | autopep8==1.4.3 3 | colorama==0.4.1 4 | defusedxml==0.5.0 5 | diff-match-patch==20181111 6 | Django 7 | django-crispy-forms==1.7.2 8 | django-import-export==1.2.0 9 | et-xmlfile==1.0.1 10 | isort==4.3.4 11 | jdcal==1.4 12 | lazy-object-proxy==1.3.1 13 | mccabe==0.6.1 14 | odfpy==1.4.0 15 | openpyxl==2.6.0 16 | Pillow 17 | pycodestyle==2.5.0 18 | pylint==2.2.2 19 | pytz==2018.9 20 | PyYAML 21 | six==1.12.0 22 | tablib==0.12.1 23 | unicodecsv==0.14.1 24 | wrapt==1.11.1 25 | xlrd==1.2.0 26 | xlwt==1.3.0 -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/screenshot.png -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/static/css/admin.css: -------------------------------------------------------------------------------- 1 | #header,caption{ 2 | background:#e74c3c !important; 3 | } 4 | 5 | .breadcrumbs,h2,[type="submit"]{ 6 | background:#e74c3c !important; 7 | color:white !important; 8 | } -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/static/css/main.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --back: #29a7a6; 3 | /* --logo: #ff70a6; */ 4 | --girl: #e64298; 5 | --boy: #2874dd; 6 | } 7 | body { 8 | font-family: Lato, sans-serif; 9 | } 10 | 11 | /* Navbar Styles */ 12 | 13 | nav { 14 | font-weight: light; 15 | display: flex; 16 | justify-content: space-around; 17 | background-color: #e74c3c; 18 | align-items: center; 19 | padding-top: 12px; 20 | padding-bottom: 12px; 21 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); 22 | } 23 | .logo { 24 | font-size: 30px; 25 | letter-spacing: 1px; 26 | /* background: var(--logo); */ 27 | color: white; 28 | padding: 2px 12px; 29 | border-radius: 8px; 30 | font-family: cursive; 31 | } 32 | .logo:hover { 33 | color: white; 34 | text-decoration: none; 35 | } 36 | .search-box { 37 | border-radius: 0px !important; 38 | width: 250px; 39 | border: none !important; 40 | background-color: #f2f3f5 !important; 41 | box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.2); 42 | } 43 | /* Navbar Styles end */ 44 | 45 | /* Card Styles */ 46 | 47 | .card { 48 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); 49 | transition: 0.3s; 50 | min-width: 250px; 51 | box-sizing: border-box; 52 | } 53 | 54 | .card:hover { 55 | box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); 56 | } 57 | img { 58 | height: 130px !important; 59 | } 60 | .card-header { 61 | font-size: 18px; 62 | letter-spacing: 0.5px; 63 | text-transform: uppercase; 64 | } 65 | .header-link:hover { 66 | text-decoration: none; 67 | } 68 | .boy-card .card-header { 69 | background-color: var(--boy); 70 | } 71 | .boy-card .card-body, 72 | .boy-card .card-body p a { 73 | color: var(--boy); 74 | } 75 | .girl-card .card-header { 76 | background-color: var(--girl); 77 | } 78 | .girl-card .card-body, 79 | .girl-card .card-body p a { 80 | color: var(--girl); 81 | } 82 | .card-body p { 83 | cursor: pointer; 84 | } 85 | /* Card Styles end */ 86 | 87 | /* Main Section */ 88 | .main-part { 89 | display: flex; 90 | flex-wrap: wrap; 91 | justify-content: space-evenly; 92 | } 93 | 94 | /* Main Section ends */ 95 | 96 | /* footer style */ 97 | footer { 98 | background-color: #e74c3c; 99 | color: white; 100 | font-size: 18px; 101 | border-bottom: 3px solid #e74c3c; 102 | } 103 | 104 | /* footer style ends*/ 105 | 106 | /* Media Queries */ 107 | @media only screen and (max-width: 768px) { 108 | /* navbar style */ 109 | nav { 110 | flex-direction: column; 111 | } 112 | 113 | .logo { 114 | font-size: 22px !important; 115 | } 116 | .feature-link { 117 | margin-top: 5px !important; 118 | margin-bottom: 5px !important; 119 | } 120 | /* navbar style ends */ 121 | 122 | /* card styles */ 123 | .card-header { 124 | font-size: 90% !important; 125 | } 126 | .card-body p { 127 | font-size: 13px; 128 | margin-bottom: 6px; 129 | } 130 | .card-body { 131 | padding: 8px 8px 0 8px; 132 | } 133 | /* card styles end */ 134 | 135 | /* footer style */ 136 | footer { 137 | font-size: 98% !important; 138 | font-weight: light; 139 | letter-spacing: 1px; 140 | } 141 | /* footer style ends */ 142 | } 143 | /* Media Queries Ends*/ 144 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/static/images/boy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/static/images/boy.png -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/static/images/contact-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/static/images/contact-icon.png -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/static/images/girl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CONTACT_MANAGEMENT_APP_DJANGO/static/images/girl.png -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/404.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% block title %} 3 | 404 Error 4 | {% endblock title %} 5 | {% block content %} 6 |
7 |

404 (Page not found)

8 | 9 |
10 | {% endblock content %} 11 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/500.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% block title %} 3 | 500 Error 4 | {% endblock title %} 5 | {% block content %} 6 |
7 |

500 (Internal Server Problem)

8 | 9 |
10 | {% endblock content %} 11 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/admin/base_site.html: -------------------------------------------------------------------------------- 1 | {% extends 'admin/base.html' %} 2 | {% load static %} 3 | {% block branding %} 4 |

5 | Contacts Project 6 |

7 | {% endblock branding %} 8 | 9 | {% block extrastyle %} 10 | 11 | {% endblock extrastyle %} -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/base.html: -------------------------------------------------------------------------------- 1 | {% load static %} 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 17 | 18 | 19 | 20 | 21 | 25 | 29 | 30 | 31 | {% block title %} 32 | 33 | {% endblock title %} 34 | 35 | 36 | 37 | 38 | 39 | 72 | 73 |
74 | {% include "partials/_message.html" %} 75 | {% block content %} 76 | 77 | {% endblock content %} 78 | 79 | 80 |
81 |

© Contacts Manager 2020

82 |
83 | 84 | 85 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/create.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load crispy_forms_tags %} 3 | {% block title %} 4 | Create a New Contact 5 | {% endblock title %} 6 | 7 | {% block content %} 8 |
9 |

Create a New Contact

10 |
11 |
12 |
13 |
14 | {% csrf_token %} 15 | {{form|crispy}} 16 | 17 |
18 |
19 | 20 | 21 | {% endblock content %} -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/delete.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load crispy_forms_tags %} 3 | {% block title %} 4 | 5 | 6 | {% if contact.manager == request.user %} 7 | Delete {{contact}} 8 | {% else %} 9 | You don't have access to this page! 10 | {% endif %} 11 | 12 | {% endblock title %} 13 | 14 | {% block content %} 15 | {% if contact.manager == request.user %} 16 |
17 |

Delete {{contact}}

18 |
19 |
20 |
21 |
22 | {% csrf_token %} 23 | {{form|crispy}} 24 | 25 |
26 |
27 | 28 | {% else %} 29 |
30 |

You don't have access to this page!

31 |
32 | {% endif %} 33 | 34 | {% endblock content %} -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/detail.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load static %} 3 | {% block title %} 4 | 5 | {% if contact.manager == request.user %} 6 | {{contact.name}} 7 | {% else %} 8 | You don't have access to this page! 9 | {% endif %} 10 | {% endblock title %} 11 | {% block content %} 12 | {% if contact.manager == request.user %} 13 | 14 |
15 |

{{contact.name}}

16 |
17 |
18 |
19 | 20 | {% include 'partials/_card.html' %} 21 |
22 |
23 |
Date Added:   {{contact.date_added}}
24 |

25 | 26 |   Update 27 | 28 |      29 | 30 |   Delete 31 | 32 |

33 |
34 | 35 | {% else %} 36 |
37 |

You don't have access to this page!

38 |
39 | {% endif %} 40 | {% endblock content %} 41 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load static %} 3 | {% block title %} 4 | My Contacts 5 | {% endblock title %} 6 | 7 | {% block content %} 8 | 9 |
10 |

Here are your contacts

11 |
12 |
13 |
14 | {% if contacts %} 15 | {% for contact in contacts %} 16 | {% include 'partials/_card.html' %} 17 | 18 | {% endfor %} 19 | {% else %} 20 |

You have not save any contacts yet!

21 | {% endif %} 22 |
23 | 24 | 25 | 26 | {% endblock content %} -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/partials/_card.html: -------------------------------------------------------------------------------- 1 | {% load static %} {% if contact.gender == 'male' %} 2 | 3 |
4 | 12 | 17 |
18 |

19 | 20 | {{ contact.email }} 21 |

22 |

23 | 24 | {{ contact.phone }} 25 |

26 |

{{ contact.info }}

27 |
28 |
29 | 30 | {% else %} 31 |
32 | 40 | 45 |
46 |

47 | 48 | {{ contact.email }} 49 |

50 |

51 | 52 | {{ contact.phone }} 53 |

54 |

{{ contact.info }}

55 |
56 |
57 | {% endif %} 58 | -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/partials/_message.html: -------------------------------------------------------------------------------- 1 | {% if messages %} 2 | {% for message in messages %} 3 |
4 | 10 |
11 | {% endfor %} 12 | {% endif %} -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/registration/logged_out.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %} 3 | Logout 4 | {% endblock title %} 5 | 6 | {% block content %} 7 |
8 |

Logout

9 |
10 |
11 |
12 |

13 | You have been logged out.
14 | You can log in again using this link! 15 |

16 |
17 | 18 | 19 | {% endblock content %} -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/registration/login.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load crispy_forms_tags %} 3 | {% block title %} 4 | Login 5 | {% endblock title %} 6 | 7 | {% block content %} 8 |
9 |

Login

10 |
11 |
12 |
13 |
14 | {% csrf_token %} 15 | {{form|crispy}} 16 | 17 |
18 |
19 | 20 | 21 | {% endblock content %} -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/registration/signup.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load crispy_forms_tags %} 3 | {% block title %} 4 | Sign Up 5 | {% endblock title %} 6 | 7 | {% block content %} 8 |
9 |

Sign Up

10 |
11 |
12 |
13 |
14 | {% csrf_token %} 15 | {{form|crispy}} 16 | 17 |
18 |
19 | 20 | 21 | {% endblock content %} -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/search.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% load static %} 3 | {% block title %} 4 | Search Results for {{search_term}} 5 | {% endblock title %} 6 | {% block content %} 7 | 8 |
9 |

Search results for "{{search_term}}"

10 |
11 |
12 | 13 |
14 | {% if contacts %} 15 | {% for contact in contacts %} 16 | {% include 'partials/_card.html' %} 17 | 18 | {% endfor %} 19 | {% else %} 20 |

No search results!

21 | {% endif %} 22 |
23 | 24 | {% endblock content %} -------------------------------------------------------------------------------- /CONTACT_MANAGEMENT_APP_DJANGO/templates/update.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load crispy_forms_tags %} 3 | {% block title %} 4 | {% if contact.manager == request.user %} 5 | Update {{contact}} 6 | 7 | {% else %} 8 | You don't have access to this page! 9 | {% endif %} 10 | 11 | {% endblock title %} 12 | 13 | {% block content %} 14 | {% if contact.manager == request.user %} 15 |
16 |

Update {{contact}}

17 |
18 |
19 |
20 |
21 | {% csrf_token %} 22 | {{form|crispy}} 23 | 24 |
25 |
26 | 27 | {% else %} 28 |
29 |

You don't have access to this page!

30 |
31 | {% endif %} 32 | 33 | {% endblock content %} -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Awesome-Python-Projects 2 | We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: 3 | 4 | - Reporting a bug 5 | - Discussing the current state of the code 6 | - Submitting a fix 7 | - Proposing new features 8 | - Becoming a maintainer 9 | 10 | ## We Develop with Github 11 | We use github to host code, to track issues and feature requests, as well as accept pull requests. 12 | 13 | ## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests 14 | Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests: 15 | 16 | 1. Fork the repo and create your branch from `master`. 17 | 2. If you've added code that should be tested, add tests. 18 | 3. If you've changed APIs, update the documentation. 19 | 4. Ensure the test suite passes. 20 | 5. Make sure your code lints. 21 | 6. Issue that pull request! 22 | 23 | ## Any contributions you make will be under the MIT Software License 24 | In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. 25 | 26 | ## Report bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues) 27 | We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy! 28 | 29 | ## Write bug reports with detail, background, and sample code 30 | 31 | 32 | **Great Bug Reports** tend to have: 33 | 34 | - A quick summary and/or background 35 | - Steps to reproduce 36 | - Be specific! 37 | - Give sample code if you can. 38 | - What you expected would happen 39 | - What actually happens 40 | - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) 41 | 42 | People *love* thorough bug reports. I'm not even kidding. 43 | 44 | ## Use a Consistent Coding Style 45 | I'm again borrowing these from [Facebook's Guidelines](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md) 46 | 47 | * 2 spaces for indentation rather than tabs 48 | * You can try running `npm run lint` for style unification 49 | 50 | ## License 51 | By contributing, you agree that your contributions will be licensed under its MIT License. 52 | 53 | ## References 54 | This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md) 55 | -------------------------------------------------------------------------------- /CREDITCARD_FRAUD_PREDICTION_PROJECT/model.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/CREDITCARD_FRAUD_PREDICTION_PROJECT/model.pkl -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 ASMIT VIMAL 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/README.md: -------------------------------------------------------------------------------- 1 | # FILE PARSER 2 | 3 | #### Powered By: [![N|Solid](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Python.svg/28px-Python.svg.png)](https://nodesource.com/products/nsolid) 4 | 5 | A lot of time we need to rename the files in our directory according to certain conventions. For example, File001.jpg, File002.jpg, File003.jpg, and this goes on. Doing this task manually can be repetitive and boring. To avoid this manual work, you can create a tool to rename a large number of files. 6 | 7 | [![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger) 8 | 9 | FILE PARSER is a python-powered, user-friendly, file-renaming tool. 10 | 11 | - RUN main.py 12 | - TYPE Source Directory 13 | - Magic 14 | 15 | #### And of course FILE PARSER itself is open source with a [public repository](https://github.com/ViAsmit/File-Parser.git) on GitHub. 16 | 17 | ### Installation 18 | 19 | File-Parser requires [Python](https://python.org/) v3.x to run. 20 | 21 | Install the dependencies and follow the steps: 22 | 23 | ```sh 24 | $ git clone https://github.com/ViAsmit/File-Parser.git 25 | $ cd File-Parser 26 | $ chmod +x main.py 27 | $ ./main.py < SOURCE DIRECTORY HERE > 28 | TYPE FILE PREFIX YOU WANT TO USE. 29 | ``` 30 | ## DONE!!! 31 | 32 | 33 | -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-1.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-10.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-10.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-11.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-11.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-12.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-12.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-13.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-13.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-14.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-14.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-15.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-15.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-16.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-16.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-17.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-17.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-18.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-18.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-19.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-19.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-2.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-20.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-20.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-21.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-21.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-22.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-22.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-23.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-23.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-24.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-24.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-25.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-25.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-26.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-26.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-27.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-27.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-28.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-28.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-29.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-29.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-3.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-30.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-30.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-31.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-31.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-32.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-32.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-33.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-33.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-34.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-34.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-35.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-35.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-36.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-36.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-37.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-37.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-38.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-38.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-39.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-39.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-4.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-40.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-40.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-41.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-41.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-42.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-42.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-43.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-43.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-44.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-44.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-45.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-45.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-46.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-46.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-47.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-47.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-48.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-48.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-49.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-49.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-5.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-50.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-50.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-6.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-6.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-7.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-7.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-8.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/files/atom-9.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/files/atom-9.txt -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/images/after_operation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/images/after_operation.png -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/images/before_operation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FILE_RENAME_TOOL/images/before_operation.png -------------------------------------------------------------------------------- /FILE_RENAME_TOOL/main.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import os 4 | import sys 5 | 6 | ########## PREFIX TOBE USED BY NEW FILES ########### 7 | prefix = input("Enter the Prefix- you want to use for each file e.g. nucleus: nucleus-1.jpg, nucleus-2.jpg,... \n") 8 | 9 | ########## DO NOT CHANGE BELOW, UNTIL YOU ARE A DEVELOPER ;) ############ 10 | 11 | for count, file in enumerate(os.listdir(sys.argv[1])): 12 | 13 | ###### THIS WILL SEPERATE EXTENSION FROM FILENAME ######## 14 | extnsn = file.split('.')[-1] 15 | # print(extnsn) 16 | 17 | ###### CHANGE THIS LINE TO MAKE YOUR OWN CONVETION ####### 18 | new_file = prefix+'-'+str(count+1)+'.'+extnsn 19 | 20 | 21 | src = sys.argv[1]+file # SOURCE FILE 22 | dst = sys.argv[1]+new_file # DESTINATION FILE 23 | 24 | os.rename(src, dst) # ALL MAGIC HERE !!!!! 25 | -------------------------------------------------------------------------------- /FLIGHT_FARE_PREDICTION/.gitignore: -------------------------------------------------------------------------------- 1 | .ipynb_checkpoints -------------------------------------------------------------------------------- /FLIGHT_FARE_PREDICTION/README.md: -------------------------------------------------------------------------------- 1 | # Fligth-Fare-Prediction 2 | -------------------------------------------------------------------------------- /FLIGHT_FARE_PREDICTION/data/Data_Train.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FLIGHT_FARE_PREDICTION/data/Data_Train.xlsx -------------------------------------------------------------------------------- /FLIGHT_FARE_PREDICTION/results/Result.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/FLIGHT_FARE_PREDICTION/results/Result.PNG -------------------------------------------------------------------------------- /Facebook Birthday Bot/Project _FB birthday bot.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | import time 3 | from selenium.webdriver.common.keys import Keys 4 | 5 | 6 | user_id=input('Enter User Id of your Fb Account :') # Take user id and password as input from the user 7 | password=input('Enter the password :') 8 | 9 | print(user_id) 10 | print(password) 11 | 12 | cd='C:\\webdrivers\\chromedriver.exe' 13 | 14 | 15 | browser= webdriver.Chrome(cd) 16 | browser.get('https://www.facebook.com/') 17 | 18 | 19 | user_box = browser.find_element_by_id("email") # For detecting the user id box 20 | user_box.send_keys(user_id) # Enter the user id in the box 21 | 22 | password_box = browser.find_element_by_id("pass") # For detecting the password box 23 | password_box.send_keys(password) # For detecting the password in the box 24 | 25 | login_box = browser.find_element_by_id("u_0_b") # For detecting the Login button 26 | login_box.click() 27 | 28 | time.sleep(20) 29 | 30 | k='//*[@id="home_birthdays"]/div/div/div/div/a/div/div/span/span[2]' 31 | n=browser.find_element_by_xpath(k).get_attribute('textContent') 32 | # To get the number of friends to be wished 33 | num=n[0] 34 | num=int(num) 35 | print(num) 36 | 37 | 38 | message= "Happy Birthday !!" 39 | browser.get('https://www.facebook.com/events/birthdays/') 40 | #time.sleep(3) 41 | 42 | bday_list=browser.find_elements_by_xpath("//*[@class ='enter_submit uiTextareaNoResize uiTextareaAutogrow uiStreamInlineTextarea inlineReplyTextArea mentionsTextarea textInput']") 43 | 44 | c=0 45 | for element in bday_list: 46 | element_id = str(element.get_attribute('id')) 47 | XPATH = '//*[@id ="' + element_id + '"]' 48 | post = browser.find_element_by_xpath(XPATH) #To fetch the box where to enter text 49 | post.send_keys("Happy Birthday, Best wishes.") # To enter the bday wish 50 | #time.sleep(1) 51 | post.send_keys(Keys.RETURN) #To send the wish 52 | c=c+1 53 | if(c>num): # This prevents putting wishes for belated birthday 54 | break 55 | 56 | browser.quit() 57 | -------------------------------------------------------------------------------- /Facebook Birthday Bot/req.txt: -------------------------------------------------------------------------------- 1 | import webdriver 2 | import key 3 | -------------------------------------------------------------------------------- /GOOGLE API/Capture1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/GOOGLE API/Capture1.PNG -------------------------------------------------------------------------------- /GOOGLE API/Capture2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/GOOGLE API/Capture2.PNG -------------------------------------------------------------------------------- /GOOGLE API/Capture3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/GOOGLE API/Capture3.PNG -------------------------------------------------------------------------------- /GOOGLE API/README.md: -------------------------------------------------------------------------------- 1 | USING GOOGLE API FOR EDUCATION PURPOSE ONLE 2 | OPEN GEOLOAD.PY THEN GEODUMP.PY THEN WHERE.HTML 3 | -------------------------------------------------------------------------------- /GOOGLE API/geodump.py: -------------------------------------------------------------------------------- 1 | import sqlite3 2 | import json 3 | import codecs 4 | 5 | conn = sqlite3.connect('geodata.sqlite') 6 | cur = conn.cursor() 7 | 8 | cur.execute('SELECT * FROM Locations') 9 | fhand = codecs.open('where.js', 'w', "utf-8") 10 | fhand.write("myData = [\n") 11 | count = 0 12 | for row in cur : 13 | data = str(row[1].decode()) 14 | try: js = json.loads(str(data)) 15 | except: continue 16 | 17 | if not('status' in js and js['status'] == 'OK') : continue 18 | 19 | lat = js["results"][0]["geometry"]["location"]["lat"] 20 | lng = js["results"][0]["geometry"]["location"]["lng"] 21 | if lat == 0 or lng == 0 : continue 22 | where = js['results'][0]['formatted_address'] 23 | where = where.replace("'", "") 24 | try : 25 | print(where, lat, lng) 26 | 27 | count = count + 1 28 | if count > 1 : fhand.write(",\n") 29 | output = "["+str(lat)+","+str(lng)+", '"+where+"']" 30 | fhand.write(output) 31 | except: 32 | continue 33 | 34 | fhand.write("\n];\n") 35 | cur.close() 36 | fhand.close() 37 | print(count, "records written to where.js") 38 | print("Open where.html to view the data in a browser") 39 | 40 | -------------------------------------------------------------------------------- /GOOGLE API/geoload.py: -------------------------------------------------------------------------------- 1 | import urllib.request, urllib.parse, urllib.error 2 | import http 3 | import sqlite3 4 | import json 5 | import time 6 | import ssl 7 | import sys 8 | 9 | api_key = False 10 | # If you have a Google Places API key, enter it here 11 | # api_key = 'AIzaSy___IDByT70' 12 | 13 | if api_key is False: 14 | api_key = 42 15 | serviceurl = "http://py4e-data.dr-chuck.net/json?" 16 | else : 17 | serviceurl = "https://maps.googleapis.com/maps/api/geocode/json?" 18 | 19 | # Additional detail for urllib 20 | # http.client.HTTPConnection.debuglevel = 1 21 | 22 | conn = sqlite3.connect('geodata.sqlite') 23 | cur = conn.cursor() 24 | 25 | cur.execute(''' 26 | CREATE TABLE IF NOT EXISTS Locations (address TEXT, geodata TEXT)''') 27 | 28 | # Ignore SSL certificate errors 29 | ctx = ssl.create_default_context() 30 | ctx.check_hostname = False 31 | ctx.verify_mode = ssl.CERT_NONE 32 | 33 | fh = open("where.data") 34 | count = 0 35 | for line in fh: 36 | if count > 200 : 37 | print('Retrieved 200 locations, restart to retrieve more') 38 | break 39 | 40 | address = line.strip() 41 | print('') 42 | cur.execute("SELECT geodata FROM Locations WHERE address= ?", 43 | (memoryview(address.encode()), )) 44 | 45 | try: 46 | data = cur.fetchone()[0] 47 | print("Found in database ",address) 48 | continue 49 | except: 50 | pass 51 | 52 | parms = dict() 53 | parms["address"] = address 54 | if api_key is not False: parms['key'] = api_key 55 | url = serviceurl + urllib.parse.urlencode(parms) 56 | 57 | print('Retrieving', url) 58 | uh = urllib.request.urlopen(url, context=ctx) 59 | data = uh.read().decode() 60 | print('Retrieved', len(data), 'characters', data[:20].replace('\n', ' ')) 61 | count = count + 1 62 | 63 | try: 64 | js = json.loads(data) 65 | except: 66 | print(data) # We print in case unicode causes an error 67 | continue 68 | 69 | if 'status' not in js or (js['status'] != 'OK' and js['status'] != 'ZERO_RESULTS') : 70 | print('==== Failure To Retrieve ====') 71 | print(data) 72 | break 73 | 74 | cur.execute('''INSERT INTO Locations (address, geodata) 75 | VALUES ( ?, ? )''', (memoryview(address.encode()), memoryview(data.encode()) ) ) 76 | conn.commit() 77 | if count % 10 == 0 : 78 | print('Pausing for a bit...') 79 | time.sleep(5) 80 | 81 | print("Run geodump.py to read the data from the database so you can vizualize it on a map.") 82 | -------------------------------------------------------------------------------- /GOOGLE API/where.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | A Map of Information 6 | 7 | 8 | 10 | 11 | 12 | 13 | 48 | 49 | 50 |
51 |

About this Map

52 |

53 | This is a cool map from 54 | www.py4e.com. 55 |

56 | 57 | 58 | -------------------------------------------------------------------------------- /HANGMAN_GAME/hangman.py: -------------------------------------------------------------------------------- 1 | ### Hangman Game Project 2 | 3 | # Hangman game is just a word guessing game by guess the character of the word. In this game, there is a list of words present, out of which our interpreter will choose 1 random word. 4 | 5 | # The user first has to input their names and then, will be asked to guess any alphabet. If the random word contains that alphabet, it will be shown as the output(with correct placement) else the program will ask you to guess another alphabet. Users will be given 10 turns(can be changed accordingly) to guess the complete word. 6 | 7 | ### TODO 8 | # Change the turns that you want to give the player 9 | # Change the list containing Secret word list 10 | 11 | 12 | 13 | from os import system 14 | import random 15 | 16 | def cls(): 17 | system ('cls') 18 | 19 | def hangman_game(): 20 | cls() 21 | 22 | print("\nWelcome") 23 | print("Lets play Hangman\n") 24 | 25 | name = input("What is your name?") 26 | name = name.capitalize() 27 | print("Hello " + name + ", It is time to play HamgMan") 28 | print("Start Guessing...") 29 | guessed_word = [] 30 | 31 | # Creats a variable with an empty value 32 | guesses = "" 33 | 34 | # Determine the Number of turns 35 | turns = 10 #ToDo : Change the turns that you want to give the player 36 | 37 | # Here we set the Secret 38 | words = [ 39 | "Forrest Gump", 40 | "Hangman Project", 41 | "The Godfather", 42 | "The Green Mile", 43 | "Hotel Rwanda", 44 | "Goodfellas", 45 | "Scarface", 46 | "The Terminal", 47 | "Million Dollar Baby", 48 | "Driving Miss Daisy", 49 | "Catch Me If You Can", 50 | "Chinatown", 51 | "The Departed", 52 | "Dances with Wolves", 53 | "Ford v Ferrari", 54 | "Little Women", 55 | "A Star Is Born", 56 | "Dear Basketball" 57 | ] 58 | 59 | word = random.choice(words) 60 | word = word.upper() 61 | 62 | while turns > 0: 63 | failed = 0 64 | 65 | for char in word: 66 | if char in guesses: 67 | print(char, end=" ") 68 | 69 | elif char == " ": 70 | print(' / ', end=" ") 71 | 72 | else: 73 | print("_", end=" ") 74 | failed += 1 75 | 76 | if failed == 0: 77 | print("\n" + name + " you WON! :)") 78 | break 79 | 80 | guess = input("\nGuess a Character : ") 81 | guess = guess.upper() 82 | 83 | if len(guess) > 1: 84 | break 85 | 86 | guesses += guess 87 | if (guess not in word) and (guess not in guessed_word): 88 | turns -= 1 89 | guessed_word.append(guess) 90 | print("\nWrong Guess :/") 91 | cls() 92 | 93 | print("\nYou have ", + turns, "more guesses") 94 | print("\nWrong Character's Entered : ", guessed_word) 95 | 96 | if turns == 0: 97 | print("\nGame is OVER, you LOST :o") 98 | 99 | check = input("\nDo you want to play again Y/N?") 100 | 101 | if check == "Y" or check == "y" : 102 | hangman_game() 103 | 104 | 105 | hangman_game() -------------------------------------------------------------------------------- /HANGMAN_GAME/output-img.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/HANGMAN_GAME/output-img.PNG -------------------------------------------------------------------------------- /HANGMAN_GAME/output.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/HANGMAN_GAME/output.PNG -------------------------------------------------------------------------------- /HOUSING PRICES PREDICTION/model.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/HOUSING PRICES PREDICTION/model.h5 -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/Procfile: -------------------------------------------------------------------------------- 1 | web: gunicorn app:app -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/README.md: -------------------------------------------------------------------------------- 1 | ## IPL SCORE PREDICTOR 2 | Website Link - https://iplscorepredicting.herokuapp.com/ 3 | 4 | ## Website Layout 5 | ![Website pic1](https://github.com/Shobhit-aryan/awesome-python-projects/blob/master/IPL_SCORE_PREDICTOR/screenshot/Screenshot%20(359).png) 6 | ![Website pic1](https://github.com/Shobhit-aryan/awesome-python-projects/blob/master/IPL_SCORE_PREDICTOR/screenshot/Screenshot%20(360).png) 7 | ![Website pic1](https://github.com/Shobhit-aryan/awesome-python-projects/blob/master/IPL_SCORE_PREDICTOR/screenshot/Screenshot%20(361).png) 8 | -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/app.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | Created on Sat Jul 18 16:53:51 2020 4 | 5 | @author: Asus 6 | """ 7 | 8 | # Importing essential libraries 9 | from flask import Flask, render_template, request 10 | import pickle 11 | import numpy as np 12 | 13 | # Load the Random Forest CLassifier model 14 | filename = 'model.pkl' 15 | regressor = pickle.load(open(filename, 'rb')) 16 | 17 | app = Flask(__name__) 18 | 19 | @app.route('/') 20 | def home(): 21 | return render_template('index1.html') 22 | 23 | @app.route('/predict', methods=['POST']) 24 | def predict(): 25 | temp_array = list() 26 | 27 | if request.method == 'POST': 28 | 29 | batting_team = request.form['batting-team'] 30 | if batting_team == 'Chennai Super Kings': 31 | temp_array = temp_array + [1,0,0,0,0,0,0,0] 32 | elif batting_team == 'Delhi Daredevils': 33 | temp_array = temp_array + [0,1,0,0,0,0,0,0] 34 | elif batting_team == 'Kings XI Punjab': 35 | temp_array = temp_array + [0,0,1,0,0,0,0,0] 36 | elif batting_team == 'Kolkata Knight Riders': 37 | temp_array = temp_array + [0,0,0,1,0,0,0,0] 38 | elif batting_team == 'Mumbai Indians': 39 | temp_array = temp_array + [0,0,0,0,1,0,0,0] 40 | elif batting_team == 'Rajasthan Royals': 41 | temp_array = temp_array + [0,0,0,0,0,1,0,0] 42 | elif batting_team == 'Royal Challengers Bangalore': 43 | temp_array = temp_array + [0,0,0,0,0,0,1,0] 44 | elif batting_team == 'Sunrisers Hyderabad': 45 | temp_array = temp_array + [0,0,0,0,0,0,0,1] 46 | 47 | 48 | bowling_team = request.form['bowling-team'] 49 | if bowling_team == 'Chennai Super Kings': 50 | temp_array = temp_array + [1,0,0,0,0,0,0,0] 51 | elif bowling_team == 'Delhi Daredevils': 52 | temp_array = temp_array + [0,1,0,0,0,0,0,0] 53 | elif bowling_team == 'Kings XI Punjab': 54 | temp_array = temp_array + [0,0,1,0,0,0,0,0] 55 | elif bowling_team == 'Kolkata Knight Riders': 56 | temp_array = temp_array + [0,0,0,1,0,0,0,0] 57 | elif bowling_team == 'Mumbai Indians': 58 | temp_array = temp_array + [0,0,0,0,1,0,0,0] 59 | elif bowling_team == 'Rajasthan Royals': 60 | temp_array = temp_array + [0,0,0,0,0,1,0,0] 61 | elif bowling_team == 'Royal Challengers Bangalore': 62 | temp_array = temp_array + [0,0,0,0,0,0,1,0] 63 | elif bowling_team == 'Sunrisers Hyderabad': 64 | temp_array = temp_array + [0,0,0,0,0,0,0,1] 65 | 66 | 67 | overs = float(request.form['overs']) 68 | runs = int(request.form['runs']) 69 | wickets = int(request.form['wickets']) 70 | runs_in_prev_5 = int(request.form['runs_in_prev_5']) 71 | wickets_in_prev_5 = int(request.form['wickets_in_prev_5']) 72 | 73 | temp_array = temp_array + [overs, runs, wickets, runs_in_prev_5, wickets_in_prev_5] 74 | 75 | data = np.array([temp_array]) 76 | my_prediction = int(regressor.predict(data)[0]) 77 | 78 | return render_template('index1.html',prediction_text="Predicted score ranges between {} to {}".format(my_prediction-10,my_prediction+5)) 79 | 80 | 81 | if __name__ == '__main__': 82 | app.run(debug=True) -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/model.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/model.pkl -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==1.1.1 2 | gunicorn==19.9.0 3 | itsdangerous==1.1.0 4 | Jinja2==2.10.1 5 | MarkupSafe==1.1.1 6 | Werkzeug==0.15.5 7 | numpy>=1.9.2 8 | scipy>=0.15.1 9 | scikit-learn>=0.18 10 | matplotlib>=1.4.3 11 | pandas>=0.1 -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/screenshot/Screenshot (359).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/screenshot/Screenshot (359).png -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/screenshot/Screenshot (360).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/screenshot/Screenshot (360).png -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/screenshot/Screenshot (361).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/screenshot/Screenshot (361).png -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/1.jpg -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/2.jpg -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/csk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/csk.jpg -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/dc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/dc.jpg -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/kkr.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/kkr.jpg -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/kxip.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/kxip.jpg -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/mi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/mi.jpg -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/rcb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/rcb.jpg -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/rr.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/rr.jpg -------------------------------------------------------------------------------- /IPL_SCORE_PREDICTOR/static/srh.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IPL_SCORE_PREDICTOR/static/srh.jpg -------------------------------------------------------------------------------- /IRIS_FLOWER_CLASSIFICATION_USING_ML/README.md: -------------------------------------------------------------------------------- 1 | 2 | # Iris flowers Data Classification using Python Machine Learning 3 | 4 | Iris flowers dataset is one of the best dataset in classification literature. The classification of iris flowers machine learning project is often referred to as the basic program of machine learning. 5 | 6 | Using: 7 | * google colab 8 | * numpy 9 | * pandas 10 | * scikit-learn 11 | 12 | # Dataset description 13 | From the [UCI Machine Learning Repository](https://archive.ics.uci.edu/ml/datasets/Iris). 14 | 15 | Features: 16 | * sepal length (cm) 17 | * sepal width (cm) 18 | * petal length (cm) 19 | * petal width (cm) 20 | * species (Iris-setosa, Iris-versicolor, Iris-virginica) 21 | 22 | #On this project are testing a multiple regrassion model there example are below 23 | - DecisionTreeClassifier Model 24 | - KNeighborsClassifier Model 25 | - Logistic regression Model 26 | -Support vector machine Model 27 | 28 | 29 | 30 | ## References 31 | *https://medium.com/gft-engineering/start-to-learn-machine-learning-with-the-iris-flower-classification-challenge-4859a920e5e3
32 | *https://www.neuraldesigner.com/learning/examples/iris-flowers-classification
33 | *https://www.skyfilabs.com/project-ideas/iris-flower-classification-using-machine-learning
34 | *https://analyticsindiamag.com/start-building-first-machine-learning-project-famous-dataset/
35 | *https://www.youtube.com/watch?v=FLuqwQgSBDw&ab_channel=AppliedAICourse
36 | *https://www.youtube.com/watch?v=CLvboTdwpjc&ab_channel=RealKnow
37 | *https://youtu.be/Y17Y_8RK6pc?list=PL5tcWHG-UPH1OeZ2vU5xQd7RVpkWvwJny
38 | *https://youtu.be/ACdBKML9l4s
39 | 40 | 41 | ## The goal is to predict the species of a new sample of iris flower given its features. 42 | 43 | -------------------------------------------------------------------------------- /IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/bar.png -------------------------------------------------------------------------------- /IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/boxplot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/boxplot.png -------------------------------------------------------------------------------- /IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/color-pairplot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/color-pairplot.png -------------------------------------------------------------------------------- /IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/histogram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/histogram.png -------------------------------------------------------------------------------- /IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/pairplot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/pairplot.png -------------------------------------------------------------------------------- /IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/subplot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IRIS_FLOWER_CLASSIFICATION_USING_ML/Screenshot/subplot.png -------------------------------------------------------------------------------- /IRIS_FLOWER_DETECTION/Results/Confusion-Matrix.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IRIS_FLOWER_DETECTION/Results/Confusion-Matrix.PNG -------------------------------------------------------------------------------- /IRIS_FLOWER_DETECTION/Results/classification_report.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/IRIS_FLOWER_DETECTION/Results/classification_report.PNG -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/LatLong/settings.py: -------------------------------------------------------------------------------- 1 | """ 2 | Django settings for LatLong project. 3 | 4 | Generated by 'django-admin startproject' using Django 2.1.5. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/2.1/topics/settings/ 8 | 9 | For the full list of settings and their values, see 10 | https://docs.djangoproject.com/en/2.1/ref/settings/ 11 | """ 12 | 13 | import os 14 | 15 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...) 16 | BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 17 | 18 | 19 | # Quick-start development settings - unsuitable for production 20 | # See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ 21 | 22 | # SECURITY WARNING: keep the secret key used in production secret! 23 | SECRET_KEY = '9!1fz)7!iajzh%3e6fsi-oi)8h2da&#z@med@a)d)^p71qkm55' 24 | 25 | # SECURITY WARNING: don't run with debug turned on in production! 26 | DEBUG = True 27 | 28 | ALLOWED_HOSTS = [] 29 | 30 | 31 | # Application definition 32 | 33 | INSTALLED_APPS = [ 34 | 'django.contrib.admin', 35 | 'django.contrib.auth', 36 | 'django.contrib.contenttypes', 37 | 'django.contrib.sessions', 38 | 'django.contrib.messages', 39 | 'django.contrib.staticfiles', 40 | 'app' 41 | ] 42 | 43 | MIDDLEWARE = [ 44 | 'django.middleware.security.SecurityMiddleware', 45 | 'django.contrib.sessions.middleware.SessionMiddleware', 46 | 'django.middleware.common.CommonMiddleware', 47 | 'django.middleware.csrf.CsrfViewMiddleware', 48 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 49 | 'django.contrib.messages.middleware.MessageMiddleware', 50 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 51 | ] 52 | 53 | ROOT_URLCONF = 'LatLong.urls' 54 | 55 | TEMPLATES = [ 56 | { 57 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 58 | 'DIRS': ['templates'], 59 | 'APP_DIRS': True, 60 | 'OPTIONS': { 61 | 'context_processors': [ 62 | 'django.template.context_processors.debug', 63 | 'django.template.context_processors.request', 64 | 'django.contrib.auth.context_processors.auth', 65 | 'django.contrib.messages.context_processors.messages', 66 | ], 67 | }, 68 | }, 69 | ] 70 | 71 | WSGI_APPLICATION = 'LatLong.wsgi.application' 72 | 73 | 74 | # Database 75 | # https://docs.djangoproject.com/en/2.1/ref/settings/#databases 76 | 77 | DATABASES = { 78 | 'default': { 79 | 'ENGINE': 'django.db.backends.sqlite3', 80 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 81 | } 82 | } 83 | 84 | 85 | # Password validation 86 | # https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators 87 | 88 | AUTH_PASSWORD_VALIDATORS = [ 89 | { 90 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 91 | }, 92 | { 93 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 94 | }, 95 | { 96 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', 97 | }, 98 | { 99 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', 100 | }, 101 | ] 102 | 103 | 104 | # Internationalization 105 | # https://docs.djangoproject.com/en/2.1/topics/i18n/ 106 | 107 | LANGUAGE_CODE = 'en-us' 108 | 109 | TIME_ZONE = 'UTC' 110 | 111 | USE_I18N = True 112 | 113 | USE_L10N = True 114 | 115 | USE_TZ = True 116 | 117 | 118 | # Static files (CSS, JavaScript, Images) 119 | # https://docs.djangoproject.com/en/2.1/howto/static-files/ 120 | 121 | PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) 122 | STATIC_ROOT = os.path.join(PROJECT_DIR, 'static') 123 | 124 | 125 | STATIC_URL = '/static/' 126 | 127 | STATICFILES_DIRS = [ 128 | os.path.join(BASE_DIR,"templates/static"), 129 | ] -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/LatLong/urls.py: -------------------------------------------------------------------------------- 1 | """LatLong URL Configuration 2 | 3 | The `urlpatterns` list routes URLs to views. For more information please see: 4 | https://docs.djangoproject.com/en/2.1/topics/http/urls/ 5 | Examples: 6 | Function views 7 | 1. Add an import: from my_app import views 8 | 2. Add a URL to urlpatterns: path('', views.home, name='home') 9 | Class-based views 10 | 1. Add an import: from other_app.views import Home 11 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 12 | Including another URLconf 13 | 1. Import the include() function: from django.urls import include, path 14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 15 | """ 16 | from django.contrib import admin 17 | from django.urls import path,include 18 | 19 | urlpatterns = [ 20 | path('admin/', admin.site.urls), 21 | path('', include('app.urls')), 22 | ] 23 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/LatLong/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for LatLong project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'LatLong.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/README.md: -------------------------------------------------------------------------------- 1 | # Latitude-Longitude-To-Address-Converter 2 | 3 | A webpage that accepts Latitude and Longitude co-ordinates and displays the corresponding address. 4 | 5 | ## Install the Requirements 6 | ``` 7 | $ pip3 install -r requirements.txt 8 | ``` 9 | 10 | ## Run the Django Server 11 | ``` 12 | $ python3 manage.py runserver 13 | ``` -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/app/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/app/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class AppConfig(AppConfig): 5 | name = 'app' 6 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/app/latLongToAddressConverter.py: -------------------------------------------------------------------------------- 1 | from geopy.geocoders import Nominatim #for getting location from latitute and longitude 2 | 3 | # initialisation 4 | class AddressConverter: 5 | def __init__(self): 6 | pass 7 | 8 | def findAddress(self, lat, lon): 9 | geolocator = Nominatim(user_agent="App",timeout=100) 10 | location = None 11 | 12 | s = str(lat) + "," + str(lon) 13 | 14 | # Getting Street Address of the Location 15 | try: 16 | location = geolocator.reverse(s) 17 | except ValueError as e: 18 | return e 19 | 20 | if location == None: 21 | return "Location's Street Address Not Found!" 22 | else: 23 | strt = location.address 24 | return strt 25 | 26 | 27 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/app/latLongToAddressConverterFromCSV.py: -------------------------------------------------------------------------------- 1 | from geopy.geocoders import Nominatim #for getting location from latitute and longitude 2 | import pandas as pd #import to read csv 3 | 4 | #initialisation 5 | myfile = pd.read_csv("latlong2.csv",sep=",",usecols=['lat','lon']) 6 | myfile =myfile.values.tolist() 7 | geolocator = Nominatim(user_agent="App",timeout=100) 8 | 9 | 10 | #convert list to string to import 11 | s = str(myfile[0][0]) + "," + str(myfile[0][1]) 12 | street = [] 13 | address = [] 14 | for i in range(len(myfile)): 15 | #converting each row values to string 16 | s1 = str(myfile[i][0]) + "," + str(myfile[i][1]) 17 | location = geolocator.reverse(s1) 18 | #getting address of location 19 | strt = location.address 20 | #getting address as dict 21 | address.append(location.raw['address']) 22 | street.append(strt) 23 | print(street) -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/app/latlong2.csv: -------------------------------------------------------------------------------- 1 | lat,lon 2 | 12.894033,77.6623617 3 | 12.889441,77.6402211 4 | 12.8360678,77.6672418 5 | 13.085249,77.6549154 6 | 12.9387277,77.7311262 7 | 13.043223,77.7482414 8 | 13.0708496,77.7512724 9 | 12.8975268,77.6772502 10 | 12.98979,77.7242795 11 | 13.0425402,77.5194121 12 | 12.9022215,77.6699666 13 | 12.7815368,77.7818487 14 | 12.8810058,77.6361614 15 | 12.9068814,77.671808 16 | 12.8613592,77.6068838 17 | 13.0287887,77.7496788 18 | 12.8818045,77.4705858 19 | 13.0630984,77.6629563 20 | 12.885663,77.563775 21 | 12.8783657,77.6708668 22 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/app/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/app/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/app/urls.py: -------------------------------------------------------------------------------- 1 | """LatLong URL Configuration 2 | 3 | The `urlpatterns` list routes URLs to views. For more information please see: 4 | https://docs.djangoproject.com/en/2.1/topics/http/urls/ 5 | Examples: 6 | Function views 7 | 1. Add an import: from my_app import views 8 | 2. Add a URL to urlpatterns: path('', views.home, name='home') 9 | Class-based views 10 | 1. Add an import: from other_app.views import Home 11 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 12 | Including another URLconf 13 | 1. Import the include() function: from django.urls import include, path 14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 15 | """ 16 | # CALLING URL NAME AND THE FUNCTION IN views.py 17 | 18 | from django.urls import path 19 | from app import views 20 | from django.contrib.staticfiles.urls import staticfiles_urlpatterns 21 | 22 | urlpatterns = [ 23 | path('',views.index,name='index'), 24 | ] 25 | 26 | urlpatterns += staticfiles_urlpatterns() 27 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/app/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render,redirect 2 | from app.latLongToAddressConverter import AddressConverter 3 | 4 | # Create your views here. 5 | def index(request): 6 | if request.method == 'POST': 7 | lat = request.POST['lat'] 8 | lon = request.POST['lon'] 9 | 10 | addressConverter = AddressConverter() 11 | streetAddress = addressConverter.findAddress(lat, lon) 12 | context = {'streetAddress':streetAddress, 'lat':lat, 'lon':lon} 13 | return render(request,'app/index.html',context) 14 | 15 | else: 16 | return render(request,'app/index.html') 17 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/db.sqlite3 -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | if __name__ == '__main__': 6 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'LatLong.settings') 7 | try: 8 | from django.core.management import execute_from_command_line 9 | except ImportError as exc: 10 | raise ImportError( 11 | "Couldn't import Django. Are you sure it's installed and " 12 | "available on your PYTHONPATH environment variable? Did you " 13 | "forget to activate a virtual environment?" 14 | ) from exc 15 | execute_from_command_line(sys.argv) 16 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==2.2.20 2 | geographiclib==1.50 3 | geopy==2.1.0 4 | pytz==2021.1 5 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/templates/app/index.html: -------------------------------------------------------------------------------- 1 | {% load static %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Know The Address | Home 12 | 13 | 14 | 15 | 21 |
22 | {% csrf_token %} 23 |
24 | 25 | 26 | 27 |
28 |
29 | 30 |
31 |
32 | 33 | 34 | -------------------------------------------------------------------------------- /LATITUDE-LONGITUDE-TO-ADDRESS-CONVERTER/templates/static/style.css: -------------------------------------------------------------------------------- 1 | *{ 2 | box-sizing: border-box; 3 | margin: 0; 4 | padding: 0; 5 | } 6 | 7 | html,body{ 8 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 9 | line-height: 1.7em; 10 | background: url('https://source.unsplash.com/random?books') no-repeat center center; 11 | background-size: cover; 12 | background-attachment: fixed; 13 | 14 | } 15 | #navbar{ 16 | background:#333; 17 | color: white; 18 | overflow: auto; 19 | } 20 | #navbar a{ 21 | color: white; 22 | } 23 | 24 | #navbar h1{ 25 | padding-top: 20px; 26 | padding-left: 20px; 27 | float: left; 28 | } 29 | #navbar ul{ 30 | float: right; 31 | list-style: none; 32 | padding-right: 20px; 33 | } 34 | #navbar ul li{ 35 | float: left; 36 | } 37 | #navbar ul li a { 38 | display: block; 39 | text-align: center; 40 | padding: 20px; 41 | } 42 | #navbar ul li a:hover, #navbar ul li a.current{ 43 | background: #444; 44 | color: #f7c08a; 45 | } 46 | 47 | #home-info{ 48 | overflow: auto; 49 | height: 400px; 50 | width: 1000px; 51 | margin: auto; 52 | } 53 | #home-info #lat{ 54 | float: left; 55 | width: 200px; 56 | margin-left: 25%; 57 | margin-top: 10%; 58 | border-radius: 5px; 59 | padding: 10px 40px; 60 | text-align: center; 61 | -webkit-appearance: none; 62 | -moz-appearance: textfield; 63 | } 64 | #home-info #lon{ 65 | float: right; 66 | width: 200px; 67 | margin-right: 25%; 68 | margin-top: 10%; 69 | padding: 10px 40px; 70 | border-radius: 5px; 71 | text-align: center; 72 | -webkit-appearance: none; 73 | -moz-appearance: textfield; 74 | } 75 | #home-info #submit{ 76 | float: right; 77 | border-radius: 5px; 78 | margin: 16% 44% 0 0; 79 | padding: 10px 40px; 80 | } 81 | #location-address{ 82 | overflow: auto; 83 | height: 400px; 84 | width: 1000px; 85 | margin: auto; 86 | text-align: center; 87 | } 88 | #location-address #streetValue{ 89 | text-align: center; 90 | width: 100%; 91 | } 92 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Awesome-Python-Projects 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LICENSE_PLATE_DETECTION/name_plate_detection.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | import cv2 3 | from tkinter import Tk 4 | from tkinter.filedialog import askopenfilename 5 | import imutils 6 | import pytesseract 7 | pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files (x86)\Tesseract-OCR\tesseract.exe" 8 | 9 | #first we would ask the user to select the desired image and would display it. 10 | Tk().withdraw() 11 | file = askopenfilename() 12 | image = cv2.imread(file) 13 | image = imutils.resize(image, width=500) 14 | cv2.imshow("Original Image", image) 15 | cv2.waitKey(0) 16 | #Now we would have to do some image processing 17 | gray_scaled = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)#this will convert the image to grayscale 18 | gray_scaled = cv2.bilateralFilter(gray_scaled, 11, 17, 17)#this will apply the bilateral filter over the images for noise remov 19 | edged = cv2.Canny(gray, 170, 200) #This will remove the noise in the image and preserve the edges 20 | cv2.imshow("Edged", edged) 21 | cv2.waitKey(0) 22 | 23 | # Find contours based on Edges 24 | contours, heirarchy = cv2.findContours(edged.copy(), cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE)#this would help in finding the contours and heirarchy 25 | 26 | # Create copy of original image to draw all contours 27 | image_1 = image.copy()# Now we would make a copy of the original image so that whatever changes we make,it doesn't affect the original image 28 | cv2.drawContours(img1, cnts, -1, (0,255,0), 3) #this would draw the contours over the image copy 29 | 30 | 31 | #We would reverse sort all the contours in terms of area, and take the top 30 contours so that the smaller ones can be neglected 32 | contours=sorted(contours, key = cv2.contourArea, reverse = True)[:30] 33 | Number_Plate_Contour = 0 #This would be our number plate contour,and currently we don't have any 34 | 35 | 36 | for current_contour in contours: 37 | perimeter = cv2.arcLength(current_contour, True)#this will help in setting up a parameter for the cv2.approxPolyDP() 38 | approx = cv2.approxPolyDP(c, 0.02 * perimeter, True) #this will approximate the polygon curve 39 | if len(approx) == 4: # find the contour with 4 corners as number plates are in rectangular shape 40 | Number_Plate_Contour = approx #This is will be the approx Number Plate Contour 41 | break 42 | 43 | mask = np.zeros(gray_scaled.shape,np.uint8) 44 | new_image1 = cv2.drawContours(mask,[Number_Plate_Contour ],0,255,-1,) 45 | new_image1 = cv2.bitwise_and(image,image,mask=mask) 46 | cv2.imshow("Number Plate",new_image1) 47 | cv2.waitKey(0) 48 | gray_scaled1 = cv2.cvtColor(new_image1, cv2.COLOR_BGR2GRAY) 49 | ret,processed_img = cv2.threshold(np.array(gray_scaled1), 125, 255, cv2.THRESH_BINARY) 50 | cv2.imshow("Number Plate",processed_img) 51 | cv2.waitKey(0) 52 | # Use tesseract to covert image into string 53 | text = pytesseract.image_to_string(processed_img) 54 | print("Number is :", text) 55 | 56 | cv2.waitKey(0) #Wait for user input before closing the images displayed 57 | -------------------------------------------------------------------------------- /LICENSE_PLATE_DETECTION/ouput_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/LICENSE_PLATE_DETECTION/ouput_image.jpg -------------------------------------------------------------------------------- /LOAN PREDICTION/model_svm.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/LOAN PREDICTION/model_svm.pkl -------------------------------------------------------------------------------- /Live sketching project/4.3. Live Sketching.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": null, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import keras\n", 10 | "import cv2\n", 11 | "import numpy as np\n", 12 | "import matplotlib\n", 13 | "print (cv2.__version__)" 14 | ] 15 | }, 16 | { 17 | "cell_type": "code", 18 | "execution_count": null, 19 | "metadata": {}, 20 | "outputs": [], 21 | "source": [ 22 | "import cv2\n", 23 | "import numpy as np\n", 24 | "\n", 25 | "# Our sketch generating function\n", 26 | "def sketch(image):\n", 27 | " # Convert image to grayscale\n", 28 | " img_gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)\n", 29 | " \n", 30 | " # Clean up image using Guassian Blur\n", 31 | " img_gray_blur = cv2.GaussianBlur(img_gray, (5,5), 0)\n", 32 | " \n", 33 | " # Extract edges\n", 34 | " canny_edges = cv2.Canny(img_gray_blur, 20, 50)\n", 35 | " \n", 36 | " # Do an invert binarize the image \n", 37 | " ret, mask = cv2.threshold(canny_edges, 70, 255, cv2.THRESH_BINARY_INV)\n", 38 | " return mask\n", 39 | "\n", 40 | "\n", 41 | "# Initialize webcam, cap is the object provided by VideoCapture\n", 42 | "# It contains a boolean indicating if it was sucessful (ret)\n", 43 | "# It also contains the images collected from the webcam (frame)\n", 44 | "cap = cv2.VideoCapture(0)\n", 45 | "\n", 46 | "while True:\n", 47 | " ret, frame = cap.read()\n", 48 | " cv2.imshow('Our Live Sketcher', sketch(frame))\n", 49 | " if cv2.waitKey(1) == 13: #13 is the Enter Key\n", 50 | " break\n", 51 | " \n", 52 | "# Release camera and close windows\n", 53 | "cap.release()\n", 54 | "cv2.destroyAllWindows() " 55 | ] 56 | }, 57 | { 58 | "cell_type": "code", 59 | "execution_count": null, 60 | "metadata": {}, 61 | "outputs": [], 62 | "source": [] 63 | } 64 | ], 65 | "metadata": { 66 | "kernelspec": { 67 | "display_name": "Python 3", 68 | "language": "python", 69 | "name": "python3" 70 | }, 71 | "language_info": { 72 | "codemirror_mode": { 73 | "name": "ipython", 74 | "version": 3 75 | }, 76 | "file_extension": ".py", 77 | "mimetype": "text/x-python", 78 | "name": "python", 79 | "nbconvert_exporter": "python", 80 | "pygments_lexer": "ipython3", 81 | "version": "3.7.3" 82 | } 83 | }, 84 | "nbformat": 4, 85 | "nbformat_minor": 2 86 | } 87 | -------------------------------------------------------------------------------- /Live sketching project/README.md: -------------------------------------------------------------------------------- 1 | 2 | To learn more about opencv library :- 3 | https://opencv.org/ 4 | https://www.tutorialspoint.com/opencv/opencv_overview.html 5 | https://www.pyimagesearch.com/ 6 | 7 | To learn more about image processing:- 8 | http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_table_of_contents_imgproc/py_table_of_contents_imgproc.html 9 | https://analyticsindiamag.com/guide-to-opencv-functions-for-image-processing/ 10 | 11 | Problems u may face :- 12 | 1) if packages used in program are not installed in ur system 13 | => use !pip install in ur jupyter notebook. 14 | 2) In linux u need to explicitly setup ur camera 15 | 16 | Keep Exploring ! 17 | -------------------------------------------------------------------------------- /MyAlarm/HeyYa.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/MyAlarm/HeyYa.mp3 -------------------------------------------------------------------------------- /MyAlarm/alarm2.py: -------------------------------------------------------------------------------- 1 | from tkinter import * 2 | import datetime 3 | import time 4 | import os 5 | 6 | root=Tk() 7 | def alarm(set_alarm): 8 | while True: 9 | time.sleep(1) 10 | current_time=datetime.datetime.now().time() 11 | current_time = str(current_time) 12 | current_time = current_time[:5] 13 | if current_time==set_alarm: 14 | print("Time to wake up") 15 | os.system("start HeyYa.mp3") 16 | 17 | break 18 | 19 | def actual_time(): 20 | set_alarm=f"{hour.get()}:{minute.get()}" 21 | set_alarm=str(set_alarm) 22 | alarm(set_alarm) 23 | 24 | 25 | 26 | root.title("Alarm clock") 27 | root.geometry("350x200") 28 | 29 | hour=StringVar() 30 | minute=StringVar() 31 | Label(root,text="Hours Min",font="bold").place(x=10) 32 | 33 | 34 | hourTime=Entry(root,textvariable=hour,bg="lightblue",fg="black",font="Arial",width=5).place(x=10,y=30) 35 | minuteTime=Entry(root,textvariable=minute,bg="lightblue",fg="black",font="Arial",width=5).place(x=50,y=30) 36 | Label(root,text="Enter time in 24 hour format.",bg="pink",fg="black",font="Arial").place(x=10,y=120) 37 | set=Button(root,text="Set alarm",fg="black",width=10,command=actual_time).place(x=10,y=70) 38 | 39 | root.mainloop() -------------------------------------------------------------------------------- /NOTIFICATION_APP/Output - notification desktop.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/NOTIFICATION_APP/Output - notification desktop.JPG -------------------------------------------------------------------------------- /NOTIFICATION_APP/desktop notification.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/NOTIFICATION_APP/desktop notification.JPG -------------------------------------------------------------------------------- /NOTIFICATION_APP/desktop notification.py: -------------------------------------------------------------------------------- 1 | from plyer import notification 2 | 3 | notification.notify( 4 | title = "e-mail notification", 5 | message = "you have 3 unread messages", 6 | timeout = 10, 7 | ) -------------------------------------------------------------------------------- /PASSWORD_MANAGER/info.txt: -------------------------------------------------------------------------------- 1 | --------------------------------- 2 | UserName: garimasingh128mm 3 | Password: fdcbwxotwgmdmubvhpmonrhaumxeoob 4 | Website: githubkk 5 | --------------------------------- 6 | 7 | --------------------------------- 8 | UserName: kk 9 | Password: GRycSViY 10 | Website: kk 11 | --------------------------------- 12 | 13 | -------------------------------------------------------------------------------- /PIN_YOUR_NOTE/Output - Pin your note application.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/PIN_YOUR_NOTE/Output - Pin your note application.JPG -------------------------------------------------------------------------------- /PIN_YOUR_NOTE/pin your note application.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/PIN_YOUR_NOTE/pin your note application.JPG -------------------------------------------------------------------------------- /PIN_YOUR_NOTE/pin your note application.py: -------------------------------------------------------------------------------- 1 | import tkinter as tk 2 | 3 | 4 | def cli(): 5 | import time 6 | current_time = time.strftime("%H:%M") 7 | 8 | print("Welcome to Pin Your Note Application.") 9 | time.sleep(2) 10 | note_input = input("Type your notes here: ") 11 | note = ("%s") % note_input 12 | time.sleep(1) 13 | 14 | root = tk.Tk() 15 | root.title("Pin Your Note") 16 | root.geometry("300x300") 17 | 18 | tk.Label(root, text=current_time).pack() 19 | 20 | tk.Label(root, text=note).pack() 21 | 22 | root.mainloop() 23 | 24 | cli() 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. 4 | 5 | Fixes # (issue) 6 | 7 | ## Type of change 8 | 9 | Please delete options that are not relevant. 10 | 11 | - [ ] Bug fix (non-breaking change which fixes an issue) 12 | - [ ] New feature (non-breaking change which adds functionality) 13 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) 14 | - [ ] This change requires a documentation update 15 | 16 | # How Has This Been Tested? 17 | 18 | Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration 19 | 20 | - [ ] Test A 21 | - [ ] Test B 22 | 23 | **Test Configuration**: 24 | * Firmware version: 25 | * Hardware: 26 | * Toolchain: 27 | * SDK: 28 | 29 | # Checklist: 30 | 31 | - [ ] My code follows the style guidelines of this project 32 | - [ ] I have performed a self-review of my own code 33 | - [ ] I have commented my code, particularly in hard-to-understand areas 34 | - [ ] I have made corresponding changes to the documentation 35 | - [ ] My changes generate no new warnings 36 | - [ ] I have added tests that prove my fix is effective or that my feature works 37 | - [ ] New and existing unit tests pass locally with my changes 38 | - [ ] Any dependent changes have been merged and published in downstream modules 39 | -------------------------------------------------------------------------------- /QUIZ APP/Question.py: -------------------------------------------------------------------------------- 1 | class Question: 2 | def __init__(self,prompt,answer): 3 | self.prompt = prompt 4 | self.answer = answer -------------------------------------------------------------------------------- /QUIZ APP/app.py: -------------------------------------------------------------------------------- 1 | from Question import Question 2 | print('----------------------------') 3 | print(' QUIZ ') 4 | print('----------------------------') 5 | print('INSTRUCTIONS\n(1) Quiz consists of 5 questions.\n(2) Each question will have 4 options (a)(b)(c)(d)\n(3) You need to input the correct option below each question.') 6 | print('(4) Each question carries 1 mark.\n(5) Multiple selection of option will not be considered.\n(6) ENTER yes AFTER READING ALL THE INSTRUCTIONS TO TAKE QUIZ\n ') 7 | question_prompt = [ 8 | "Q1) Who is founder of PYTHON programming language ?\n (a) Guido Rangephiller \n (b) Guido van Rossum\n (c) Guido mark Rossum\n (d) JetBrains\n\n", 9 | "\nQ2) What will be the output of the following code :\nprint type(type(int)) \n (a) type'int'\n (b) type'type'\n (c) Error\n (d) 0\n\n", 10 | "\nQ3) What is the output of the following code :\nL = ['a','b','c','d']\nprint "".join(L) \n (a) Error\n (b) None\n (c) abcd\n (d) [‘a’,’b’,’c’,’d’]\n\n", 11 | "\nQ4) What is the output of the following code :\ny = 8\nz = lambda x : x * y\nprint z(6)\n (a) 48\n (b) 14\n (c) 64\n (d) None of the above\n\n", 12 | "\nQ5) What is called when a function is defined inside a class?:\n (a) Module\n (b) class\n (c) Another Function\n (d) Method\n\n", 13 | ] 14 | question=[ 15 | Question(question_prompt[0],"b"), 16 | Question(question_prompt[1],"b"), 17 | Question(question_prompt[2],"c"), 18 | Question(question_prompt[3],"a"), 19 | Question(question_prompt[4],"d"), 20 | ] 21 | def run_test(questions): 22 | score=0 23 | for question in questions: 24 | answer = input(question.prompt) 25 | print('Your Response is ==> ', answer) 26 | if answer == question.answer: 27 | score+=1 28 | print("You got " + str(score) + " / " + str(len(questions)) + " correct") 29 | print("--------------") 30 | print("YOUR SCORE = ",score) 31 | print("--------------") 32 | if score <= 2: 33 | print("Try again,Keep yourself updated") 34 | elif score >2 and score <= 4: 35 | print("WELL DONE!!") 36 | else: 37 | print("EXCELLENT!!") 38 | 39 | p= input("ARE U READY TO START??!! ") 40 | q=p.lower() 41 | if q=="yes": 42 | print('Enter your name') 43 | name=input() 44 | print("Enter login ID") 45 | Id = input() 46 | 47 | run_test(question) 48 | a=input("TYPE 'yes' to see correct ANSWERS ") 49 | b=a.lower() 50 | if b=="yes": 51 | print('\n------CORRECT ANSWERS-------') 52 | print("\nQ1.b) Guido van Rossum\nQ2.b) type'type'\nQ3.c) abcd\nQ4.a) 48\nQ5.d) Method\n") 53 | print('THANKS FOR ATTENDING '+ name.upper()) 54 | else: 55 | print('THANKS FOR ATTENDING '+ name) 56 | else: 57 | print("yes ==> to start") -------------------------------------------------------------------------------- /QUIZ APP/sample results/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/QUIZ APP/sample results/1.png -------------------------------------------------------------------------------- /QUIZ APP/sample results/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/QUIZ APP/sample results/2.png -------------------------------------------------------------------------------- /QUIZ APP/sample results/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/QUIZ APP/sample results/3.png -------------------------------------------------------------------------------- /QUIZ APP/sample results/colab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/QUIZ APP/sample results/colab.png -------------------------------------------------------------------------------- /ROCK_PAPER_SCISSOR/GAME.PY: -------------------------------------------------------------------------------- 1 | ## Player v/s cpu rock paper scissor game 2 | from random import randint 3 | name=input("Please Enter your name:") 4 | print(f"WELCOME TO ROCK PAPER SCISSOR GAME {name}") 5 | while True: 6 | print("-----------------------------------------------------") 7 | c=int(input("Enter 1 to play 0 to Exit: ")) 8 | 9 | y =randint(0,2) 10 | if (c==0): 11 | print("thanks for playing") 12 | break 13 | else: 14 | inputs=["rock","paper","scissor"] 15 | z=0 16 | while True: 17 | x=str(input("SELECT YOUR CHOICE rock paper scissor: ")) 18 | if x not in inputs: 19 | print("That's not a valid play. Check your spelling!") 20 | else: 21 | break 22 | 23 | if (x=="rock" and y==0): 24 | print("computer move is rock") 25 | print("Result= TIE") 26 | elif (x=="rock" and y==1): 27 | print("computer move is paper") 28 | print("Result= CPU WON ") 29 | elif (x=="rock" and y==2): 30 | print("computer move is scissor") 31 | print(f"Result= {name} WON") 32 | elif (x=="paper" and y==0): 33 | print("computer move is rock") 34 | print(f"Result= {name} WON") 35 | elif (x=="paper" and y==1): 36 | print("computer move is paper") 37 | print("Result= TIE ") 38 | elif (x=="paper" and y==2): 39 | print("computer move is scissor") 40 | print("Result= CPU WON") 41 | elif (x=="scissor" and y==0): 42 | print("computer move is rock") 43 | print("Result= CPU WON") 44 | elif (x=="scissor" and y==1): 45 | print("computer move is paper") 46 | print(f"Result= {name} WON ") 47 | elif (x=="scissor" and y==2): 48 | print("computer move is scissor") 49 | print("Result= TIE") 50 | 51 | -------------------------------------------------------------------------------- /ROCK_PAPER_SCISSOR/ROCKPAPERSCISSOR.py: -------------------------------------------------------------------------------- 1 | from random import randint 2 | 3 | print("WELCOME TO ROCK PAPER SCISSOR GAME") 4 | player=False 5 | while player==False: 6 | print("-----------------------------------------------------") 7 | print("Enter 1 to play 0 to Exit") 8 | c=int(input()) 9 | 10 | y =randint(0,2) 11 | if (c==0): 12 | print("thanks for playing") 13 | break 14 | elif (c==1): 15 | print("SELECT YOUR CHOICE rock paper scissor") 16 | x=str(input()) 17 | if y==0: 18 | print("computer move is rock") 19 | elif y==1: 20 | print("computer move is paper") 21 | elif y==2: 22 | print("computer move is scissor") 23 | if (x=="rock" and y==0): 24 | print("Result= TIE") 25 | elif (x=="rock" and y==1): 26 | print("Result= CPU WON ") 27 | elif (x=="rock" and y==2): 28 | print("Result= YOU WON") 29 | elif (x=="paper" and y==0): 30 | print("Result= YOU WON") 31 | elif (x=="paper" and y==1): 32 | print("Result= TIE ") 33 | elif (x=="paper" and y==2): 34 | print("Result= CPU WON") 35 | elif (x=="scissor" and y==0): 36 | print("Result= CPU WON") 37 | elif (x=="scissor" and y==1): 38 | print("Result= YOU WON ") 39 | elif (x=="scissor" and y==2): 40 | print("Result= TIE") 41 | else: 42 | print("That's not a valid play. Check your spelling!") 43 | player = False 44 | y =randint(0,2) 45 | 46 | else: 47 | print("Error") 48 | -------------------------------------------------------------------------------- /ROCK_PAPER_SCISSOR/SAMPLE OUTPUTS/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/ROCK_PAPER_SCISSOR/SAMPLE OUTPUTS/2.png -------------------------------------------------------------------------------- /ROCK_PAPER_SCISSOR/SAMPLE OUTPUTS/Untitled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/ROCK_PAPER_SCISSOR/SAMPLE OUTPUTS/Untitled.png -------------------------------------------------------------------------------- /ROLLING_DICE/Output_Screenshots/output_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/ROLLING_DICE/Output_Screenshots/output_1.png -------------------------------------------------------------------------------- /ROLLING_DICE/Output_Screenshots/output_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/ROLLING_DICE/Output_Screenshots/output_2.png -------------------------------------------------------------------------------- /ROLLING_DICE/Output_Screenshots/output_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/ROLLING_DICE/Output_Screenshots/output_3.png -------------------------------------------------------------------------------- /ROLLING_DICE/Rolling Dice.py: -------------------------------------------------------------------------------- 1 | # importing the required module 2 | import random 3 | 4 | #this function will ask the user whether he/she want to play again or not ?. 5 | def roll_dice(): 6 | print('\nDo you want to play again ?') 7 | print('Enter Yes/No') 8 | choice = input() 9 | 10 | # if the user doesn't enter anything,he/she will be asked to enter again. 11 | if choice =='': 12 | print('Wrong Input !!! Enter again Yes/No') 13 | choice = roll_dice() 14 | return choice 15 | 16 | if __name__ == '__main__': 17 | print('Welcome to the Dice Game !!!') 18 | dice_value = random.randint(1, 6) 19 | print('You got ', dice_value) 20 | choice = roll_dice() 21 | 22 | #this while loop will run untill the user doesn't want to play again. 23 | while choice: 24 | if choice == 'No' or choice == 'no': 25 | break 26 | elif choice == 'Yes' or choice == 'yes': 27 | dice_value = random.randint(1, 6) 28 | print('You got ', dice_value) 29 | choice = roll_dice() 30 | else: 31 | print('Wrong Input !!! Enter again Yes/No') 32 | choice = roll_dice() 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /SECURE_YOUR_PASSWORD/Output - secure your password.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SECURE_YOUR_PASSWORD/Output - secure your password.JPG -------------------------------------------------------------------------------- /SECURE_YOUR_PASSWORD/Updated code.py: -------------------------------------------------------------------------------- 1 | sym = { 2 | 'a' : '!!', 3 | 'b' : '@', 4 | 'c' : '#', 5 | 'd' : '$', 6 | 'e' : '^', 7 | 'f' : '}', 8 | 'g' : ']', 9 | 'h' : ')', 10 | 'i' : '*', 11 | 'j' : '=', 12 | 'k' : '+', 13 | 'l' : '-', 14 | 'm' : '_', 15 | 'n' : '>', 16 | 'o' : '<', 17 | 'p' : '.', 18 | 'q' : '%', 19 | 'r' : '&', 20 | 's' : '(', 21 | 't' : '{', 22 | 'u' : '[', 23 | 'x' : '?', 24 | 'y' : ',', 25 | 'z' : '|', 26 | } 27 | 28 | inp = input("enter your name:") 29 | print(inp) 30 | password = '' 31 | 32 | for i in inp: 33 | for key, val in sym.items(): 34 | if i in key: 35 | password = password + val 36 | print("Name you entered : ", inp) 37 | print("Password : ", password) 38 | -------------------------------------------------------------------------------- /SECURE_YOUR_PASSWORD/secure your password 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SECURE_YOUR_PASSWORD/secure your password 1.JPG -------------------------------------------------------------------------------- /SECURE_YOUR_PASSWORD/secure your password 2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SECURE_YOUR_PASSWORD/secure your password 2.JPG -------------------------------------------------------------------------------- /SECURE_YOUR_PASSWORD/secure your password.py: -------------------------------------------------------------------------------- 1 | sym = { 2 | 'a' : '!!', 3 | 'b' : '@', 4 | 'c' : '#', 5 | 'd' : '$', 6 | 'e' : '^', 7 | 'f' : '}', 8 | 'g' : ']', 9 | 'h' : ')', 10 | 'i' : '*', 11 | 'j' : '=', 12 | 'k' : '+', 13 | 'l' : '-', 14 | 'm' : '_', 15 | 'n' : '>', 16 | 'o' : '<', 17 | 'p' : '.', 18 | 'q' : '%', 19 | 'r' : '&', 20 | 's' : '(', 21 | 't' : '{', 22 | 'u' : '[', 23 | 'x' : '?', 24 | 'y' : ',', 25 | 'z' : '|', 26 | } 27 | inp = 'alphabet' 28 | password = '' 29 | 30 | for i in inp: 31 | for key, val in sym.items(): 32 | if i in key: 33 | password = password + val 34 | print("Name you entered : ", inp) 35 | print("Password : ", password) -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/Output 1 - Sentiment analysis.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/Output 1 - Sentiment analysis.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/Output 2 - Sentiment analysis.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/Output 2 - Sentiment analysis.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 1.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 10.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 10.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 11.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 11.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 12.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 12.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 13.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 13.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 14.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 14.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 15.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 15.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 16.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 16.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 2.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 3.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 3.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 4.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 4.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 5.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 5.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 6.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 6.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 7.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 7.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 8.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 8.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 9.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/emotions 9.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/main 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/main 1.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/main 2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/main 2.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/main 3.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/main 3.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/read 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/read 1.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/read 2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/Images folder/read 2.JPG -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/main.py: -------------------------------------------------------------------------------- 1 | import string 2 | from collections import Counter 3 | 4 | import matplotlib.pyplot as plt 5 | 6 | # reading text file 7 | text = open("read.txt", encoding="utf-8").read() 8 | 9 | # converting to lowercase 10 | lower_case = text.lower() 11 | 12 | # Removing punctuations 13 | cleaned_text = lower_case.translate(str.maketrans('', '', string.punctuation)) 14 | 15 | # splitting text into words 16 | tokenized_words = cleaned_text.split() 17 | 18 | stop_words = ["i", "me", "my", "myself", "we", "our", "ours", "ourselves", "you", "your", "yours", "yourself", 19 | "yourselves", "he", "him", "his", "himself", "she", "her", "hers", "herself", "it", "its", "itself", 20 | "they", "them", "their", "theirs", "themselves", "what", "which", "who", "whom", "this", "that", "these", 21 | "those", "am", "is", "are", "was", "were", "be", "been", "being", "have", "has", "had", "having", "do", 22 | "does", "did", "doing", "a", "an", "the", "and", "but", "if", "or", "because", "as", "until", "while", 23 | "of", "at", "by", "for", "with", "about", "against", "between", "into", "through", "during", "before", 24 | "after", "above", "below", "to", "from", "up", "down", "in", "out", "on", "off", "over", "under", "again", 25 | "further", "then", "once", "here", "there", "when", "where", "why", "how", "all", "any", "both", "each", 26 | "few", "more", "most", "other", "some", "such", "no", "nor", "not", "only", "own", "same", "so", "than", 27 | "too", "very", "s", "t", "can", "will", "just", "don", "should", "now"] 28 | 29 | # Removing stop words from the tokenized words list 30 | final_words = [] 31 | for word in tokenized_words: 32 | if word not in stop_words: 33 | final_words.append(word) 34 | 35 | # NLP Emotion Algorithm 36 | # 1) Check if the word in the final word list is also present in emotion.txt 37 | # - open the emotion file 38 | # - Loop through each line and clear it 39 | # - Extract the word and emotion using split 40 | 41 | # 2) If word is present -> Add the emotion to emotion_list 42 | # 3) Finally count each emotion in the emotion list 43 | 44 | emotion_list = [] 45 | with open('emotions.txt', 'r') as file: 46 | for line in file: 47 | clear_line = line.replace("\n", '').replace(",", '').replace("'", '').strip() 48 | word, emotion = clear_line.split(':') 49 | 50 | if word in final_words: 51 | emotion_list.append(emotion) 52 | 53 | print(emotion_list) 54 | w = Counter(emotion_list) 55 | print(w) 56 | 57 | # Plotting the emotions on the graph 58 | 59 | fig, ax1 = plt.subplots() 60 | ax1.bar(w.keys(), w.values()) 61 | fig.autofmt_xdate() 62 | plt.savefig('graph.png') 63 | plt.show() -------------------------------------------------------------------------------- /SENTIMENT_ANALYSER_ML_PROJECT/Root folder/read.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSER_ML_PROJECT/Root folder/read.txt -------------------------------------------------------------------------------- /SENTIMENT_ANALYSIS_ML_PROJECT/Screenshots/Model_Evaluation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/SENTIMENT_ANALYSIS_ML_PROJECT/Screenshots/Model_Evaluation.png -------------------------------------------------------------------------------- /SINE_VS_COSINE/app.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | import matplotlib.pyplot as plot 3 | # Get x values of the sine wave 4 | time = np.linspace(-2*np.pi, 2*np.pi, 256, endpoint=True) 5 | # Amplitude of the sine wave is sine of a variable like time 6 | amplitude_sin = np.sin(time) 7 | amplitude_cos = np.cos(time) 8 | # Plot a sine wave using time and amplitude obtained for the sine wave 9 | plot.plot(time, amplitude_sin) 10 | plot.plot(time, amplitude_cos) 11 | # Give a title for the sine wave plot 12 | plot.title('Sine & Cos wave') 13 | # Give x axis label for the sine wave plot 14 | plot.xlabel('Time') 15 | # Give y axis label for the sine wave plot 16 | plot.ylabel('Amplitude') 17 | plot.grid(True, which='both') 18 | plot.axhline(y=0, color='k') 19 | plot.show() -------------------------------------------------------------------------------- /STOCK_PRICE_PREDICTION/model.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/STOCK_PRICE_PREDICTION/model.h5 -------------------------------------------------------------------------------- /Search and edit Gui Application/README.md: -------------------------------------------------------------------------------- 1 | # Search_and_Edit 2 | When you type something into the search bar , the Search and Edit app will pull up information about it from Wikipedia . 3 | By enabling the Editor function, you can use it as a text editor and can disable the editor function just as easily . 4 | The Graphical User Interface has been designed using tkinter and the mini project is based on Python . 5 | -------------------------------------------------------------------------------- /Search and edit Gui Application/The Searching and Editing App 18-12-2020 06_08_33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Search and edit Gui Application/The Searching and Editing App 18-12-2020 06_08_33.png -------------------------------------------------------------------------------- /Search and edit Gui Application/searchwikipedia.py: -------------------------------------------------------------------------------- 1 | from tkinter import * 2 | import wikipedia 3 | from tkinter import messagebox 4 | 5 | class searchwiki: 6 | def __init__(self,root): 7 | self.root=root 8 | self.root.title("The Searching and Editing App") 9 | self.root.geometry("1360x740+0+0") 10 | self.root.config(bg="#262626") 11 | 12 | title=Label(self.root,text="SEARCH and EDIT",font=("times new roman",35,"bold"),bg="white",fg="black").place(x=0,y=0,relwidth=1) 13 | 14 | frame1=Frame(self.root,bd=2,relief=RIDGE) 15 | frame1.place(x=20,y=130,width=1330,height=550) 16 | 17 | self.var_search=StringVar() 18 | txt_word=Entry(self.root,textvariable=self.var_search,font=("times new roman",20)).place(x=100,y=82,width=500) 19 | 20 | btn_search=Button(self.root,text="Search",command=self.searchword,font=("times new roman",15,"bold"),bg="#262626",fg="white").place(x=620,y=80,height=40,width=120) 21 | btn_clear=Button(self.root,text="Clear",command=self.clear,font=("times new roman",15,"bold"),bg="#262626",fg="white").place(x=750,y=80,height=40,width=120) 22 | btn_enable=Button(self.root,text="Enable Editor",command=self.enable,font=("times new roman",15,"bold"),bg="#262626",fg="white").place(x=880,y=80,height=40,width=210) 23 | btn_disable=Button(self.root,text="Disable Editor",command=self.disable,font=("times new roman",15,"bold"),bg="#262626",fg="white").place(x=1100,y=80,height=40,width=210) 24 | 25 | scrolly=Scrollbar(frame1,orient=VERTICAL) 26 | scrolly.pack(side=RIGHT,fill="y") 27 | 28 | self.txt_area=Text(frame1,font=("times new roman",15),yscrollcommand=scrolly.set) 29 | self.txt_area.pack(fill=BOTH,expand=1) 30 | scrolly.config(command=self.txt_area.yview) 31 | 32 | def enable(self): 33 | self.txt_area.config(state=NORMAL) 34 | 35 | def disable(self): 36 | self.txt_area.config(state=DISABLED) 37 | 38 | def clear(self): 39 | self.var_search.set("") 40 | self.txt_area.delete('1.0',END) 41 | 42 | def searchword(self): 43 | if self.var_search.get()=="": 44 | messagebox.showerror("ERROR","Search box shouldn't be empty") 45 | else: 46 | fetch_data=wikipedia.summary(self.var_search.get()) 47 | self.txt_area.insert('1.0',fetch_data) 48 | 49 | root=Tk() 50 | obj=searchwiki(root) 51 | root.mainloop() -------------------------------------------------------------------------------- /TCREDIT_CARD_FRAUD_DETECTION/Data/creditcard.csv.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/TCREDIT_CARD_FRAUD_DETECTION/Data/creditcard.csv.zip -------------------------------------------------------------------------------- /TCREDIT_CARD_FRAUD_DETECTION/Screenshot/Model_Metrics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/TCREDIT_CARD_FRAUD_DETECTION/Screenshot/Model_Metrics.png -------------------------------------------------------------------------------- /TIC TAC TOE ( vs Computer )/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ -------------------------------------------------------------------------------- /TIC_TAC_TOE/tic_tac_toe: -------------------------------------------------------------------------------- 1 | #Implementation of Two Player Tic-Tac-Toe game in Python. 2 | 3 | ''' We will make the board using dictionary 4 | in which keys will be the location(i.e : top-left,mid-right,etc.) 5 | and initialliy it's values will be empty space and then after every move 6 | we will change the value according to player's choice of move. ''' 7 | 8 | theBoard = {'7': ' ' , '8': ' ' , '9': ' ' , 9 | '4': ' ' , '5': ' ' , '6': ' ' , 10 | '1': ' ' , '2': ' ' , '3': ' ' } 11 | 12 | board_keys = [] 13 | 14 | for key in theBoard: 15 | board_keys.append(key) 16 | 17 | ''' We will have to print the updated board after every move in the game and 18 | thus we will make a function in which we'll define the printBoard function 19 | so that we can easily print the board everytime by calling this function. ''' 20 | 21 | def printBoard(board): 22 | print(board['7'] + '|' + board['8'] + '|' + board['9']) 23 | print('-+-+-') 24 | print(board['4'] + '|' + board['5'] + '|' + board['6']) 25 | print('-+-+-') 26 | print(board['1'] + '|' + board['2'] + '|' + board['3']) 27 | 28 | # Now we'll write the main function which has all the gameplay functionality. 29 | def game(): 30 | 31 | turn = 'X' 32 | count = 0 33 | 34 | 35 | for i in range(10): 36 | printBoard(theBoard) 37 | print("It's your turn," + turn + ".Move to which place?") 38 | 39 | move = input() 40 | 41 | if theBoard[move] == ' ': 42 | theBoard[move] = turn 43 | count += 1 44 | else: 45 | print("That place is already filled.\nMove to which place?") 46 | continue 47 | 48 | # Now we will check if player X or O has won,for every move after 5 moves. 49 | if count >= 5: 50 | if theBoard['7'] == theBoard['8'] == theBoard['9'] != ' ': # across the top 51 | printBoard(theBoard) 52 | print("\nGame Over.\n") 53 | print(" **** " +turn + " won. ****") 54 | break 55 | elif theBoard['4'] == theBoard['5'] == theBoard['6'] != ' ': # across the middle 56 | printBoard(theBoard) 57 | print("\nGame Over.\n") 58 | print(" **** " +turn + " won. ****") 59 | break 60 | elif theBoard['1'] == theBoard['2'] == theBoard['3'] != ' ': # across the bottom 61 | printBoard(theBoard) 62 | print("\nGame Over.\n") 63 | print(" **** " +turn + " won. ****") 64 | break 65 | elif theBoard['1'] == theBoard['4'] == theBoard['7'] != ' ': # down the left side 66 | printBoard(theBoard) 67 | print("\nGame Over.\n") 68 | print(" **** " +turn + " won. ****") 69 | break 70 | elif theBoard['2'] == theBoard['5'] == theBoard['8'] != ' ': # down the middle 71 | printBoard(theBoard) 72 | print("\nGame Over.\n") 73 | print(" **** " +turn + " won. ****") 74 | break 75 | elif theBoard['3'] == theBoard['6'] == theBoard['9'] != ' ': # down the right side 76 | printBoard(theBoard) 77 | print("\nGame Over.\n") 78 | print(" **** " +turn + " won. ****") 79 | break 80 | elif theBoard['7'] == theBoard['5'] == theBoard['3'] != ' ': # diagonal 81 | printBoard(theBoard) 82 | print("\nGame Over.\n") 83 | print(" **** " +turn + " won. ****") 84 | break 85 | elif theBoard['1'] == theBoard['5'] == theBoard['9'] != ' ': # diagonal 86 | printBoard(theBoard) 87 | print("\nGame Over.\n") 88 | print(" **** " +turn + " won. ****") 89 | break 90 | 91 | # If neither X nor O wins and the board is full, we'll declare the result as 'tie'. 92 | if count == 9: 93 | print("\nGame Over.\n") 94 | print("It's a Tie!!") 95 | 96 | # Now we have to change the player after every move. 97 | if turn =='X': 98 | turn = 'O' 99 | else: 100 | turn = 'X' 101 | 102 | # Now we will ask if player wants to restart the game or not. 103 | restart = input("Do want to play Again?(y/n)") 104 | if restart == "y" or restart == "Y": 105 | for key in board_keys: 106 | theBoard[key] = " " 107 | 108 | game() 109 | 110 | if __name__ == "__main__": 111 | game() 112 | -------------------------------------------------------------------------------- /TIC_TAC_TOE/tictactoe: -------------------------------------------------------------------------------- 1 | # Tic-Tac-Toe Program using 2 | # random number in Python 3 | 4 | # importing all necessary libraries 5 | import numpy as np 6 | import random 7 | from time import sleep 8 | 9 | # Creates an empty board 10 | def create_board(): 11 | return(np.array([[0, 0, 0], 12 | [0, 0, 0], 13 | [0, 0, 0]])) 14 | 15 | # Check for empty places on board 16 | def possibilities(board): 17 | l = [] 18 | 19 | for i in range(len(board)): 20 | for j in range(len(board)): 21 | 22 | if board[i][j] == 0: 23 | l.append((i, j)) 24 | return(l) 25 | 26 | # Select a random place for the player 27 | def random_place(board, player): 28 | selection = possibilities(board) 29 | current_loc = random.choice(selection) 30 | board[current_loc] = player 31 | return(board) 32 | 33 | # Checks whether the player has three 34 | # of their marks in a horizontal row 35 | def row_win(board, player): 36 | for x in range(len(board)): 37 | win = True 38 | 39 | for y in range(len(board)): 40 | if board[x, y] != player: 41 | win = False 42 | continue 43 | 44 | if win == True: 45 | return(win) 46 | return(win) 47 | 48 | # Checks whether the player has three 49 | # of their marks in a vertical row 50 | def col_win(board, player): 51 | for x in range(len(board)): 52 | win = True 53 | 54 | for y in range(len(board)): 55 | if board[y][x] != player: 56 | win = False 57 | continue 58 | 59 | if win == True: 60 | return(win) 61 | return(win) 62 | 63 | # Checks whether the player has three 64 | # of their marks in a diagonal row 65 | def diag_win(board, player): 66 | win = True 67 | y = 0 68 | for x in range(len(board)): 69 | if board[x, x] != player: 70 | win = False 71 | win = True 72 | if win: 73 | for x in range(len(board)): 74 | y = len(board) - 1 - x 75 | if board[x, y] != player: 76 | win = False 77 | return win 78 | 79 | # Evaluates whether there is 80 | # a winner or a tie 81 | def evaluate(board): 82 | winner = 0 83 | 84 | for player in [1, 2]: 85 | if (row_win(board, player) or 86 | col_win(board,player) or 87 | diag_win(board,player)): 88 | 89 | winner = player 90 | 91 | if np.all(board != 0) and winner == 0: 92 | winner = -1 93 | return winner 94 | 95 | # Main function to start the game 96 | def play_game(): 97 | board, winner, counter = create_board(), 0, 1 98 | print(board) 99 | sleep(2) 100 | 101 | while winner == 0: 102 | for player in [1, 2]: 103 | board = random_place(board, player) 104 | print("Board after " + str(counter) + " move") 105 | print(board) 106 | sleep(2) 107 | counter += 1 108 | winner = evaluate(board) 109 | if winner != 0: 110 | break 111 | return(winner) 112 | 113 | # Driver Code 114 | print("Winner is: " + str(play_game())) 115 | -------------------------------------------------------------------------------- /TIC_TAC_TOE_MINMAX_ALGO/Screenshot (334).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/TIC_TAC_TOE_MINMAX_ALGO/Screenshot (334).png -------------------------------------------------------------------------------- /TIC_TAC_TOE_MINMAX_ALGO/Screenshot (335).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/TIC_TAC_TOE_MINMAX_ALGO/Screenshot (335).png -------------------------------------------------------------------------------- /TITANIC_SURVIVAL_PROJECT2/Reference.md: -------------------------------------------------------------------------------- 1 | ##Reference 2 | [1] https://youtu.be/6P3HSOcCYPc -------------------------------------------------------------------------------- /TITANIC_SURVIVAL_PROJECT2/Titanic_Survival_Project2_result.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/TITANIC_SURVIVAL_PROJECT2/Titanic_Survival_Project2_result.png -------------------------------------------------------------------------------- /TYPING_SPEED_TEST/Output - Typing Speed Test.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/TYPING_SPEED_TEST/Output - Typing Speed Test.JPG -------------------------------------------------------------------------------- /TYPING_SPEED_TEST/Typing Speed Test.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/TYPING_SPEED_TEST/Typing Speed Test.JPG -------------------------------------------------------------------------------- /TYPING_SPEED_TEST/Typing Speed Test.py: -------------------------------------------------------------------------------- 1 | import time 2 | string = "Python is an interpreted, high-level programming language" 3 | word_count = len(string.split()) 4 | border = '-+-'*10 5 | 6 | def createbox(): 7 | print(border) 8 | print() 9 | print('Enter the phrase as fast as possible and with accuracy') 10 | print() 11 | 12 | while 1: 13 | t0 = time.time() 14 | createbox() 15 | print(string,'\n') 16 | inputText = str(input()) 17 | t1 = time.time() 18 | lengthOfInput = len(inputText.split()) 19 | accuracy = len(set(inputText.split()) & set(string.split())) 20 | accuracy = (accuracy/word_count) 21 | timeTaken = (t1 - t0) 22 | wordsperminute = (lengthOfInput/timeTaken)*60 23 | #Showing results now 24 | print('Total words \t :' ,lengthOfInput) 25 | print('Time used \t :',round(timeTaken,2),'seconds') 26 | print('Your accuracy \t :',round(accuracy,3)*100,'%') 27 | print('Speed is \t :' , round(wordsperminute,2),'words per minute') 28 | print("Do you want to retry",end='') 29 | if input(): 30 | continue 31 | else: 32 | print('Thank you , bye bye .') 33 | time.sleep(1.5) 34 | break 35 | -------------------------------------------------------------------------------- /Twitter-Bot/README.md: -------------------------------------------------------------------------------- 1 | # Twitter-Bot 2 | 3 | ## Required Dependiencies 4 | - Python 3.5 or above 5 | - Tweepy 6 | - And [Twitter developer account](developers.twitter.com) 7 | - Get the Four keys from the developer account and update on the credientials.py file. 8 | 9 | ## Uses 10 | - You can search for a hashtag and like,retweet,follow the users who tweeted. 11 | - You can tweet on regularly basic by updating the format on the twitterapp.py file. 12 | 13 | ![daily_tweet](daily_tweets.png) 14 | 15 | - you can change your permissions by modifying config.py file. 16 | - Change the SLEEP_TIME in config.py file to your need. 17 | 18 | ## To run 19 | - Run the twitterapp.py file after updating the config.py and credientials.py file. 20 | 21 | ## Result 22 | 23 | ![result](result.png) 24 | -------------------------------------------------------------------------------- /Twitter-Bot/__pycache__/config.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Twitter-Bot/__pycache__/config.cpython-38.pyc -------------------------------------------------------------------------------- /Twitter-Bot/__pycache__/credientials.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Twitter-Bot/__pycache__/credientials.cpython-38.pyc -------------------------------------------------------------------------------- /Twitter-Bot/config.py: -------------------------------------------------------------------------------- 1 | # replace the hastag with your own. 2 | QUERY = "# twitter" 3 | 4 | # True if you need to like if you dont want to like the tweet give False 5 | LIKE = True 6 | 7 | # True if you need to follow if you dont want to follow the tweet give False 8 | FOLLOW = True 9 | 10 | # It is used to make your bot do the same in a repeated time constraint give the value more for sleeep_time. 11 | SLEEP_TIME = 500 12 | 13 | # True if you need to retweet if you dont want to retweet the tweet give False 14 | RETWEET = True 15 | 16 | # True if you need to tweet daily if you dont want to tweet daily the tweet give False 17 | EVERYDAY_TWEETS = True 18 | -------------------------------------------------------------------------------- /Twitter-Bot/credientials.py: -------------------------------------------------------------------------------- 1 | CONSUMER_KEY = "ycFglnQqD8mxeSksv1tEOLhL2" 2 | CONSUMER_SECRET = "tI9rnjB4IvxpQ9PafQUaxYHmHBYHIDrRFYUZzH9unXEeirLPJi" 3 | ACCESS_KEY = "1182456728199106560-SyYxjrpHwzkD0Qoh2RGYqoNPvPjkAp" 4 | ACCESS_SECRET = "LZJTF4biXjOAvwYpef2xCsibTWGQ3byx0T7KmeXi9mghS" 5 | -------------------------------------------------------------------------------- /Twitter-Bot/daily_tweets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Twitter-Bot/daily_tweets.png -------------------------------------------------------------------------------- /Twitter-Bot/result.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garimasingh128/awesome-python-projects/92cfd06f050e786160f098290f3b58a2c8feaf0c/Twitter-Bot/result.png -------------------------------------------------------------------------------- /Twitter-Bot/twitterapp.py: -------------------------------------------------------------------------------- 1 | import tweepy 2 | from time import sleep 3 | from credientials import * 4 | from config import * 5 | import datetime 6 | 7 | 8 | auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) 9 | auth.set_access_token(ACCESS_KEY, ACCESS_SECRET) 10 | api = tweepy.API(auth) 11 | 12 | 13 | print("Twitter bot which retweets, like tweets, follow users and post daily tweets") 14 | print("Bot Settings") 15 | print("Retweet Tweets :{message}".format( 16 | message="Enabled" if RETWEET else "Disabled")) 17 | print("Like Tweets :{message}".format( 18 | message="Enabled" if LIKE else "Disabled")) 19 | print("Follow users :{message}".format( 20 | message="Enabled" if FOLLOW else "Disabled")) 21 | print("Every day tweets :{message}".format( 22 | message="Enabled" if EVERYDAY_TWEETS else "Disabled")) 23 | 24 | for tweet in tweepy.Cursor(api.search, q=QUERY).items(): 25 | try: 26 | print('\nTweet by: @' + tweet.user.screen_name) 27 | 28 | if RETWEET: 29 | tweet.retweet() 30 | print('Retweeted the tweet') 31 | 32 | # Favorite the tweet 33 | if LIKE: 34 | tweet.favorite() 35 | print('Favorited the tweet') 36 | 37 | # Follow the user who tweeted 38 | # check that bot is not already following the user 39 | if FOLLOW: 40 | if not tweet.user.following: 41 | tweet.user.follow() 42 | print('Followed the user') 43 | 44 | # Tweet your message daily 45 | # change the message according to your use. 46 | if EVERYDAY_TWEETS: 47 | if datetime.date.today().weekday() == 0: 48 | tweettopublish = 'Hi everyone, today is Monday. #Monday ' 49 | if datetime.date.today().weekday() == 1: 50 | tweettopublish = 'Enjoy your Tuesday. #Tuesday' 51 | if datetime.date.today().weekday() == 2: 52 | tweettopublish = 'Third week of the Week. #Wednesday' 53 | if datetime.date.today().weekday() == 3: 54 | tweettopublish = 'Thursday. I cannot wait for the Weekend' 55 | if datetime.date.today().weekday() == 4: 56 | tweettopublish = 'Friday...Finally' 57 | if datetime.date.today().weekday() == 5: 58 | tweettopublish = 'Great it is Saturday #weekend #Saturday' 59 | if datetime.date.today().weekday() == 6: 60 | tweettopublish = 'Sunday morning...#Weekend #enjoy ' 61 | api.update_status(tweettopublish) 62 | print(tweettopublish) 63 | 64 | sleep(SLEEP_TIME) 65 | 66 | except tweepy.TweepError as e: 67 | print(e.reason) 68 | 69 | except StopIteration: 70 | break 71 | -------------------------------------------------------------------------------- /URL_SHORTENER/app.py: -------------------------------------------------------------------------------- 1 | from __future__ import with_statement 2 | import contextlib 3 | from urllib.parse import urlencode 4 | from urllib import urlencode 5 | from urllib.request import urlopen 6 | from urllib2 import urlopen 7 | import sys 8 | 9 | def short_url(url): 10 | request_url = ('http://tinyurl.com/api-create.php?' + urlencode({'url':url})) 11 | with contextlib.closing(urlopen(request_url)) as response: 12 | return response.read().decode('utf-8 ') 13 | 14 | def main(): 15 | for url in map(short_url, sys.argv[1:]): 16 | print(url) 17 | 18 | if __name__ == '__main__': 19 | main() -------------------------------------------------------------------------------- /WEATHER_APP/weatherapp.py: -------------------------------------------------------------------------------- 1 | 2 | # import all functions from the tkinter 3 | from tkinter import * 4 | from tkinter import messagebox 5 | def tell_weather() : 6 | import requests, json 7 | api_key = "api_key" 8 | base_url = "http://api.openweathermap.org/data/2.5/weather?" 9 | city_name = city_field.get() 10 | complete_url = base_url + "appid =" + api_key + "&q =" + city_name 11 | response = requests.get(complete_url) 12 | x = response.json() 13 | if x["cod"] != "404" : 14 | y = x["main"] 15 | current_temperature = y["temp"] 16 | current_pressure = y["pressure"] 17 | current_humidiy = y["humidity"] 18 | z = x["weather"] 19 | weather_description = z[0]["description"] 20 | temp_field.insert(15, str(current_temperature) + " Kelvin") 21 | atm_field.insert(10, str(current_pressure) + " hPa") 22 | humid_field.insert(15, str(current_humidiy) + " %") 23 | desc_field.insert(10, str(weather_description) ) 24 | 25 | else : 26 | messagebox.showerror("Error", "City Not Found \n" 27 | "Please enter valid city name") 28 | city_field.delete(0, END) 29 | 30 | 31 | 32 | def clear_all() : 33 | city_field.delete(0, END) 34 | temp_field.delete(0, END) 35 | atm_field.delete(0, END) 36 | humid_field.delete(0, END) 37 | desc_field.delete(0, END) 38 | city_field.focus_set() 39 | 40 | if __name__ == "__main__" : 41 | root = Tk() 42 | root.title("Weather Application") 43 | 44 | # Set the background colour of GUI window 45 | root.configure(background = "light blue") 46 | 47 | # Set the configuration of GUI window 48 | root.geometry("425x175") 49 | 50 | # Create a Weather Gui Application label 51 | headlabel = Label(root, text = "Weather Gui Application", fg = 'white', bg = 'Black') 52 | 53 | # Create a City name : label 54 | label1 = Label(root, text = "City name : ", fg = 'white', bg = 'dark gray') 55 | 56 | # Create a City name : label 57 | label2 = Label(root, text = "Temperature :", fg = 'white', bg = 'dark gray') 58 | 59 | # Create a atm pressure : label 60 | label3 = Label(root, text = "atm pressure :", fg = 'white', bg = 'dark gray') 61 | 62 | # Create a humidity : label 63 | label4 = Label(root, text = "humidity :", fg = 'white', bg = 'dark gray') 64 | 65 | # Create a description :label 66 | label5 = Label(root, text = "description :", fg = 'white', bg = 'dark gray') 67 | 68 | headlabel.grid(row = 0, column = 1) 69 | label1.grid(row = 1, column = 0, sticky ="E") 70 | label2.grid(row = 3, column = 0, sticky ="E") 71 | label3.grid(row = 4, column = 0, sticky ="E") 72 | label4.grid(row = 5, column = 0, sticky ="E") 73 | label5.grid(row = 6, column = 0, sticky ="E") 74 | 75 | 76 | city_field = Entry(root) 77 | temp_field = Entry(root) 78 | atm_field = Entry(root) 79 | humid_field = Entry(root) 80 | desc_field = Entry(root) 81 | 82 | city_field.grid(row = 1, column = 1, ipadx ="100") 83 | temp_field.grid(row = 3, column = 1, ipadx ="100") 84 | atm_field.grid(row = 4, column = 1, ipadx ="100") 85 | humid_field.grid(row = 5, column = 1, ipadx ="100") 86 | desc_field.grid(row = 6, column = 1, ipadx ="100") 87 | 88 | button1 = Button(root, text = "Submit", bg = "pink", fg = "black", command = tell_weather) 89 | 90 | button2 = Button(root, text = "Clear", bg = "pink" , fg = "black", command = clear_all) 91 | button1.grid(row = 2, column = 1) 92 | button2.grid(row = 7, column = 1) 93 | 94 | # Start the GUI 95 | root.mainloop() 96 | -------------------------------------------------------------------------------- /WORDGAMES/description: -------------------------------------------------------------------------------- 1 | Letter Partners Game 2 | In a fun game, every letter in English alphabet has a partner. The first thirteen letters of the English alphabet are called pre-partners and the next thirteen letters are called post-partners. That is ‘a’ is the pre-partner and the corressponding post-partner is ‘n’, ‘b’ is the pre-partner and the corressponding post partner is ‘o’ ....‘m’ is the pre-partner and ‘z’ is the post-partner. 3 | 4 | In this game, players will be asked to take a lot with a string ‘w’ and they are said to won the game if the following conditions are satisfied by the letters in ‘w’: 5 | 6 | (i) The string may be mixed with pre-partners and post-partners but all pre-partners should have a post-partner 7 | 8 | (ii) A pre-partner should come before it’s corressponding post-partner 9 | 10 | (iii) For a pre-partner that is in position ‘i’ it’s post-partner 11 | 12 | (a) Shall come immediately at posititon ‘i+1’ 13 | 14 | or 15 | 16 | (b) Should come before all corressponding post-partners of pre-partners that is in positions < i and after all corressponding post-partners of pre-partners that is in position > i. 17 | 18 | And the player has lost the game otherwise. 19 | 20 | For example, if the word in the lot taken is ‘abon’ then the player has won the game. All pre-partners come before the post-partner and condition (iii) is also satisfied as follows: 21 | 22 | 1) ‘o’ comes immediately after its pre-partner ‘b’, and as per condition (a) of (iii) it is acceptable 23 | 24 | 2) ‘n’ comes after its prepartner ‘a’ and it comes after the post-partners of pre-partners that has come after ‘a’ and as per condition (b) of (iii) it is acceptable 25 | 26 | Whereas if the word in the lot taken is ‘abno’ then the player has lost the game as the post-partener ‘n’ for pre-partner ‘a’ has come before the post-partner of the pre-partner ‘b’, violates condition (iii). 27 | 28 | And if the word in the lot is ‘aerfsbon’ then also the player has won 29 | -------------------------------------------------------------------------------- /WORDGAMES/letter_partner.py: -------------------------------------------------------------------------------- 1 | import sys 2 | list1=['a','b','c','d','e','f','g','h','i','j','k','l','m'] 3 | list2=['n','o','p','q','r','s','t','u','v','w','x','y','z'] 4 | w=input("Enter a word ") 5 | prepartner=prepartner1=[] 6 | postpartner1=postpartner=[] 7 | for i in w: 8 | if(i in list1): 9 | prepartner.append(i) 10 | if(i in list2): 11 | postpartner.append(i) 12 | for j in prepartner: 13 | list1index=list1.index(j) 14 | if(list2[list1index] in postpartner):#testing if all prepartners has postpartners 15 | pass 16 | else: 17 | print("YOU LOST") 18 | sys.exit() 19 | prepartner1=prepartner 20 | postpartner1=postpartner 21 | for k in prepartner: 22 | x=prepartner.index(k) 23 | y=postpartner.index(list2[list1.index(k)]) 24 | if(w.index(prepartner[x])