├── .github
├── FUNDING.yml
├── ISSUE_TEMPLATE
│ └── proposing-new-project.md
├── WORKFLOWS
│ ├── Auto_message_on_pr_merge.yml
│ └── Auto_message_on_pr_open.yml
├── pull_request_template.md
└── readme_template.md
├── 2048 Game
├── Images
│ ├── Screenshot (369).png
│ ├── Screenshot (371).png
│ └── Screenshot (373).png
├── README.md
├── main.py
└── requirements.txt
├── Age Calculator
├── Images
│ ├── Image1.jpg
│ ├── Image2.jpg
│ ├── Image3.jpg
│ ├── image4.png
│ ├── image5.png
│ ├── image6.png
│ └── image7.png
├── README.md
├── age_cal_prac.py
└── requirements.txt
├── Alarm Clock
├── Readme.md
├── alarm.mp3
├── alarm.py
├── images
│ └── img-1.png
└── requirements.txt
├── Assets
├── Navy & Yellow Modern Business Facebook Cover.png
├── Screenshot 2022-12-02 190456.png
├── play with python (1).png
└── play with python.png
├── Audio Book
├── Images
│ ├── Audio_Book.mov
│ └── gui.png
├── README.md
├── main.py
└── requirments.txt
├── Automatic Email Sender
├── Images
│ └── image-1.png
├── main.py
├── readme.md
└── requirements.txt
├── Binary Calculator App
├── Images
│ ├── binary_calculator_app1.png
│ ├── binary_calculator_app2.png
│ └── binary_calculator_app3.png
├── README.md
├── main.py
└── requirements.txt
├── BlackJack
├── Images
│ ├── Screenshot 2022-12-05 124013.png
│ ├── Screenshot 2022-12-05 124116.png
│ ├── Screenshot 2022-12-05 124145.png
│ └── Screenshot 2022-12-05 124216.png
├── README.md
└── main.py
├── Bookmark Exporter
├── bookmark_exporter.py
├── images
│ ├── final output file generation confirmed..png
│ ├── generated output file .png
│ ├── input.png
│ └── output1 selector.png
├── readme.md
└── requirements.md
├── CONTRIBUTING.md
├── CSV to JSON Converter
├── images
│ ├── gui1.png
│ ├── gui2.png
│ ├── sample csv file.png
│ └── sample json output.png
├── main.py
├── readme.md
└── requirements.txt
├── Calculator
├── Images
│ ├── Screenshot 2022-12-10 202911.jpg
│ ├── Screenshot 2022-12-10 203649.jpg
│ └── Screenshot 2022-12-10 203719.jpg
├── README.md
└── calc.py
├── Code_of_conduct.md
├── Connect 4 Game
├── README.md
├── connect4.py
└── images
│ ├── image.jpg
│ ├── image2.jpg
│ ├── image3.jpg
│ └── image4.jpg
├── Covid Tracker App
├── .gitignore
├── LICENSE
├── README.md
├── api.py
├── assets
│ └── img
│ │ ├── blood.png
│ │ ├── covid.png
│ │ ├── dwoc.png
│ │ ├── giphy.gif
│ │ ├── location.png
│ │ └── update.png
├── components
│ ├── main.kv
│ ├── screen1.kv
│ ├── screen1.py
│ ├── screen2.kv
│ └── screen2.py
├── main.py
└── requirements.txt
├── Currency Converter
├── Images
│ ├── Input.png
│ └── Output.png
├── README.md
└── currencyconverter.py
├── Dice with Death
├── Images
│ ├── computer_wins_case.png
│ ├── first_screen.png
│ ├── home_screen.png
│ ├── player_wins_case.png
│ ├── playing_area.png
│ └── tie_case.png
├── README.md
└── main.pyw
├── Digital clock
├── Images
│ ├── Image1.png
│ └── Image2.png
├── main.py
├── readme.md
└── requirements.txt
├── Fidget Game
├── Images
│ ├── Screenshot 2022-12-09 225435.jpg
│ └── Screenshot 2022-12-09 225511.jpg
├── README.md
├── fidget.py
└── requirements.txt
├── Flappy Bird
├── Images
│ ├── Screenshot (377).png
│ ├── WhatsApp Image 2022-11-08 at 9.45.59 PM.jpeg
│ ├── WhatsApp Image 2022-11-08 at 9.46.00 PM.jpeg
│ ├── base.png
│ ├── bg.png
│ ├── bird1.png
│ ├── bird2.png
│ ├── bird3.png
│ └── pipe.png
├── README.md
├── main.py
└── requirements.txt
├── Gamble Game
├── Images
│ ├── Screenshot 2022-12-06 195514.jpg
│ └── Screenshot 2022-12-06 195838.jpg
├── README.md
└── main.py
├── Google Search Automation
├── images
│ └── search gui.png
├── main.py
├── readme.md
└── requirements.txt
├── Guess the Number Game
├── Images
│ ├── Image1.png
│ └── image2.png
├── README.md
└── guess_number.py
├── Hacking Mini Game
├── Images
│ ├── img1.png
│ └── img2.png
├── README.md
└── hackingMiniGame.py
├── Hangman
├── README.md
├── hangman.py
├── images
│ ├── Screenshot 2022-12-05 at 7.05.22 PM.png
│ ├── Screenshot 2022-12-05 at 7.11.06 PM.png
│ ├── Screenshot 2022-12-05 at 7.11.24 PM.png
│ ├── Screenshot 2022-12-05 at 7.11.43 PM.png
│ └── Screenshot 2022-12-05 at 7.12.43 PM.png
└── words.txt
├── Haunted House
├── Readme.md
├── demo_image.png
├── haunted_house.py
└── requirements.txt
├── Image Compressor App
├── images
│ ├── Compressed_parrot.jpeg
│ └── parrot.jpeg
├── main.py
├── readme.md
└── requirements.txt
├── Image Grayscalling
├── Images
│ ├── Image2.jpg
│ ├── Image3.jpg
│ ├── Image4.jpg
│ ├── Image5.jpg
│ ├── Image6.png
│ └── image1.jpg
├── README.md
└── image_grayscale.py
├── Image Watermark Generator
├── README.md
├── images
│ ├── cmd.png
│ ├── generatedImage.png
│ ├── gui.png
│ ├── res.png
│ └── selectedImage.png
├── lion.jpg
├── lion_watermarked.jpg
├── result
│ └── watermark.jpg
├── watermarkGenerator.py
└── watermarkGeneratorGUI.py
├── Img To PDF
├── Images
│ ├── cmdexample.jpeg
│ ├── file 0.pdf
│ └── tk 18-12-2022 17_38_46.png
├── README.md
└── imgtopdf.py
├── LICENSE
├── Mario Game
├── README.md
├── images
│ ├── bricks.png
│ ├── cactus.png
│ ├── cactus_bricks.png
│ ├── dragon.png
│ ├── end.png
│ ├── fire.png
│ ├── fire_bricks.png
│ ├── fireball.png
│ ├── maryo.png
│ └── start.png
├── mario.py
├── mario_dies.wav
└── mario_theme.wav
├── MazeGame
├── README.md
├── __pycache__
│ ├── disjointSet.cpython-310.pyc
│ ├── disjointSet.cpython-39.pyc
│ └── maze.cpython-39.pyc
├── disjointSet.py
├── maze.py
├── mazes
│ ├── 10by10_maze.txt
│ ├── 10by10_portals.txt
│ ├── 5by5_maze.txt
│ └── 5by5_portals.txt
├── pymaze.py
└── res
│ ├── demo_block.png
│ ├── demo_game.gif
│ └── demo_solve.gif
├── Minesweeper
├── README.md
├── images
│ ├── README.md
│ └── demonstration.png
├── main.py
└── requirements.txt
├── Morse Code Converter
├── README.md
├── images
│ ├── Screenshot 2022-12-31 at 12.25.44 PM.png
│ └── Screenshot 2022-12-31 at 12.26.35 PM.png
├── main.py
├── morse.py
├── morse2text.json
└── text2morse.json
├── Music Player App
├── Music Player App.py
├── README.md
└── image
│ └── Screenshot 2023-01-06 at 5.56.02 PM.png
├── PDF Merger App
├── images
│ ├── merged.png
│ ├── pdf1.png
│ ├── pdf2.png
│ ├── pic 1.png
│ ├── pic 2.png
│ ├── pic 3.png
│ ├── pic 4.png
│ └── pic 5.png
├── main.py
├── readme.md
└── requirements.txt
├── PDF to Text Converter
├── Images
│ ├── 2022-12-20.png
│ ├── pdf to text 1.png
│ ├── pdf to text2.png
│ └── pdf to text3.png
├── main.py
├── readme.md
└── requirements.txt
├── Password Generator
├── README.md
├── images
│ ├── cmd.png
│ ├── gui.png
│ └── gui2.png
├── passwordGenerator.py
└── passwordGeneratorGUI.py
├── Pdf Downloader
├── README.md
├── image
│ ├── Output.png
│ ├── img-01.png
│ ├── img-02.png
│ └── logo.png
├── pdf_downloader.py
└── requirements.txt
├── Pomodoro App
├── Images
│ ├── Screenshot 2022-12-17 204728.jpg
│ └── pomodoro.gif
├── README.md
├── index.py
└── resources
│ └── tomato.png
├── Pong Game
├── Images
│ ├── Screenshot 2022-12-08 at 7.51.46 AM.png
│ └── Screenshot 2022-12-08 at 7.56.42 AM.png
├── README.md
└── pong.py
├── QR Code Generator
├── Images
│ └── Image-1.png
├── main.py
├── readme.md
└── requirements.txt
├── Quiz Game
├── README.md
├── __pycache__
│ ├── data.cpython-311.pyc
│ ├── question_model.cpython-311.pyc
│ ├── quiz_brain.cpython-311.pyc
│ └── ui.cpython-311.pyc
├── data.py
├── images
│ ├── Screenshot 2022-12-24 202043.jpg
│ ├── Screenshot 2022-12-24 202126.jpg
│ ├── Screenshot 2022-12-24 202149.jpg
│ └── quizzler.gif
├── main.py
├── question_model.py
├── quiz_brain.py
├── resources
│ ├── false.png
│ └── true.png
└── ui.py
├── Quote Generator
├── Images
│ ├── Screenshot 2022-12-10 104047.jpg
│ ├── Screenshot 2022-12-10 104128.jpg
│ └── Screenshot 2022-12-10 104247.jpg
├── README.md
├── main.py
└── requirements.txt
├── README.md
├── Random Name Generator
├── images
│ ├── female name.png
│ ├── male name.png
│ ├── name gui.png
│ └── readme.txt
├── main.py
├── readme.md
└── requirements.txt
├── Rock Paper Scissors
├── Images
│ ├── Tie.jpg
│ ├── computerWins.jpg
│ ├── firstScreen.jpg
│ └── playerWins.jpg
├── README.md
├── main.py
├── requirements.txt
└── tempCodeRunnerFile.py
├── Screen Recorder
├── Images
│ └── image1.jpeg
├── main.py
├── readme.md
└── requirements.txt
├── Simon Says
├── Images
│ ├── Python Turtle Graphics 10-12-2022 00_18_49.png
│ └── demonstration.mp4
├── README.md
└── simonsays.py
├── Snake Game
├── README.md
├── resources
│ ├── apple.jpg
│ ├── background.jpg
│ ├── bg_music_1.mp3
│ ├── block.jpg
│ ├── crash.mp3
│ └── ding.mp3
├── screenshots
│ ├── Screenshot 2022-12-07 at 3.26.27 PM.png
│ └── Screenshot 2022-12-07 at 3.28.03 PM.png
└── snake.py
├── Space Invaders Game
├── Images
│ ├── Screenshot 2022-12-09 at 1.05.38 PM.png
│ └── Screenshot 2022-12-09 at 1.09.39 PM.png
├── README.md
├── resources
│ ├── background-black.png
│ ├── pixel_laser_blue.png
│ ├── pixel_laser_green.png
│ ├── pixel_laser_red.png
│ ├── pixel_laser_yellow.png
│ ├── pixel_ship_blue_small.png
│ ├── pixel_ship_green_small.png
│ ├── pixel_ship_red_small.png
│ └── pixel_ship_yellow.png
└── space invader.py
├── Speech to Text App
├── images
│ ├── readme.txt
│ ├── speech to text 1.png
│ └── speech to text 2.png
├── main.py
├── readme.md
└── requirements.txt
├── Spelling Corrector App
├── README.md
├── images
│ ├── app.png
│ ├── app_correct.png
│ ├── app_no_input.png
│ └── app_start.png
├── requirements.txt
└── spellingCorrector.py
├── Stack tower
├── Images
│ ├── Screenshot 2022-12-07 181126.png
│ ├── Screenshot 2022-12-07 181226.png
│ ├── Untitled video - Made with Clipchamp (1).gif
│ └── game.png
├── README.md
├── main.py
└── requirements.txt
├── Stopwatch
├── images
│ ├── stopwatch1.png
│ └── stopwatch2.png
├── main.py
├── readme.md
└── requirements.txt
├── Sudoku Game
├── README.md
├── images
│ ├── Capture.PNG
│ └── Filled Grid.PNG
├── main.py
└── requirements.txt
├── TODO App
├── images
│ ├── 2022-12-17 (1).png
│ └── todo ui.png
├── main.py
├── readme.md
└── requirements.txt
├── Tetris
├── Images
│ ├── Capture1.PNG
│ ├── Screenshot 2022-12-08 201836.jpg
│ └── Screenshot 2022-12-09 090423.jpg
├── README.md
├── main.py
└── requirements.txt
├── Text Extractor
├── images
│ ├── pic1.png
│ ├── pic2.png
│ └── pic3.png
├── main.py
├── readme.md
└── requirements.txt
├── Text_Utility
├── 1.png
├── 2.png
├── 3.png
├── 4.png
├── README.md
├── file.txt
└── gui.py
├── Tic Tac Toe
├── Images
│ ├── Image1.PNG
│ ├── Image2.PNG
│ └── Image3.PNG
├── README.md
├── main.py
└── requirements.txt
├── Tiles Puzzle
├── README.md
├── __pycache__
│ ├── settings.cpython-37.pyc
│ └── sprite.cpython-37.pyc
├── high_score.txt
├── main.py
├── settings.py
└── sprite.py
├── Turtle Crossing Game
├── Images
│ ├── Screenshot 2022-12-26 142605.jpg
│ ├── Screenshot 2022-12-26 142626.jpg
│ └── Screenshot 2022-12-26 142656.jpg
├── README.md
├── __pycache__
│ ├── car_manager.cpython-311.pyc
│ ├── player.cpython-311.pyc
│ └── scoreboard.cpython-311.pyc
├── car_manager.py
├── main.py
├── player.py
├── requirements.txt
├── scoreboard.py
└── turtle_crossing.gif
├── URL Shortener
├── README.md
├── images
│ ├── gui.png
│ └── gui2.png
├── requirements.txt
└── urlShortenerGUI.py
├── Weather App
├── images
│ ├── clear sky.png
│ ├── haze.png
│ ├── heavy rain.png
│ ├── partly cloudy.png
│ ├── scattered clouds.png
│ └── windy.png
├── main.py
├── readme.md
└── requirements.txt
├── Weight Converter
├── images
│ ├── weight converter1.png
│ └── weight converter2.png
├── main.py
├── readme.md
└── requirements.txt
├── WiFi Password Saver App
├── README.md
├── images
│ ├── wifi_password_saver1.PNG
│ └── wifi_password_saver2.PNG
├── main.py
├── popup.py
└── requirements.txt
├── Wikipedia Clone
├── Images
│ └── Wikipedia Clone - Google Chrome 11-12-2022 18_18_50.png
├── README.md
└── WikiClone
│ ├── WikiClone
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-310.pyc
│ │ ├── settings.cpython-310.pyc
│ │ ├── urls.cpython-310.pyc
│ │ └── wsgi.cpython-310.pyc
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
│ ├── main
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-310.pyc
│ │ ├── admin.cpython-310.pyc
│ │ ├── apps.cpython-310.pyc
│ │ ├── models.cpython-310.pyc
│ │ ├── urls.cpython-310.pyc
│ │ └── views.cpython-310.pyc
│ ├── admin.py
│ ├── apps.py
│ ├── migrations
│ │ ├── __init__.py
│ │ └── __pycache__
│ │ │ └── __init__.cpython-310.pyc
│ ├── models.py
│ ├── templates
│ │ └── main
│ │ │ └── index.html
│ ├── tests.py
│ ├── urls.py
│ └── views.py
│ ├── manage.py
│ └── pyvenv.cfg
├── YouTube Video Downloader
├── README.md
├── images
│ ├── app.png
│ ├── detailsFilled.png
│ ├── downloadSuccess.png
│ └── lionRoarVideo.png
└── youtubeDownloaderGUI.py
├── cartoonify_image
├── cartoonify_image.py
├── demo
│ ├── demo_image.png
│ └── demo_image_2.png
├── readme.md
└── requirements.txt
└── news_app
├── images
├── image1.png
└── image2.png
├── news_app.py
├── readme.md
└── requirements.txt
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: ['abhisheks008']
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
14 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/proposing-new-project.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Proposing new project
3 | about: Propose a new issue for Play With Python repository.
4 | title: ''
5 | labels: Up for Grabs
6 | assignees: ''
7 |
8 | ---
9 |
10 | ### Play With Python Repository (Proposing new issue)
11 | :red_circle: **Project Title** :
12 | :red_circle: **Aim** :
13 |
14 | **********************************************************************************
15 | :red_circle::yellow_circle: **Points to Note :**
16 |
17 | - The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
18 | - "Issue Title" and "PR Title should be the same. Include issue number along with it.
19 | - Follow Contributing Guidelines & Code of Conduct before start Contributing.
20 |
21 | ***********************************************************************
22 | :white_check_mark: **To be Mentioned while taking the issue :**
23 | - Full name :
24 | - GitHub Profile Link :
25 | - Email ID :
26 | - Participant ID (if applicable):
27 | - Approach for this Project :
28 | - What is your participant role? (Mention the Open Source program)
29 |
30 | *************************************************************
31 | Happy Contributing 🚀
32 |
33 | All the best. Enjoy your open source journey ahead. 😎
34 |
--------------------------------------------------------------------------------
/.github/WORKFLOWS/Auto_message_on_pr_merge.yml:
--------------------------------------------------------------------------------
1 | name: Auto message on Pr merge
2 |
3 | on:
4 | pull_request_target:
5 | types: [merged]
6 |
7 | jobs:
8 | auto-response:
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - uses: derekprior/add-autoresponse@master
13 | env:
14 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 | with:
16 | respondableId: ${{ github.event.pull_request.node_id }}
17 | response: "Yeeee!! Your PR is approved and merged to this repository!! 🎉 Thank you @${{ github.event.pull_request.user.login }} for taking out your valuable time in order to contribute to our project. Looking forward for more such amazing contributions ❤️🔥"
18 | author: ${{ github.event.pull_request.user.login }}
19 | exemptedAuthors: "abhisheks008"
20 |
--------------------------------------------------------------------------------
/.github/WORKFLOWS/Auto_message_on_pr_open.yml:
--------------------------------------------------------------------------------
1 | name: Auto message on PR opened
2 |
3 | on:
4 | pull_request_target:
5 | types: [opened]
6 |
7 | jobs:
8 | auto-response:
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - uses: derekprior/add-autoresponse@master
13 | env:
14 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 | with:
16 | respondableId: ${{ github.event.pull_request.node_id }}
17 | response: "Our team will soon review your PR. Thanks @${{ github.event.pull_request.user.login }} :)"
18 | author: ${{ github.event.pull_request.user.login }}
19 | exemptedAuthors: "abhisheks008"
20 |
--------------------------------------------------------------------------------
/.github/readme_template.md:
--------------------------------------------------------------------------------
1 | **GAME TITLE**
2 |
3 | **GOAL**
4 |
5 | Write the main goal of project and what's the purpose of it.
6 |
7 |
8 | **DESCRIPTION**
9 |
10 | Brief description about the project.
11 |
12 | **WHAT I HAD DONE**
13 |
14 | Write down the step by step procedure of how project works using points.
15 |
16 |
17 | **LIBRARIES NEEDED**
18 |
19 | Add all the libraries needed in this project in points.
20 |
21 | **DEMONSTRATION**
22 |
23 | Demonstrate your games using snapshots/videos/GIFs. If you upload a video in YouTube you can add a link here, so that everyone can understand how to play the game.
24 |
25 |
26 | **YOUR NAME**
27 |
28 | Add your name at the end of the file, along with social media handles if applicable!
29 |
--------------------------------------------------------------------------------
/2048 Game/Images/Screenshot (369).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/2048 Game/Images/Screenshot (369).png
--------------------------------------------------------------------------------
/2048 Game/Images/Screenshot (371).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/2048 Game/Images/Screenshot (371).png
--------------------------------------------------------------------------------
/2048 Game/Images/Screenshot (373).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/2048 Game/Images/Screenshot (373).png
--------------------------------------------------------------------------------
/2048 Game/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | 1) Tkinter Library (GUI) = version 8.5
4 |
--------------------------------------------------------------------------------
/Age Calculator/Images/Image1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Age Calculator/Images/Image1.jpg
--------------------------------------------------------------------------------
/Age Calculator/Images/Image2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Age Calculator/Images/Image2.jpg
--------------------------------------------------------------------------------
/Age Calculator/Images/Image3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Age Calculator/Images/Image3.jpg
--------------------------------------------------------------------------------
/Age Calculator/Images/image4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Age Calculator/Images/image4.png
--------------------------------------------------------------------------------
/Age Calculator/Images/image5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Age Calculator/Images/image5.png
--------------------------------------------------------------------------------
/Age Calculator/Images/image6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Age Calculator/Images/image6.png
--------------------------------------------------------------------------------
/Age Calculator/Images/image7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Age Calculator/Images/image7.png
--------------------------------------------------------------------------------
/Age Calculator/README.md:
--------------------------------------------------------------------------------
1 | ### AGE CALCULATOR
2 |
3 | ### GOAL
4 |
5 | The goal of this project is to make a Age Calculator app.
6 |
7 | ### DESCRIPTION
8 |
9 | I have mage this app using thinkter library. It can calculate your age as per the dates provided.
10 |
11 | ### WHAT I HAD DONE
12 |
13 | 1. Import Libraries - thinkter, messagebox and initialize it.
14 | 2. Defined a Clear function which clears all the data.
15 | 3. Defined CheckEntries function to check for a blank input.
16 | 4. Defined calculateAge functon to calculate the age as per the input provided.
17 | 5. Created labels, buttons and took inputs through built-in functions.
18 | 6. Used different fonts, and colour mode to make it attractive for GUI.
19 |
20 | ### LIBRARIES NEEDED
21 |
22 | 1. Thinkter: Provides built-in functions to create GUI.
23 | 2. Messagebox: It comes under thinkter library and it is used to create buttons.
24 |
25 | ### DEMONSTRATION
26 |
27 | 1. Image1 - First image shows the app preview.
28 | 
29 |
30 | 2. Image2 - The user enter its date of birth and the age of the date to be calculated.
31 | 
32 |
33 | 3. Image3 - It displays the calculated age.
34 | 
35 |
36 | 4. Image4 - It shows the error message if the user enters a wrong month.
37 | 
38 |
39 | 5. Image5 - It shows the error message if the user enters a wrong date.
40 | 
41 |
42 | 6. Image6 - It shows the error message if the user enters a wrong year.
43 | 
44 |
45 | 7. Image7 - It shows the error message if the user gives a blank input.
46 | 
47 |
48 |
49 | ### YOUR NAME
50 |
51 | ### Abhay Chauhan
52 | ### Srihari S
--------------------------------------------------------------------------------
/Age Calculator/requirements.txt:
--------------------------------------------------------------------------------
1 | 1. Thinkter.
2 | 2. Messagebox from Thinkter.
--------------------------------------------------------------------------------
/Alarm Clock/Readme.md:
--------------------------------------------------------------------------------
1 | **Alarm Clock**
2 |
3 | **GOAL**
4 |
5 | The aim of this program is to set the alarm at a specific time(24Hrs format). When the time hits it will play sound.
6 |
7 | **DESCRIPTION**
8 |
9 | Set time in the app and click on set alarm. You can exit the app using exit button. Using TIME we are importing system time. Using playsound we will play the alarm sound. And using Tkinter we have created the GUI.
10 |
11 | **LIBRARIES NEEDED**
12 |
13 | - time
14 | - playsound
15 | - datetime
16 | - Tkinter
17 |
18 | **HOW TO RUN**
19 | - from the terminal line run cmd
python3 alarm.py
20 |
21 | **DEMONSTRATION**
22 |
23 |
24 |
25 | **YOUR NAME**
26 |
27 | Govind Kushwaha
28 |
--------------------------------------------------------------------------------
/Alarm Clock/alarm.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Alarm Clock/alarm.mp3
--------------------------------------------------------------------------------
/Alarm Clock/images/img-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Alarm Clock/images/img-1.png
--------------------------------------------------------------------------------
/Alarm Clock/requirements.txt:
--------------------------------------------------------------------------------
1 | ## LIBRARIES NEEDED
2 |
3 | import datetime
4 | import time
5 | from tkinter import *
6 | from playsound import playsound
--------------------------------------------------------------------------------
/Assets/Navy & Yellow Modern Business Facebook Cover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Assets/Navy & Yellow Modern Business Facebook Cover.png
--------------------------------------------------------------------------------
/Assets/Screenshot 2022-12-02 190456.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Assets/Screenshot 2022-12-02 190456.png
--------------------------------------------------------------------------------
/Assets/play with python (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Assets/play with python (1).png
--------------------------------------------------------------------------------
/Assets/play with python.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Assets/play with python.png
--------------------------------------------------------------------------------
/Audio Book/Images/Audio_Book.mov:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Audio Book/Images/Audio_Book.mov
--------------------------------------------------------------------------------
/Audio Book/Images/gui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Audio Book/Images/gui.png
--------------------------------------------------------------------------------
/Audio Book/README.md:
--------------------------------------------------------------------------------
1 | # AUDIO BOOK
2 |
3 |
4 | # GOAL
5 |
6 | This is an Audio book program written in python. It converts pdf file to audio books, by extracting all text in the pdf file and converting it into speech.
7 |
8 | # DESCRIPTION
9 |
10 | This is a python Audio book.
11 | The program extract all texts from the pdf file and convert it into speech.
12 |
13 | ## How to use:
14 | + Run the program
15 | + Click on Browse and select any pdf file(which have extractalbe text)
16 | + Enter the page number you want to start from in the page Entry
17 | + Click on start to start the Audio book
18 | + When your done listening click on stop to stop the Audio Book
19 | + Close the window
20 |
21 | # WHAT I HAD DONE
22 |
23 | The program is written in python.
24 | It uses PyPDF2 to extract text from the pdf and then uses pyttsx3 to convert it into speech.It also tkinter for GUI and uses threading to run the function in an other thread to avoid freezing the GUI when the function runs.
25 |
26 | # LIBRARIES NEEDED
27 | + Tkinter
28 | + pyttsx3
29 | + PyPDF2
30 | + Threading
31 |
32 | # DEMONSTRATION
33 | 
34 |
35 |
36 |
37 | https://user-images.githubusercontent.com/82754813/210595903-f70b9dae-13db-4cae-9685-9c8ffbac9dba.mp4
38 |
39 |
40 |
41 |
42 | Mathew
43 |
--------------------------------------------------------------------------------
/Audio Book/requirments.txt:
--------------------------------------------------------------------------------
1 | The required libraries are:
2 | Tkinter
3 | pyttsx3
4 | PyPDF2
5 | threading
--------------------------------------------------------------------------------
/Automatic Email Sender/Images/image-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Automatic Email Sender/Images/image-1.png
--------------------------------------------------------------------------------
/Automatic Email Sender/main.py:
--------------------------------------------------------------------------------
1 | import smtplib
2 | import ssl
3 | from email.message import EmailMessage
4 |
5 | email_sender = 'write-your-email-@gmail.com'
6 | email_password = 'write-password-here'
7 |
8 | # List of email addresses
9 | email_receivers = ['example-1@gmail.com', 'example-2@gmail.com']
10 |
11 | subject = 'Check out my Project'
12 | body = """
13 | This is demo of automated email sender,
14 | Hope you like this
15 | """
16 |
17 | em = EmailMessage()
18 | em['From'] = email_sender
19 | em['To'] = ', '.join(email_receivers)
20 | em['Subject'] = subject
21 | em.set_content(body)
22 |
23 | context = ssl.create_default_context()
24 |
25 | with smtplib.SMTP_SSL('smtp.gmail.com', 465, context=context) as smtp:
26 | smtp.login(email_sender, email_password)
27 | smtp.sendmail(email_sender, email_receivers, em.as_string())
28 |
--------------------------------------------------------------------------------
/Automatic Email Sender/readme.md:
--------------------------------------------------------------------------------
1 | **Automatic Email Sender**
2 |
3 | **GOAL**
4 | Send email in one go by clicking the run button.
5 |
6 | **DESCRIPTION**
7 | If person want to send same mail to many persons. this programme can help it.
8 |
9 | **WHAT I HAD DONE**
10 |
11 | 1. set 2-step verifiaction
12 | 2. import some files like smtpib, ssl, EmailMessage
13 | 3. set Sender and recieve, subject.
14 | 4. send EmailMessage()
15 |
16 | **LIBRARIES NEEDED**
17 |
18 | smtpib, ssl, EmailMessage
19 |
20 | **DEMONSTRATION**
21 |
22 | 
23 |
24 | **YOUR NAME**
25 |
26 | Nikunj Rohit
27 | Twitter: @nikunj_rohit10
--------------------------------------------------------------------------------
/Automatic Email Sender/requirements.txt:
--------------------------------------------------------------------------------
1 | 1. Turn On 2-Step Verification
2 | 2. save 16 alfabet password
3 | 3. Send Email with Python code
4 | 4. Log in and send the email
5 |
--------------------------------------------------------------------------------
/Binary Calculator App/Images/binary_calculator_app1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Binary Calculator App/Images/binary_calculator_app1.png
--------------------------------------------------------------------------------
/Binary Calculator App/Images/binary_calculator_app2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Binary Calculator App/Images/binary_calculator_app2.png
--------------------------------------------------------------------------------
/Binary Calculator App/Images/binary_calculator_app3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Binary Calculator App/Images/binary_calculator_app3.png
--------------------------------------------------------------------------------
/Binary Calculator App/README.md:
--------------------------------------------------------------------------------
1 | **Binary Calculator App**
2 |
3 | **GOAL**
4 | Convert Decimal to Binary
5 |
6 | **DESCRIPTION**
7 | Binary Calculator app converts decimal to binary and also converts binary to decimal
8 |
9 | **WHAT I HAD DONE**
10 | In this code, I implemented the code by using the following concepts:
11 | + Tkinter module
12 |
13 | **DEMONSTRATION**
14 |
15 | 
16 | 
17 | 
18 |
19 | ### Keyvan Majidi ###
20 | [https://github.com/keyvanmj]
21 |
--------------------------------------------------------------------------------
/Binary Calculator App/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 | tkinter
--------------------------------------------------------------------------------
/BlackJack/Images/Screenshot 2022-12-05 124013.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/BlackJack/Images/Screenshot 2022-12-05 124013.png
--------------------------------------------------------------------------------
/BlackJack/Images/Screenshot 2022-12-05 124116.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/BlackJack/Images/Screenshot 2022-12-05 124116.png
--------------------------------------------------------------------------------
/BlackJack/Images/Screenshot 2022-12-05 124145.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/BlackJack/Images/Screenshot 2022-12-05 124145.png
--------------------------------------------------------------------------------
/BlackJack/Images/Screenshot 2022-12-05 124216.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/BlackJack/Images/Screenshot 2022-12-05 124216.png
--------------------------------------------------------------------------------
/BlackJack/README.md:
--------------------------------------------------------------------------------
1 | **BLACK JACK**
2 |
3 | **GOAL**
4 | The sum of your cards should be greater than the sum of the dealers cards.
5 | Also sum of the cards cannot go above 21 and if the sum is 21 it is called Blackjack.
6 | Blackjack always wins.
7 |
8 | **DESCRIPTION**
9 | BlackJack is a famous casino game , and this is a simplified version of the real game(which involves bidding and various other stuff).
10 | All players play againt the dealer of the cards.
11 | All the cards have fixed values associated to them and the main objective of the game is
12 | to get the score as high as possible but less than or equal to 21.
13 | It is a fun short game.
14 |
15 | **WHAT I HAD DONE**
16 | First I decided the Game Design:
17 | It had to be played on the terminal
18 | I wrote a function to print out a card to the terminal.
19 |
20 | Then I went into the logic part:
21 | I defined a class of cards and formed a Deck as the array of cards.
22 | Then I wrote the main Game Logic:
23 | Cards are given using random function,
24 | Player can choose to Hit or Stand,
25 | Players and dealers cards and values are shown on the screen.
26 | **DEMONSTRATION**
27 | 
28 | 
29 | 
30 | 
31 |
32 | **SIDDHANT JETHWANI**
33 |
--------------------------------------------------------------------------------
/Bookmark Exporter/images/final output file generation confirmed..png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Bookmark Exporter/images/final output file generation confirmed..png
--------------------------------------------------------------------------------
/Bookmark Exporter/images/generated output file .png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Bookmark Exporter/images/generated output file .png
--------------------------------------------------------------------------------
/Bookmark Exporter/images/input.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Bookmark Exporter/images/input.png
--------------------------------------------------------------------------------
/Bookmark Exporter/images/output1 selector.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Bookmark Exporter/images/output1 selector.png
--------------------------------------------------------------------------------
/Bookmark Exporter/requirements.md:
--------------------------------------------------------------------------------
1 | ## This tool needs following libraries.
2 |
3 | - os
4 | - platform
5 | - subprocess
6 | - tkinter
7 | - beautifulsoup4==4.9.3
8 | - lxml==4.6.3
9 | - pandoc==2.14.2
10 |
11 |
12 | ### The first three libraries (os, platform, and subprocess) are built-in Python libraries and do not require installation.
13 |
14 | ### You can install the third-party libraries (beautifulsoup4, lxml, and pandoc) by running the following command:
15 | - _pip install beautifulsoup4==4.9.3 lxml==4.6.3 pandoc==2.14.2_
16 |
--------------------------------------------------------------------------------
/CSV to JSON Converter/images/gui1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/CSV to JSON Converter/images/gui1.png
--------------------------------------------------------------------------------
/CSV to JSON Converter/images/gui2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/CSV to JSON Converter/images/gui2.png
--------------------------------------------------------------------------------
/CSV to JSON Converter/images/sample csv file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/CSV to JSON Converter/images/sample csv file.png
--------------------------------------------------------------------------------
/CSV to JSON Converter/images/sample json output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/CSV to JSON Converter/images/sample json output.png
--------------------------------------------------------------------------------
/CSV to JSON Converter/main.py:
--------------------------------------------------------------------------------
1 | from tkinter import *
2 | from tkinter import filedialog
3 | import csv
4 | import json
5 |
6 | root = Tk()
7 | root.title("CSV to JSON Converter")
8 | root.geometry('500x500')
9 |
10 | def selectCSV():
11 | data = []
12 | csv_file_path = filedialog.askopenfilename()
13 | # Ask user for the name to save the file as
14 | userfilename = filedialog.asksaveasfilename()
15 | with open(csv_file_path, encoding='utf-8') as csvfile:
16 | csvReader = csv.DictReader(csvfile)
17 | for rows in csvReader:
18 | data.append(rows)
19 | with open(userfilename, 'w', encoding='utf-8') as jsonfile:
20 |
21 | jsonfile.write(json.dumps(data,indent=4))
22 |
23 | status["text"] = "Finished"
24 |
25 | title_label = Label(root, text = "CSV to JSON Converter",font=("Arial", 18) )
26 | title_label.pack()
27 |
28 | button1 = Button(root, text="Select CSV file", command= selectCSV)
29 | button1.pack()
30 |
31 | status = Label(root, text = "", font=("Arial", 18))
32 | status.pack()
33 |
34 | root.mainloop()
35 |
--------------------------------------------------------------------------------
/CSV to JSON Converter/readme.md:
--------------------------------------------------------------------------------
1 | # CSV to JSON Converter
2 |
3 | **Approach**
4 | - import `tkinter`, `csv` and `json`
5 | - create a JSON_file dictionary, each representing a record (row) from the CSV file, with the Key as the column specified.
6 | - use `csv.DictReader()` to read the csv file
7 | - use `jsonfile.write()` to write the data that collected from csv file where `jsonfile` contains the .json file path with write mode
8 |
9 | **Demostration**
10 |
11 | Sample .csv file :
12 |
13 | 
14 |
15 |
16 | GUI looks like below :
17 |
18 | 
19 |
20 | 
21 |
22 |
23 | Output :
24 |
25 | 
26 |
--------------------------------------------------------------------------------
/CSV to JSON Converter/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 | csv
5 | json
6 |
--------------------------------------------------------------------------------
/Calculator/Images/Screenshot 2022-12-10 202911.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Calculator/Images/Screenshot 2022-12-10 202911.jpg
--------------------------------------------------------------------------------
/Calculator/Images/Screenshot 2022-12-10 203649.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Calculator/Images/Screenshot 2022-12-10 203649.jpg
--------------------------------------------------------------------------------
/Calculator/Images/Screenshot 2022-12-10 203719.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Calculator/Images/Screenshot 2022-12-10 203719.jpg
--------------------------------------------------------------------------------
/Calculator/README.md:
--------------------------------------------------------------------------------
1 | **CALCULATOR GUI**
2 |
3 | **GOAL**
4 | The Goal of this game is to create a Calculator App.
5 |
6 | **DESCRIPTION**
7 | I have created a Calculator app using Tkinter library for GUI.
8 |
9 | ### LIBRARIES NEEDED
10 |
11 | 1. Tkinter: Provides useful GUI functionalities.
12 |
13 | **WHAT I HAD DONE**
14 | 1) Import Libraries - tkinter and initialize it.
15 | 2) Defined a Calculator class, and defined different sections, such as total_expression, current_expression, defined digits, operators.
16 | 3) Defined various necessary methods such as add_to_expression, append_operator, and methods for various operations.
17 | 4) Created buttons and labels for printing GUI for Calculator and then styled using suitable Color Scheme.
18 |
19 | ### DEMONSTRATION
20 | https://drive.google.com/drive/folders/1q3yspUtcKb2T3ReRTwvouoFWtOiUF_Tf?usp=share_link
21 |
22 | ### Sarthak Joleya ###
23 |
--------------------------------------------------------------------------------
/Connect 4 Game/images/image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Connect 4 Game/images/image.jpg
--------------------------------------------------------------------------------
/Connect 4 Game/images/image2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Connect 4 Game/images/image2.jpg
--------------------------------------------------------------------------------
/Connect 4 Game/images/image3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Connect 4 Game/images/image3.jpg
--------------------------------------------------------------------------------
/Connect 4 Game/images/image4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Connect 4 Game/images/image4.jpg
--------------------------------------------------------------------------------
/Covid Tracker App/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 2-Clause License
2 |
3 | Copyright (c) 2023, Pooranjoy Bhattacharya
4 |
5 | Redistribution and use in source and binary forms, with or without
6 | modification, are permitted provided that the following conditions are met:
7 |
8 | 1. Redistributions of source code must retain the above copyright notice, this
9 | list of conditions and the following disclaimer.
10 |
11 | 2. Redistributions in binary form must reproduce the above copyright notice,
12 | this list of conditions and the following disclaimer in the documentation
13 | and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 |
--------------------------------------------------------------------------------
/Covid Tracker App/README.md:
--------------------------------------------------------------------------------
1 | # COVID-19 Tracker App
2 |
3 | A desktop application to track the latest COVID-19 information using Python and KivyMD, and RapidAPI for fetching information.
4 |
5 | ## This project is under DWOC'2023
6 |
7 | 
8 |
9 | ## Getting Started
10 |
11 | These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
12 |
13 | ### Prerequisites
14 |
15 | - Python 3.6 or higher
16 | - KivyMD
17 | - RapidAPI account
18 | - Python-Dotenv
19 |
20 | ### Installing
21 |
22 | Clone the repository and install the required packages.
23 |
24 | ```
25 | git clone https://github.com/pooranjoyb/Play-With-Python.git
26 | cd '.\Covid Tracker App\'
27 | pip install -r requirements.txt
28 | ```
29 |
30 |
31 | Create a `.env` file in the **'.\Covid Tracker App\'** directory and add as follows
32 | ```
33 | API_KEY=""
34 | API_HOST="covid-19-coronavirus-statistics.p.rapidapi.com"
35 | ```
36 |
37 | [Click here to get your API-KEY](https://rapidapi.com/KishCom/api/covid-19-coronavirus-statistics/)
38 |
39 | Start the app.
40 |
41 | ```
42 | python main.py
43 | ```
44 |
45 | ## Built With
46 |
47 | - [Python](https://www.python.org) - The programming language used
48 | - [KivyMD](https://kivymd.readthedocs.io/en/latest/index.html) - The GUI framework used
49 | - [RapidAPI](https://rapidapi.com) - The API platform used to fetch information
50 |
51 |
52 | ## Authors
53 |
54 | - **[Pooranjoy Bhattacharya](https://github.com/pooranjoyb)** - *Initial work*
55 |
56 |
57 | ## License
58 |
59 | This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
60 |
61 |
--------------------------------------------------------------------------------
/Covid Tracker App/api.py:
--------------------------------------------------------------------------------
1 | import os
2 | import requests
3 | from dotenv import load_dotenv
4 |
5 | load_dotenv()
6 |
7 | def getStateInfo(stateName):
8 | url = "https://covid-19-coronavirus-statistics.p.rapidapi.com/v1/stats"
9 |
10 | querystring = {"country":"India"}
11 |
12 | headers = {
13 | "X-RapidAPI-Key": os.getenv('API_KEY'),
14 | "X-RapidAPI-Host": os.getenv('API_HOST')
15 | }
16 |
17 | response = requests.request("GET", url, headers=headers, params=querystring)
18 | response = response.json()
19 | StateData = (response['data']['covid19Stats'])
20 |
21 | for my_dict in StateData:
22 | if my_dict['province'] == stateName:
23 | data = [my_dict['province'], my_dict['confirmed'], my_dict['deaths'], my_dict['lastUpdate']]
24 | return data
25 | else:
26 | return 0
--------------------------------------------------------------------------------
/Covid Tracker App/assets/img/blood.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Covid Tracker App/assets/img/blood.png
--------------------------------------------------------------------------------
/Covid Tracker App/assets/img/covid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Covid Tracker App/assets/img/covid.png
--------------------------------------------------------------------------------
/Covid Tracker App/assets/img/dwoc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Covid Tracker App/assets/img/dwoc.png
--------------------------------------------------------------------------------
/Covid Tracker App/assets/img/giphy.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Covid Tracker App/assets/img/giphy.gif
--------------------------------------------------------------------------------
/Covid Tracker App/assets/img/location.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Covid Tracker App/assets/img/location.png
--------------------------------------------------------------------------------
/Covid Tracker App/assets/img/update.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Covid Tracker App/assets/img/update.png
--------------------------------------------------------------------------------
/Covid Tracker App/components/main.kv:
--------------------------------------------------------------------------------
1 | #:kivy 1.0
2 | #: import Screen1 components.screen1.Screen1
3 | #: import Screen2 components.screen2.Screen2
4 |
5 | #:include components/screen1.kv
6 | #:include components/screen2.kv
7 |
8 | WindowManager:
9 | Screen1:
10 | Screen2:
--------------------------------------------------------------------------------
/Covid Tracker App/components/screen1.kv:
--------------------------------------------------------------------------------
1 | #:kivy 1.0
2 | :
3 | name:"screen1"
4 | MDFloatLayout:
5 | md_bg_color:1,1,1,1
6 | Image:
7 | source:"assets/img/covid.png"
8 | size_hint:.45,.45
9 | pos_hint:{"center_x": .5, "center_y": .72}
10 | MDLabel:
11 | text:"C O V I D - T R A C K E R"
12 | font_size: "23sp"
13 | pos_hint: {"center_y": .38}
14 | halign:"center"
15 | color:rgba(34, 34, 34, 255)
16 | MDLabel:
17 | text:"Get the latest details of COVID all across the world within the tip of your fingers"
18 | font_size: "16sp"
19 | size_hint_x: .85
20 | pos_hint: {"center_x":.5, "center_y": .3}
21 | halign:"center"
22 | color:rgba(127, 127, 127, 255)
23 | Button:
24 | text: "G E T S T A R T E D"
25 | size_hint: .66, .065
26 | pos_hint:{"center_x": .5,"center_y": .09}
27 | background_color:0, 0, 0, 0
28 | on_release:
29 | app.root.transition.direction="left"
30 | app.root.current="screen2"
31 | app.showData()
32 | canvas.before:
33 | Color:
34 | rgb: rgba(205, 0, 26, 255)
35 | RoundedRectangle:
36 | size: self.size
37 | pos:self.pos
38 | radius:[5]
39 |
--------------------------------------------------------------------------------
/Covid Tracker App/components/screen1.py:
--------------------------------------------------------------------------------
1 | from kivy.uix.screenmanager import Screen
2 |
3 | class Screen1(Screen):
4 | pass
--------------------------------------------------------------------------------
/Covid Tracker App/components/screen2.py:
--------------------------------------------------------------------------------
1 | from kivy.uix.screenmanager import Screen
2 |
3 | class Screen2(Screen):
4 | pass
--------------------------------------------------------------------------------
/Covid Tracker App/requirements.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Covid Tracker App/requirements.txt
--------------------------------------------------------------------------------
/Currency Converter/Images/Input.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Currency Converter/Images/Input.png
--------------------------------------------------------------------------------
/Currency Converter/Images/Output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Currency Converter/Images/Output.png
--------------------------------------------------------------------------------
/Currency Converter/README.md:
--------------------------------------------------------------------------------
1 | *Currency Converter*
2 |
3 | GOAL
4 |
5 | To convert a given amount of a certain currency to another.
6 |
7 | DESCRIPTION
8 |
9 | This project uses external api to fetch data of conversion of currencies and converts it on the command terminal.
10 |
11 | Control Keys:
12 |
13 | Input your currency, currency to be converted in and amount, it automatically outputs the result.
14 |
15 | How I Made it
16 |
17 | I used an external API to get the data for the conversion of currencies in real time. Used python classes.
18 |
19 | LIBRARIES NEEDED
20 |
21 | pip install requests
22 |
23 | DEMONSTRATION
24 |
25 |
26 | 
27 | 
28 |
29 |
30 |
31 |
32 | Pundarikaksha
33 | GITHUB: pundarikaksha7
34 | Linkedin: linkedin.com/in/pundarikaksha7
35 |
--------------------------------------------------------------------------------
/Dice with Death/Images/computer_wins_case.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Dice with Death/Images/computer_wins_case.png
--------------------------------------------------------------------------------
/Dice with Death/Images/first_screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Dice with Death/Images/first_screen.png
--------------------------------------------------------------------------------
/Dice with Death/Images/home_screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Dice with Death/Images/home_screen.png
--------------------------------------------------------------------------------
/Dice with Death/Images/player_wins_case.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Dice with Death/Images/player_wins_case.png
--------------------------------------------------------------------------------
/Dice with Death/Images/playing_area.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Dice with Death/Images/playing_area.png
--------------------------------------------------------------------------------
/Dice with Death/Images/tie_case.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Dice with Death/Images/tie_case.png
--------------------------------------------------------------------------------
/Digital clock/Images/Image1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Digital clock/Images/Image1.png
--------------------------------------------------------------------------------
/Digital clock/Images/Image2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Digital clock/Images/Image2.png
--------------------------------------------------------------------------------
/Digital clock/main.py:
--------------------------------------------------------------------------------
1 | import tkinter as tk
2 | import time
3 |
4 |
5 | # Create the main window
6 | window = tk.Tk()
7 | # window.attributes("-fullscreen", True)
8 |
9 | # Create a label to display the time
10 | time_label = tk.Label(window, font=("Helvetica", 150))
11 | time_label.pack()
12 |
13 | # Function to update the time
14 | def update_time():
15 | # Get the current time
16 | current_time = time.strftime("%I:%M:%S %p")
17 |
18 | # Update the time label
19 | time_label.configure(text=current_time)
20 |
21 | # Call this function again after one second
22 | window.after(1000, update_time)
23 |
24 | # Start the clock
25 | update_time()
26 |
27 | # Start the main loop
28 | window.mainloop()
29 |
--------------------------------------------------------------------------------
/Digital clock/readme.md:
--------------------------------------------------------------------------------
1 | **Digital clock**
2 |
3 | **GOAL**
4 |
5 | Show time in laptop
6 |
7 | **DESCRIPTION**
8 |
9 | IT is digital clock.
10 |
11 | **WHAT I HAD DONE**
12 |
13 | Write a python code fetch data from computer hardware and show on screen.
14 |
15 | **LIBRARIES NEEDED**
16 |
17 | tkinter
18 |
19 | **DEMONSTRATION**
20 | 
21 | 
22 |
23 |
24 | **YOUR NAME**
25 |
26 | Nikunj Rohit
27 | Twitter: @nikunj_rohit10
28 |
--------------------------------------------------------------------------------
/Digital clock/requirements.txt:
--------------------------------------------------------------------------------
1 | npm i tkinter
--------------------------------------------------------------------------------
/Fidget Game/Images/Screenshot 2022-12-09 225435.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Fidget Game/Images/Screenshot 2022-12-09 225435.jpg
--------------------------------------------------------------------------------
/Fidget Game/Images/Screenshot 2022-12-09 225511.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Fidget Game/Images/Screenshot 2022-12-09 225511.jpg
--------------------------------------------------------------------------------
/Fidget Game/README.md:
--------------------------------------------------------------------------------
1 | **FIDGET GAME**
2 |
3 | **GOAL**
4 | The Goal of this game is to simulate a Fidget Spinner, based on Google Theme.
5 |
6 | **DESCRIPTION**
7 | A fidget spinner is a toy that consists of a ball bearing in the center of a multi-lobed (typically two or three) flat structure made from metal or plastic designed to spin along its axis with pressure. Fidget spinner become popular among kids and adults, as a satisfying toy.
8 | Controls : It has the following controls:
9 | 1) Left and Right arrows to rotate the Spinner in direction.
10 | 2) The longer you hold down the arrow key, the higher its speed.
11 |
12 | ### LIBRARIES NEEDED
13 |
14 | 1. PyGame: Pygame is a cross-platform set of Python modules which is used to create video games. Make sure to install PyGame library before playing the game.
15 | 2. Sys: The sys module in Python provides various functions and variables that are used to manipulate different parts of the Python runtime environment.
16 | 3. Math: Provides useful math function for simplifying equations and calculations.
17 |
18 | **WHAT I HAD DONE**
19 | 1) Import Libraries - pygame and initialize it.
20 | 2) Created Necessary Variables like background color, line width, etc. Also generated screen.
21 | 3) Created show_spinner, which contains rotation logic, using trig methods from math package to determine positions of arms based on angle provided.
22 | 4) Drawn various Shapes for printing Fidget Spinner on screen, using pygame.draw
23 | 5) Created a main loop to integrate all functions together, declared important parameters such as speed, friction. Defined controls to change direction of spinner and regulated respective parameters to make sure spinner work as prescibed.
24 |
25 | ### DEMONSTRATION
26 | https://drive.google.com/drive/folders/1qiM64AFmTvwf7YsCwb1x6F6UallacPvw?usp=share_link
27 |
28 | ### Sarthak Joleya ###
29 |
--------------------------------------------------------------------------------
/Fidget Game/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | pygame - 2.1.2
4 |
--------------------------------------------------------------------------------
/Flappy Bird/Images/Screenshot (377).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Flappy Bird/Images/Screenshot (377).png
--------------------------------------------------------------------------------
/Flappy Bird/Images/WhatsApp Image 2022-11-08 at 9.45.59 PM.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Flappy Bird/Images/WhatsApp Image 2022-11-08 at 9.45.59 PM.jpeg
--------------------------------------------------------------------------------
/Flappy Bird/Images/WhatsApp Image 2022-11-08 at 9.46.00 PM.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Flappy Bird/Images/WhatsApp Image 2022-11-08 at 9.46.00 PM.jpeg
--------------------------------------------------------------------------------
/Flappy Bird/Images/base.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Flappy Bird/Images/base.png
--------------------------------------------------------------------------------
/Flappy Bird/Images/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Flappy Bird/Images/bg.png
--------------------------------------------------------------------------------
/Flappy Bird/Images/bird1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Flappy Bird/Images/bird1.png
--------------------------------------------------------------------------------
/Flappy Bird/Images/bird2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Flappy Bird/Images/bird2.png
--------------------------------------------------------------------------------
/Flappy Bird/Images/bird3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Flappy Bird/Images/bird3.png
--------------------------------------------------------------------------------
/Flappy Bird/Images/pipe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Flappy Bird/Images/pipe.png
--------------------------------------------------------------------------------
/Flappy Bird/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | pygame - 2.1.2
4 |
--------------------------------------------------------------------------------
/Gamble Game/Images/Screenshot 2022-12-06 195514.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Gamble Game/Images/Screenshot 2022-12-06 195514.jpg
--------------------------------------------------------------------------------
/Gamble Game/Images/Screenshot 2022-12-06 195838.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Gamble Game/Images/Screenshot 2022-12-06 195838.jpg
--------------------------------------------------------------------------------
/Gamble Game/README.md:
--------------------------------------------------------------------------------
1 | **SIMPLE GAMBLING GAME**
2 |
3 | **GOAL**
4 | The Goal of this game is to create Slot Machine type Gambling Game.
5 |
6 | **DESCRIPTION**
7 | Slot Machine is a popular gambling machine. In this, you gamble money on 'Lines'. Lines are horizontal rows with same character. If you win Lines, you gain money, otherwise you lose. Each vertical reel consist of some symbols, and each reel is independent from others.
8 |
9 | ### LIBRARIES NEEDED
10 |
11 | 1. Python Random module is an in-built module of Python which is used to generate random numbers.
12 |
13 | **WHAT I HAD DONE**
14 | 1) Import Libraries - random, for slot machine interface.
15 | 2) Ask the user for deposit. This is total money user will bet from.
16 | 3) Ask user on how many lines will he bet on and what amount does he bet on each line. More the lines, more the gain if he wins, otherwise more loss.
17 | 4) Get number of lines from "get_number_of_lines()" and "pass it to get_slot_machine_spin()" to create a random grid of symbols.
18 | 5) Check user winnings using "check_winnings()" and update user balance.
19 | 6) Repeat till user balance is zero and then call "deposit()" to update balance and continue game.
20 |
21 | ### DEMONSTRATION
22 | https://drive.google.com/drive/folders/1lE9j6FkRUjPAz5YJ40mk_mdYj_DUS6Sr?usp=share_link
23 |
24 | ### Sarthak Joleya ###
--------------------------------------------------------------------------------
/Google Search Automation/images/search gui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Google Search Automation/images/search gui.png
--------------------------------------------------------------------------------
/Google Search Automation/main.py:
--------------------------------------------------------------------------------
1 |
2 | import tkinter as tk
3 | import webbrowser
4 |
5 | def search():
6 | query = entry.get()
7 | webbrowser.open(f"https://www.google.com/search?q={query}")
8 |
9 | root = tk.Tk()
10 | root.title("Google Search")
11 | root.geometry('500x500')
12 |
13 | heading_label = tk.Label(root, text="Google Search Automation", font="poppins 20 bold")
14 | heading_label.pack()
15 | entry = tk.Entry(root, font="poppins 16")
16 | entry.pack()
17 |
18 | button = tk.Button(root, text="Search", command=search)
19 | button.pack()
20 |
21 | root.mainloop()
22 |
--------------------------------------------------------------------------------
/Google Search Automation/readme.md:
--------------------------------------------------------------------------------
1 | # Google Search Automation
2 |
3 | **Approach**
4 | - import `webbrowser` module
5 | - use `webbrowser.open()` to open the url that passed as argument
6 | - the basic google search query : `https://www.google.com/search?q={query}`
7 | - replace the `{query}` with the keyword that you want to search
8 |
9 | **Demonstration**
10 |
11 | GUI looks like below:
12 |
13 | 
14 |
15 |
16 |
17 | https://user-images.githubusercontent.com/89008784/210350982-48192f10-5deb-4a75-9b64-d6915f41e3fb.mp4
18 |
19 |
--------------------------------------------------------------------------------
/Google Search Automation/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 | webbrowser
5 |
--------------------------------------------------------------------------------
/Guess the Number Game/Images/Image1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Guess the Number Game/Images/Image1.png
--------------------------------------------------------------------------------
/Guess the Number Game/Images/image2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Guess the Number Game/Images/image2.png
--------------------------------------------------------------------------------
/Guess the Number Game/README.md:
--------------------------------------------------------------------------------
1 | **GUESS THE NUMBER GAME**
2 |
3 | **GOAL**
4 | This is a simple number guess game created in python programming language using tkinter.
5 |
6 |
7 | **DESCRIPTION**
8 | The goal is to guess the random number choosen by computer from range provided by you.
9 |
10 |
11 | To play this game download guess_numer.py and resources in the same directory.
12 | + Open and run the file guess_number.py
13 | + A black window will appear.
14 | + Another window will open up in which the game will be running.
15 | + enjoy the game :-D
16 | + For restart, you don't need to close the window, just change the values.
17 |
18 | **WHAT I HAD DONE**
19 | In this game, I implemented one class NumberGuessing that will be running the game.
20 |
21 | **DEMONSTRATION**
22 | 
23 | 
24 |
25 |
26 | I wish you enjoy guess the number game :-D
27 |
28 | **JATIN**
29 |
--------------------------------------------------------------------------------
/Hacking Mini Game/Images/img1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Hacking Mini Game/Images/img1.png
--------------------------------------------------------------------------------
/Hacking Mini Game/Images/img2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Hacking Mini Game/Images/img2.png
--------------------------------------------------------------------------------
/Hacking Mini Game/README.md:
--------------------------------------------------------------------------------
1 | **HACKING MINI GAME**
2 |
3 | **GOAL**
4 | This is a simple word guess game created in python programming language.
5 |
6 |
7 | **DESCRIPTION**
8 | The goal is to guess the correct word from a list of displayed words within 4 chances.
9 |
10 |
11 | To play this game download hackingMiniGame.py and resources in the same directory.
12 | + Open and run the file guess_number.py
13 | + enjoy the game :-D
14 |
15 | **WHAT I HAD DONE**
16 | In this game, I implemented the game by using the following concepts:
17 | + Random module
18 | + While loop
19 | + If-else statement (conditional statements)
20 | + List
21 | + String
22 | + Functions
23 |
24 | **DEMONSTRATION**
25 | 
26 | 
27 |
28 |
29 | I wish you enjoy guess this game :-D
30 |
31 | **SRIHARI S**
32 |
--------------------------------------------------------------------------------
/Hangman/images/Screenshot 2022-12-05 at 7.05.22 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Hangman/images/Screenshot 2022-12-05 at 7.05.22 PM.png
--------------------------------------------------------------------------------
/Hangman/images/Screenshot 2022-12-05 at 7.11.06 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Hangman/images/Screenshot 2022-12-05 at 7.11.06 PM.png
--------------------------------------------------------------------------------
/Hangman/images/Screenshot 2022-12-05 at 7.11.24 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Hangman/images/Screenshot 2022-12-05 at 7.11.24 PM.png
--------------------------------------------------------------------------------
/Hangman/images/Screenshot 2022-12-05 at 7.11.43 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Hangman/images/Screenshot 2022-12-05 at 7.11.43 PM.png
--------------------------------------------------------------------------------
/Hangman/images/Screenshot 2022-12-05 at 7.12.43 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Hangman/images/Screenshot 2022-12-05 at 7.12.43 PM.png
--------------------------------------------------------------------------------
/Haunted House/Readme.md:
--------------------------------------------------------------------------------
1 | **Haunted House[GUI]**
2 |
3 | **GOAL**
4 |
5 | The aim of this program is to is to escape the house with the loot. Using NESTED DICTIONARY data type.
6 |
7 | **DESCRIPTION**
8 |
9 | Use the command to navigate in the house and explore the adventure.
10 |
11 | Commands:
12 | - use [item] eg: use key
13 |
14 | - shoot[enemy] eg: shoot zombie
15 |
16 | - go [direction] eg: go south
17 |
18 | - get [object] eg: get bandage
19 |
20 | **LIBRARIES NEEDED**
21 |
22 | - time
23 | - tkinter
24 | - tkinter.ttk
25 | - sys
26 |
27 | **HOW TO RUN**
28 | - from the terminal line run cmd python3 haunted_house.py
29 |
30 | **DEMONSTRATION**
31 |
32 | 
33 |
34 | **YOUR NAME**
35 |
36 |
37 | Govind Kushwaha
38 |
39 | B C Samrudh
40 |
--------------------------------------------------------------------------------
/Haunted House/demo_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Haunted House/demo_image.png
--------------------------------------------------------------------------------
/Haunted House/requirements.txt:
--------------------------------------------------------------------------------
1 | ## LIBRARIES NEEDED
2 |
3 | import time
4 | import tkinter
5 | import tkinter.ttk
6 | import sys
7 |
8 | Commands:
9 | - use [item] eg: use key
10 |
11 | - shoot[enemy] eg: shoot zombie
12 |
13 | - go [direction] eg: go north
14 |
15 | - get [object] eg: get bandage
16 |
--------------------------------------------------------------------------------
/Image Compressor App/images/Compressed_parrot.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Compressor App/images/Compressed_parrot.jpeg
--------------------------------------------------------------------------------
/Image Compressor App/images/parrot.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Compressor App/images/parrot.jpeg
--------------------------------------------------------------------------------
/Image Compressor App/main.py:
--------------------------------------------------------------------------------
1 | import os
2 | import tkinter
3 | import pytesseract
4 | from tkinter import filedialog
5 | from PIL import Image
6 |
7 | def openImage():
8 | '''This function opens the directory'''
9 | # opening image
10 | filename = filedialog.askopenfilename(title="Select Image",initialdir='C:\Downloads',filetypes=[("PNG","*.png"),("JPG","*.jpg"),("JPEG","*.jpeg"),("ICON","*.ico")])
11 | file_label.configure(text=filename)
12 | output_text.delete("1.0", tkinter.END)
13 | userfilename = filedialog.asksaveasfilename()
14 | userfilename = os.path.basename('/root/'+userfilename)
15 | # userfilename = os.path.splitext(userfilename)[0]
16 | print("user file name :",userfilename)
17 | # open the image
18 | picture = Image.open(filename)
19 |
20 | # Save the picture with desired quality
21 | # To change the quality of image,set the quality variable at your desired level
22 | # The more the value of quality variable and lesser the compression
23 | picture.save("Compressed_"+userfilename+'.jpeg',
24 | "JPEG",
25 | optimize = True,
26 | quality = 10)
27 | output_text.insert(tkinter.END, "Image compression finished")
28 |
29 | root = tkinter.Tk()
30 | root.title("Image Compressor")
31 |
32 | file_label = tkinter.Label(root,text="No image selected")
33 | file_label.pack()
34 | #ouput text widget
35 | output_text = tkinter.Text(root)
36 | output_text.pack()
37 | #button to select the file
38 | open_file_btn = tkinter.Button(root, text="Select Image", command= openImage)
39 | open_file_btn.pack()
40 |
41 | root.mainloop()
42 |
--------------------------------------------------------------------------------
/Image Compressor App/readme.md:
--------------------------------------------------------------------------------
1 | # Image Compressor App
2 |
3 | **Approach**
4 | - import `tkinter` and `PIL` modules
5 | - use `filedialog.askopenfilename()` to select image file
6 | - use `Image.open()` to open the image
7 | - use `save()` by passing `quality` parameter to compress the image and save the compressed image
8 |
9 | **Demonstration**
10 |
11 | - Create a folder named Image Compressor
12 | - save the python source code file in that folder
13 | - run the program and select the image
14 | - compressed image will be saved in the same folder that you created
15 |
16 |
17 |
18 | https://user-images.githubusercontent.com/89008784/210128233-dfead058-a12b-41d8-87cc-515f239c3aa6.mp4
19 |
20 |
21 | Original Image :
22 |
23 | 
24 |
25 | Compressed Image :
26 |
27 | 
28 |
--------------------------------------------------------------------------------
/Image Compressor App/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 | PILLOW
5 |
--------------------------------------------------------------------------------
/Image Grayscalling/Images/Image2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Grayscalling/Images/Image2.jpg
--------------------------------------------------------------------------------
/Image Grayscalling/Images/Image3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Grayscalling/Images/Image3.jpg
--------------------------------------------------------------------------------
/Image Grayscalling/Images/Image4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Grayscalling/Images/Image4.jpg
--------------------------------------------------------------------------------
/Image Grayscalling/Images/Image5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Grayscalling/Images/Image5.jpg
--------------------------------------------------------------------------------
/Image Grayscalling/Images/Image6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Grayscalling/Images/Image6.png
--------------------------------------------------------------------------------
/Image Grayscalling/Images/image1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Grayscalling/Images/image1.jpg
--------------------------------------------------------------------------------
/Image Watermark Generator/README.md:
--------------------------------------------------------------------------------
1 | **WATERMARK GENERATOR**
2 |
3 | **GOAL**
4 | This is a simple watermark generator created in python programming language. You can add your own watermark to any image.
5 |
6 |
7 | **DESCRIPTION**
8 | The goal is to add a watermark to any image irrespective of the image type and extension
9 |
10 | To use this code download watermarkGenerator.py and resources in the same directory.
11 | + Open and run the file watermarkGenerator.py
12 | + enjoy the code :-D
13 |
14 | To use the GUI version of this code, download watermarkGeneratorGUI.py and resources in the same directory.
15 | + Open and run the file watermarkGeneratorGUI.py
16 | + enjoy the code :-D
17 |
18 | **WHAT I HAD DONE**
19 | In this code, I implemented the code by using the following concepts:
20 | + Pillow module
21 | + Tkinter module
22 | + os module
23 |
24 | **DEMONSTRATION**
25 | 
26 | 
27 | 
28 | 
29 | 
30 | 
31 |
32 |
33 | I wish you enjoy this code :-D
34 |
35 | **SRIHARI S**
36 |
--------------------------------------------------------------------------------
/Image Watermark Generator/images/cmd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Watermark Generator/images/cmd.png
--------------------------------------------------------------------------------
/Image Watermark Generator/images/generatedImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Watermark Generator/images/generatedImage.png
--------------------------------------------------------------------------------
/Image Watermark Generator/images/gui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Watermark Generator/images/gui.png
--------------------------------------------------------------------------------
/Image Watermark Generator/images/res.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Watermark Generator/images/res.png
--------------------------------------------------------------------------------
/Image Watermark Generator/images/selectedImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Watermark Generator/images/selectedImage.png
--------------------------------------------------------------------------------
/Image Watermark Generator/lion.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Watermark Generator/lion.jpg
--------------------------------------------------------------------------------
/Image Watermark Generator/lion_watermarked.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Watermark Generator/lion_watermarked.jpg
--------------------------------------------------------------------------------
/Image Watermark Generator/result/watermark.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Image Watermark Generator/result/watermark.jpg
--------------------------------------------------------------------------------
/Image Watermark Generator/watermarkGenerator.py:
--------------------------------------------------------------------------------
1 | #Import required Image library
2 | from PIL import Image, ImageDraw, ImageFont
3 |
4 | print("""
5 | Image Watermark Generator
6 |
7 | This program will add a watermark to an image.
8 | To add a watermark to an image, save the image in the same folder as this program and enter the name of the image when prompted.
9 | The image with the generated watermark will be saved in the result folder.
10 | """)
11 |
12 | #Get the image name from the user
13 | image_name = input("Enter the name of the image (Also include the extension): ")
14 | #Create an Image Object from an Image
15 | im = Image.open('Image Watermark Generator/'+image_name)
16 | width, height = im.size
17 |
18 | draw = ImageDraw.Draw(im)
19 | text = input("Enter the text to be added as watermark: ")
20 |
21 | fontsize = int(input("Enter the font size: (Default is 36 and max is 100) "))
22 | font = ImageFont.truetype('arial.ttf', fontsize)
23 | textwidth, textheight = draw.textsize(text, font)
24 |
25 | # calculate the x,y coordinates of the text
26 | margin = 10
27 | x = width - textwidth - margin
28 | y = height - textheight - margin
29 |
30 | # draw watermark in the bottom right corner
31 | draw.text((x, y), text, font=font)
32 | im.show()
33 |
34 | #Save watermarked image
35 | im.save('Image Watermark Generator/result/watermark.jpg')
--------------------------------------------------------------------------------
/Img To PDF/Images/cmdexample.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Img To PDF/Images/cmdexample.jpeg
--------------------------------------------------------------------------------
/Img To PDF/Images/file 0.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Img To PDF/Images/file 0.pdf
--------------------------------------------------------------------------------
/Img To PDF/Images/tk 18-12-2022 17_38_46.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Img To PDF/Images/tk 18-12-2022 17_38_46.png
--------------------------------------------------------------------------------
/Img To PDF/README.md:
--------------------------------------------------------------------------------
1 | *IMG to PDF converter*
2 |
3 | GOAL
4 |
5 | To create a pdf file of an jpg or jpeg file using Tkinter and Python
6 |
7 | DESCRIPTION
8 | This project aims to convert jpeg and jpg files to pdf.
9 |
10 | Control Keys:
11 | Open the command terminal and run the code imgtopdf.py
12 | Then follow the on screen commands.
13 |
14 | How I Made it
15 |
16 | I used python libraries such as PIL and img2pdf and TKinter for this project.
17 |
18 | LIBRARIES NEEDED
19 |
20 | img2pdf
21 | Pillow
22 |
23 |
24 | DEMONSTRATION
25 |
26 |
27 | 
28 | 
29 |
30 |
31 |
32 |
33 | Pundarikaksha
34 | GITHUB: pundarikaksha7
35 | Linkedin: linkedin.com/in/pundarikaksha7
36 |
--------------------------------------------------------------------------------
/Img To PDF/imgtopdf.py:
--------------------------------------------------------------------------------
1 | # Import Module
2 | from tkinter import *
3 | from tkinter.filedialog import askopenfilenames
4 | import img2pdf
5 | from PIL import Image
6 |
7 | # Create Object
8 | root = Tk()
9 | # set Geometry
10 | root.geometry('400x200')
11 |
12 | def select_file():
13 | global file_names
14 | file_names = askopenfilenames(initialdir = "/",
15 | title = "Select File")
16 |
17 | # IMAGE TO PDF
18 | def image_to_pdf():
19 | for index, file_name in enumerate(file_names):
20 | with open(f"file {index}.pdf", "wb") as f:
21 | image = Image.open(file_name)
22 | pdf_bytes = img2pdf.convert(image.filename)
23 | f.write(img2pdf.convert(image.filename))
24 | image.close()
25 | f.close()
26 | print('Converted')
27 |
28 |
29 | # Add Labels and Buttons
30 | Label(root, text = "IMG TO PDF",
31 | font = "italic 15 bold").pack(pady = 10)
32 |
33 | Button(root, text = "Select Image",
34 | command = select_file, font = 14).pack(pady = 10)
35 |
36 | frame = Frame()
37 | frame.pack(pady = 20)
38 |
39 | Button(frame, text = "Image to PDF",
40 | command = image_to_pdf,
41 | relief = "solid",
42 | bg = "white", font = 15).pack(side = LEFT, padx = 10)
43 |
44 |
45 | # Execute Tkinter
46 | root.mainloop()
--------------------------------------------------------------------------------
/Mario Game/README.md:
--------------------------------------------------------------------------------
1 | *Mario Game*
2 |
3 | GOAL
4 |
5 | To collect as many points as possible before getting eliminated by either fireballs or cactus/fire bricks.
6 |
7 | DESCRIPTION
8 | This is a non classical version of Mario game where instead of jumping over bricks you jump over fireballs to reach your end goal.
9 |
10 | Control Keys:
11 |
12 | Arrow Up: Move up
13 | Arrow Down: Move down
14 |
15 | How I Made it
16 |
17 | Used python functions and classes to define the basic scenario of the game. Took help of the internet to create a compact version of the world famous Mario Game.
18 |
19 | LIBRARIES NEEDED
20 |
21 | pygame.py
22 | #Install by running the command: pip install pygame
23 |
24 | DEMONSTRATION
25 |
26 |
27 | 
28 |
29 |
30 |
31 | Pundarikaksha
32 | GITHUB: pundarikaksha7
33 | Linkedin: linkedin.com/in/pundarikaksha7
34 |
--------------------------------------------------------------------------------
/Mario Game/images/bricks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/bricks.png
--------------------------------------------------------------------------------
/Mario Game/images/cactus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/cactus.png
--------------------------------------------------------------------------------
/Mario Game/images/cactus_bricks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/cactus_bricks.png
--------------------------------------------------------------------------------
/Mario Game/images/dragon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/dragon.png
--------------------------------------------------------------------------------
/Mario Game/images/end.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/end.png
--------------------------------------------------------------------------------
/Mario Game/images/fire.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/fire.png
--------------------------------------------------------------------------------
/Mario Game/images/fire_bricks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/fire_bricks.png
--------------------------------------------------------------------------------
/Mario Game/images/fireball.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/fireball.png
--------------------------------------------------------------------------------
/Mario Game/images/maryo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/maryo.png
--------------------------------------------------------------------------------
/Mario Game/images/start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/images/start.png
--------------------------------------------------------------------------------
/Mario Game/mario_dies.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/mario_dies.wav
--------------------------------------------------------------------------------
/Mario Game/mario_theme.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Mario Game/mario_theme.wav
--------------------------------------------------------------------------------
/MazeGame/README.md:
--------------------------------------------------------------------------------
1 | Maze Game
2 |
3 | GOAL
4 |
5 | This is a classic Maze Game in which user's goal is to reach the end of the maze by going along the correct paths.
6 |
7 | DESCRIPTION
8 |
9 | User begins from one end of the maze and the goal is to reach the other end. Certain paths must be chosen to move forward towards to the end. Movement of the player is to be done by the following keys.
10 | W- Move up
11 | S- Move down
12 | A- Move left
13 | D- Move right
14 |
15 | Wrote a python code using python functions, classes(OOPs),kruskal method etc and also took help from the internet to create a maze. Then created an interactive version of the same.
16 |
17 | LIBRARIES NEEDED
18 |
19 | disjointSet.py
20 |
21 | DEMONSTRATION
22 |
23 | 
24 |
25 |
26 | Pundarikaksha
27 | GITHUB: pundarikaksha7
28 | Linkedin: linkedin.com/in/pundarikaksha7
29 |
--------------------------------------------------------------------------------
/MazeGame/__pycache__/disjointSet.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/MazeGame/__pycache__/disjointSet.cpython-310.pyc
--------------------------------------------------------------------------------
/MazeGame/__pycache__/disjointSet.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/MazeGame/__pycache__/disjointSet.cpython-39.pyc
--------------------------------------------------------------------------------
/MazeGame/__pycache__/maze.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/MazeGame/__pycache__/maze.cpython-39.pyc
--------------------------------------------------------------------------------
/MazeGame/mazes/10by10_maze.txt:
--------------------------------------------------------------------------------
1 | +-+-+-+-+-+-+-+-+-+-+
2 | |S | | | | |
3 | +-+ + + + +-+ +-+ + +
4 | | | | | | | |
5 | + +-+ + + + +-+ +-+ +
6 | | | | | | | | |
7 | + +-+ +-+ +-+-+ + +-+
8 | | | | | |
9 | + +-+-+ +-+ +-+ +-+-+
10 | | | | | |
11 | +-+-+-+-+ + +-+-+-+ +
12 | | | |
13 | + +-+ + + + + +-+-+ +
14 | | | | | | | | | | |
15 | + +-+-+-+-+ +-+ + + +
16 | | | | |
17 | + +-+-+ +-+ +-+-+ +-+
18 | | | | |
19 | +-+ + +-+-+ + + +-+ +
20 | | | | | | |X|
21 | +-+-+-+-+-+-+-+-+-+-+
22 |
--------------------------------------------------------------------------------
/MazeGame/mazes/5by5_maze.txt:
--------------------------------------------------------------------------------
1 | +-+-+-+-+-+
2 | |S| | |
3 | + + +-+ +-+
4 | | | | |
5 | +-+ +-+ + +
6 | | | | |
7 | + +-+ + +-+
8 | | | |
9 | + + + + +-+
10 | | | | X|
11 | +-+-+-+-+-+
12 |
--------------------------------------------------------------------------------
/MazeGame/mazes/5by5_portals.txt:
--------------------------------------------------------------------------------
1 | Portal Coordinates
2 | (0, 5) (1, 2) (1, 6) (2, 1) (3, 8)
3 | (3, 4) (4, 3) (5, 0) (5, 6) (6, 1)
4 | (6, 11) (6, 5) (6, 7) (7, 6) (8, 3)
5 | (8, 13) (9, 14) (10, 11) (10, 15) (11, 10)
6 | (11, 6) (12, 17) (13, 8) (13, 18) (13, 14)
7 | (14, 9) (14, 13) (15, 16) (15, 10) (15, 20)
8 | (16, 21) (16, 15) (17, 18) (17, 12) (17, 22)
9 | (18, 17) (18, 19) (18, 13) (18, 23) (19, 18)
10 | (20, 15) (21, 16) (21, 22) (22, 17) (22, 21)
11 | (23, 24) (23, 18) (24, 23)
--------------------------------------------------------------------------------
/MazeGame/res/demo_block.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/MazeGame/res/demo_block.png
--------------------------------------------------------------------------------
/MazeGame/res/demo_game.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/MazeGame/res/demo_game.gif
--------------------------------------------------------------------------------
/MazeGame/res/demo_solve.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/MazeGame/res/demo_solve.gif
--------------------------------------------------------------------------------
/Minesweeper/README.md:
--------------------------------------------------------------------------------
1 | **Minesweeper**
2 |
3 | **GOAL**
4 |
5 | The goal of Minesweeper is to uncover all the squares on a grid that do not contain mines without being "blown up" by clicking on a square with a mine underneath. The location of most mines is discovered through a logical process, but some require guessing, usually with a 50-50 chance of being correct.
6 |
7 |
8 | **DESCRIPTION**
9 |
10 | The player is first presented with a grid containing a number of indistinguishable squares containing
11 | a number of pre-specified mines.
12 | To play the game, the player has to click on a square in the grid. The square maybe:
13 | 1. **Blank:** has no mine adjacent to it
14 | 2. **Containing a number:** Hints at the number of mines adjacent to it
15 | 3. **Containing a mine:** If the player clicks on this, the game is over.
16 | The player can place flags on squares in which he thinks
17 | To win the game, the player has to correctly “flag” the positions of all the mines on the board.
18 |
19 |
20 | **LIBRARIES NEEDED**
21 |
22 | 1) Pygame
23 | 2) Sys
24 | 3) Random
25 |
26 | **DEMONSTRATION**
27 |
28 | 
29 |
30 | **YOUR NAME**
31 |
32 | Varun Nagpal
33 |
--------------------------------------------------------------------------------
/Minesweeper/images/README.md:
--------------------------------------------------------------------------------
1 | This folder contains the sample/demonstration images for this project
2 |
--------------------------------------------------------------------------------
/Minesweeper/images/demonstration.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Minesweeper/images/demonstration.png
--------------------------------------------------------------------------------
/Minesweeper/requirements.txt:
--------------------------------------------------------------------------------
1 | pygame
--------------------------------------------------------------------------------
/Morse Code Converter/README.md:
--------------------------------------------------------------------------------
1 | **MORSE**
2 |
3 | **GOAL**
4 | This is a morse code convertor created using OOP concepts and tkinter library
5 |
6 |
7 | **DESCRIPTION**
8 | Sorse code is a method used in telecommunication to encode text characters as standardized sequences of two different signal durations, called dots and dashes, or dits and dahs. Morse code is named after Samuel Morse, one of the inventors of the telegraph. Read more about morse code from [here](https://en.wikipedia.org/wiki/Morse_code)
9 |
10 |
11 | To run this save all the JSON files and morse.py and main.py in same directory.
12 |
13 |
14 | Open and run the file space main.py without making any modifications to it to ensure that everything is set up correctly. By "open and run" I mean do the following:
15 | * Go to your IDE. From the File menu, choose "Open".
16 | * Find the file main.py and choose it.
17 | * The template space main.py file should now be open. Run the file and enjoy morse code convertor :-D
18 |
19 |
20 |
21 | **WHAT I HAD DONE**
22 | In this project with the help of JSON files, I created two files the morse.py and other main.py
23 |
24 | Morse code algorithm is created using class and function in morse.py and main.py imports morse.py for further GUI creation
25 |
26 | **DEMONSTRATION**
27 |
28 | 
29 |
30 | 
31 |
32 | I wish you enjoy the morse code convertor. :-D
33 |
34 | **AAYUSH SINHA**
35 |
--------------------------------------------------------------------------------
/Morse Code Converter/images/Screenshot 2022-12-31 at 12.25.44 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Morse Code Converter/images/Screenshot 2022-12-31 at 12.25.44 PM.png
--------------------------------------------------------------------------------
/Morse Code Converter/images/Screenshot 2022-12-31 at 12.26.35 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Morse Code Converter/images/Screenshot 2022-12-31 at 12.26.35 PM.png
--------------------------------------------------------------------------------
/Morse Code Converter/morse2text.json:
--------------------------------------------------------------------------------
1 | {
2 | "-----": "0",
3 | ".----": "1",
4 | "..---": "2",
5 | "...--": "3",
6 | "....-": "4",
7 | ".....": "5",
8 | "-....": "6",
9 | "--...": "7",
10 | "---..": "8",
11 | "----.": "9",
12 | ".-": "a",
13 | "-...": "b",
14 | "-.-.": "c",
15 | "-..": "d",
16 | ".": "e",
17 | "..-.": "f",
18 | "--.": "g",
19 | "....": "h",
20 | "..": "i",
21 | ".---": "j",
22 | "-.-": "k",
23 | ".-..": "l",
24 | "--": "m",
25 | "-.": "n",
26 | "---": "o",
27 | ".--.": "p",
28 | "--.-": "q",
29 | ".-.": "r",
30 | "...": "s",
31 | "-": "t",
32 | "..-": "u",
33 | "...-": "v",
34 | ".--": "w",
35 | "-..-": "x",
36 | "-.--": "y",
37 | "--..": "z",
38 | ".-.-.-": ".",
39 | "--..--": ",",
40 | "..--..": "?",
41 | "-.-.--": "!",
42 | "-....-": "-",
43 | "-..-.": "/",
44 | ".--.-.": "@",
45 | "-.--.": "(",
46 | "-.--.-": ")"
47 | }
--------------------------------------------------------------------------------
/Morse Code Converter/text2morse.json:
--------------------------------------------------------------------------------
1 | {
2 | "0": "-----",
3 | "1": ".----",
4 | "2": "..---",
5 | "3": "...--",
6 | "4": "....-",
7 | "5": ".....",
8 | "6": "-....",
9 | "7": "--...",
10 | "8": "---..",
11 | "9": "----.",
12 | "a": ".-",
13 | "b": "-...",
14 | "c": "-.-.",
15 | "d": "-..",
16 | "e": ".",
17 | "f": "..-.",
18 | "g": "--.",
19 | "h": "....",
20 | "i": "..",
21 | "j": ".---",
22 | "k": "-.-",
23 | "l": ".-..",
24 | "m": "--",
25 | "n": "-.",
26 | "o": "---",
27 | "p": ".--.",
28 | "q": "--.-",
29 | "r": ".-.",
30 | "s": "...",
31 | "t": "-",
32 | "u": "..-",
33 | "v": "...-",
34 | "w": ".--",
35 | "x": "-..-",
36 | "y": "-.--",
37 | "z": "--..",
38 | ".": ".-.-.-",
39 | ",": "--..--",
40 | "?": "..--..",
41 | "!": "-.-.--",
42 | "-": "-....-",
43 | "/": "-..-.",
44 | "@": ".--.-.",
45 | "(": "-.--.",
46 | ")": "-.--.-"
47 | }
--------------------------------------------------------------------------------
/Music Player App/README.md:
--------------------------------------------------------------------------------
1 | **MUSIC PLAYER APP**
2 |
3 | **GOAL**
4 | This is a music player created using OOP concepts, pygame tkinter library
5 |
6 |
7 | **DESCRIPTION**
8 | This is a music player app in Python that lets you play your downloaded mp3 audios.
9 |
10 |
11 | To run this save the Music Player App.py
12 |
13 |
14 | Open and run the file space Music Player App.py without making any modifications to it to ensure that everything is set up correctly. By "open and run" I mean do the following:
15 | * Go to your IDE. From the File menu, choose "Open".
16 | * Find the file Music Player App.py and choose it.
17 | * The template space Music Player App.py file should now be open. Run the file
18 |
19 | To play your music in this player
20 | - Click on open file
21 | - Navigate to your desire folder
22 | - Select the mp3 audio you want to play
23 | - Select again the audio in mp3 player window
24 | - Click on play enjoy your audio :-D
25 |
26 | **WHAT I HAD DONE**
27 | In this project with tkinter library and pygame, I created a class named MusicPlayer and various methods in it like play, pause, next song etc.
28 |
29 | **DEMONSTRATION**
30 |
31 | 
32 |
33 |
34 | I wish you enjoy the Music Player App
35 |
36 | **AAYUSH SINHA**
37 |
--------------------------------------------------------------------------------
/Music Player App/image/Screenshot 2023-01-06 at 5.56.02 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Music Player App/image/Screenshot 2023-01-06 at 5.56.02 PM.png
--------------------------------------------------------------------------------
/PDF Merger App/images/merged.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF Merger App/images/merged.png
--------------------------------------------------------------------------------
/PDF Merger App/images/pdf1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF Merger App/images/pdf1.png
--------------------------------------------------------------------------------
/PDF Merger App/images/pdf2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF Merger App/images/pdf2.png
--------------------------------------------------------------------------------
/PDF Merger App/images/pic 1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF Merger App/images/pic 1.png
--------------------------------------------------------------------------------
/PDF Merger App/images/pic 2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF Merger App/images/pic 2.png
--------------------------------------------------------------------------------
/PDF Merger App/images/pic 3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF Merger App/images/pic 3.png
--------------------------------------------------------------------------------
/PDF Merger App/images/pic 4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF Merger App/images/pic 4.png
--------------------------------------------------------------------------------
/PDF Merger App/images/pic 5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF Merger App/images/pic 5.png
--------------------------------------------------------------------------------
/PDF Merger App/main.py:
--------------------------------------------------------------------------------
1 | from tkinter import *
2 | from tkinter import filedialog
3 | import PyPDF2
4 |
5 | pdf2merge=[]
6 | pdfWriter = PyPDF2.PdfFileWriter()
7 |
8 | root = Tk()
9 | root.title("PDF Merger")
10 | root.geometry('500x500')
11 |
12 | def selectPDF():
13 | pdf2merge = filedialog.askopenfilenames()
14 | print(pdf2merge)
15 | # Ask user for the name to save the file as
16 | userfilename = filedialog.asksaveasfilename()
17 | # loop through all PDFs
18 | for filename in pdf2merge:
19 | # rb for read binary
20 | pdfFileObj = open(filename, 'rb')
21 | pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
22 | # Opening each page of the PDF
23 | for pageNum in range(pdfReader.numPages):
24 | pageObj = pdfReader.getPage(pageNum)
25 | pdfWriter.addPage(pageObj)
26 | # save PDF to file, wb for write binary
27 | pdfOutput = open(userfilename + '.pdf', 'wb')
28 | # Outputting the PDF
29 | pdfWriter.write(pdfOutput)
30 | # Closing the PDF writer
31 | pdfOutput.close()
32 | status["text"] = "Finished"
33 |
34 | title_label = Label(root, text = "Merge PDF files",font=("Arial", 18) )
35 | title_label.pack()
36 |
37 | button1 = Button(root, text="Select PDF files", command= selectPDF)
38 | button1.pack()
39 |
40 | status = Label(root, text = "", font=("Arial", 18))
41 | status.pack()
42 |
43 | root.mainloop()
44 |
--------------------------------------------------------------------------------
/PDF Merger App/readme.md:
--------------------------------------------------------------------------------
1 | **PDF Merger APP**
2 |
3 |
4 | **Features**
5 |
6 | In this app, the user will be able to do following:
7 |
8 | - open the PDF files ( can merge numerous files)
9 | - save the merged file in custom location with custom name
10 |
11 |
12 | **Approach**
13 |
14 | This app build using `tkinter 3.9.14` and `PyPDF 2.12.1`.
15 | - Import the PyPDF2 and tkinter modules.
16 | - Open the PDF files.
17 | - Use PdfFileReader() to read the PDF.
18 | - use PdfFileWriter() and addPage() to merge the PDF files.
19 |
20 | **Demonstration**
21 |
22 | PDF 1 as input :
23 | 
24 |
25 | PDF 2 as input :
26 | 
27 |
28 | Merged PDF :
29 |
30 | 
31 |
32 | The GUI looks like below :
33 |
34 | 
35 |
36 | Select the PDF files :
37 | 
38 |
39 |
40 | 
41 |
42 | Give the name to the merged PDF file :
43 | 
44 |
45 | Result :
46 |
47 | 
48 |
49 | [**Durga Vamsi Krishna**](https://github.com/vamsikrishnarh7/)
50 |
--------------------------------------------------------------------------------
/PDF Merger App/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 | PyPDF2 - 2.12.1
5 |
--------------------------------------------------------------------------------
/PDF to Text Converter/Images/2022-12-20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF to Text Converter/Images/2022-12-20.png
--------------------------------------------------------------------------------
/PDF to Text Converter/Images/pdf to text 1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF to Text Converter/Images/pdf to text 1.png
--------------------------------------------------------------------------------
/PDF to Text Converter/Images/pdf to text2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF to Text Converter/Images/pdf to text2.png
--------------------------------------------------------------------------------
/PDF to Text Converter/Images/pdf to text3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/PDF to Text Converter/Images/pdf to text3.png
--------------------------------------------------------------------------------
/PDF to Text Converter/main.py:
--------------------------------------------------------------------------------
1 | import tkinter, PyPDF2
2 | from tkinter import filedialog
3 |
4 | def openFile():
5 | '''This function opens the directory'''
6 | filename = filedialog.askopenfilename(title="Open PDF",initialdir='C:\Downloads',filetypes=[('PDF files','*.pdf')])
7 | file_label.configure(text=filename)
8 | output_text.delete("1.0", tkinter.END)
9 | reader = PyPDF2.PdfReader(filename)
10 | for i in range(reader.numPages):
11 | text = reader.getPage(i).extractText()
12 | output_text.insert(tkinter.END, text)
13 |
14 | root = tkinter.Tk()
15 | root.title("PDF to Text Converter")
16 |
17 | file_label = tkinter.Label(root,text="No file selected")
18 | file_label.pack()
19 | #ouput text widget
20 | output_text = tkinter.Text(root)
21 | output_text.pack()
22 | #button to select the file
23 | open_file_btn = tkinter.Button(root, text="Open PDF", command= openFile)
24 | open_file_btn.pack()
25 |
26 | root.mainloop()
27 |
--------------------------------------------------------------------------------
/PDF to Text Converter/readme.md:
--------------------------------------------------------------------------------
1 | **PDF to Text Converter**
2 |
3 |
4 | **Features**
5 |
6 | In this app, the user will be able to do following:
7 |
8 | - open the PDF file and extracts text from it.
9 |
10 | **Approach**
11 |
12 | This app build using `tkinter 3.9.14` and `PyPDF 2.12.1`.
13 | - Import the PyPDF2 and tkinter modules.
14 | - Open the PDF file.
15 | - Use PdfFileReader() to read the PDF.
16 | - Use the getPage() method to select the page to be read.
17 | - Extract the text from the page using extractText().
18 |
19 | **Demonstration**
20 |
21 | PDF as input :
22 | 
23 |
24 | Output :
25 |
26 | 
27 |
28 |
29 | **Durga Vamsi Krishna**[https://github.com/vamsikrishnarh7/]
30 |
--------------------------------------------------------------------------------
/PDF to Text Converter/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 | PyPDF2 - 2.12.1
5 |
--------------------------------------------------------------------------------
/Password Generator/README.md:
--------------------------------------------------------------------------------
1 | **PASSWORD GENERATOR**
2 |
3 | **GOAL**
4 | This is a simple password generator created in python programming language. You can generate a password of any length and with any number of characters.
5 |
6 | **DESCRIPTION**
7 | The goal is to create a password of any length and with any number of characters based on the user's input.
8 |
9 | To use this code download passwordGenerator.py and resources in the same directory.
10 | + Open and run the file passwordGenerator.py
11 | + enjoy the code :-D
12 |
13 | To use the GUI version of this code, download passwordGeneratorGUI.py and resources in the same directory.
14 | + Open and run the file passwordGeneratorGUI.py
15 | + enjoy the code :-D
16 |
17 | **WHAT I HAD DONE**
18 | In this code, I implemented the code by using the following concepts:
19 | + Tkinter module
20 | + random module
21 |
22 | **DEMONSTRATION**
23 | 
24 | 
25 | 
26 |
27 | I wish you enjoy this code :-D
28 |
29 | **SRIHARI S**
30 |
--------------------------------------------------------------------------------
/Password Generator/images/cmd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Password Generator/images/cmd.png
--------------------------------------------------------------------------------
/Password Generator/images/gui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Password Generator/images/gui.png
--------------------------------------------------------------------------------
/Password Generator/images/gui2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Password Generator/images/gui2.png
--------------------------------------------------------------------------------
/Password Generator/passwordGenerator.py:
--------------------------------------------------------------------------------
1 | import random
2 |
3 | def passwordGenerator():
4 | print("""
5 | Password Generator
6 | ------------------
7 | For yes or no questions, enter 'y' or 'n' respectively. (Case insensitive)
8 | """)
9 | length = int(input("Enter the length of password: "))
10 | ch = input("Do you want to include special characters? (y/n): ")
11 | lowerAlphabets = input("Do you want to include lower case alphabets? (y/n): ")
12 | upperAlphabets = input("Do you want to include upper case alphabets? (y/n): ")
13 | numbers = input("Do you want to include numbers? (y/n): ")
14 | password = ""
15 |
16 | if length == 0:
17 | print("Please enter a valid length.")
18 | return
19 |
20 | if((ch != 'y' and ch != 'Y' and ch != 'n' and ch != 'N') or (lowerAlphabets != 'y' and lowerAlphabets != 'Y' and lowerAlphabets != 'n' and lowerAlphabets != 'N') or (upperAlphabets != 'y' and upperAlphabets != 'Y' and upperAlphabets != 'n' and upperAlphabets != 'N') or (numbers != 'y' and numbers != 'Y' and numbers != 'n' and numbers != 'N') or (length == 0)):
21 | print("Please enter 'y' or 'n' for yes or no questions respectively.")
22 | return
23 |
24 | if ch == 'y' or ch == 'Y':
25 | password += "!@#$%^&*()_+"
26 | if lowerAlphabets == 'y' or lowerAlphabets == 'Y':
27 | password += "abcdefghijklmnopqrstuvwxyz"
28 | if upperAlphabets == 'y' or upperAlphabets == 'Y':
29 | password += "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
30 | if numbers == 'y' or numbers == 'Y':
31 | password += "0123456789"
32 |
33 | print("Your password is: ", end="")
34 | for i in range(length):
35 | print(random.choice(password), end="")
36 | print()
37 |
38 | passwordGenerator()
--------------------------------------------------------------------------------
/Pdf Downloader/README.md:
--------------------------------------------------------------------------------
1 | **PDF Downloader**
2 |
3 | **GOAL**
4 |
5 | The aim of this program is to download the (.pdf)extension file from the given url.
6 |
7 | **DESCRIPTION**
8 |
9 | In this, we will input the URL of the (.pdf) extension and the pdf file be downloaded at the specified path. A basic approach is used for creating this program. Using the (requests) library we are requesting access to the file from the given URL. And using Tkinter we have created the GUI.
10 |
11 | **LIBRARIES NEEDED**
12 |
13 | - requests
14 | - Tkinter
15 |
16 | **HOW TO RUN**
17 | - from the terminal line run cmd python3 pdf_downloader.py
18 | - NOTE:- If the image is not visible in GUI, then add the (logo.png) image path from the image folder at line no. 25
19 |
20 | **DEMONSTRATION**
21 |
22 |
23 |
24 | **YOUR NAME**
25 |
26 | Govind Kushwaha
27 |
--------------------------------------------------------------------------------
/Pdf Downloader/image/Output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Pdf Downloader/image/Output.png
--------------------------------------------------------------------------------
/Pdf Downloader/image/img-01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Pdf Downloader/image/img-01.png
--------------------------------------------------------------------------------
/Pdf Downloader/image/img-02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Pdf Downloader/image/img-02.png
--------------------------------------------------------------------------------
/Pdf Downloader/image/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Pdf Downloader/image/logo.png
--------------------------------------------------------------------------------
/Pdf Downloader/pdf_downloader.py:
--------------------------------------------------------------------------------
1 | # python program to download pdf from url with GUI
2 |
3 | import requests
4 | import tkinter as tk
5 |
6 | # GUI
7 |
8 | def input_data():
9 | name = textfield.get()
10 | url = name
11 | r = requests.get(url, stream=True)
12 | # download_data
13 | # You need to add the downloading path here
14 | with open('/Users/govindkushwaha/Programming/Python/Pdf Downloader/myfile-new.pdf', 'wb') as f:
15 | f.write(r.content)
16 |
17 |
18 | root = tk.Tk()
19 | root.geometry("1000x800")
20 | root.title("PDF Downloader")
21 | f = ("poppins", 25, "bold")
22 |
23 | # For importing the image
24 | # NOTE:-If image is not visible then add the (logo.png) image path from the image folder
25 | banner = tk.PhotoImage(file="/Users/govindkushwaha/Programming/Python/Pdf Downloader/image/logo.png")
26 | bannerlabel = tk.Label(root, image=banner)
27 | bannerlabel.pack()
28 |
29 | # creating text box
30 | textfield = tk.Entry(root, width = 50)
31 | textfield.pack()
32 |
33 | # get data button
34 | gbtn = tk.Button(root, text="Download", font=f, relief='solid', command=input_data)
35 | gbtn.pack()
36 |
37 | root.mainloop()
38 |
--------------------------------------------------------------------------------
/Pdf Downloader/requirements.txt:
--------------------------------------------------------------------------------
1 | ## LIBRARIES NEEDED
2 |
3 | requests
4 | Tkinter
5 |
--------------------------------------------------------------------------------
/Pomodoro App/Images/Screenshot 2022-12-17 204728.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Pomodoro App/Images/Screenshot 2022-12-17 204728.jpg
--------------------------------------------------------------------------------
/Pomodoro App/Images/pomodoro.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Pomodoro App/Images/pomodoro.gif
--------------------------------------------------------------------------------
/Pomodoro App/README.md:
--------------------------------------------------------------------------------
1 | **Pomodoro Timer App**
2 |
3 | **GOAL**
4 | The Goal of this game is to create a Pomodoro Timer App.
5 |
6 | **DESCRIPTION**
7 | The Pomodoro Technique is a time management method based on 25-minute stretches of focused work broken by five-minute breaks. Longer breaks, typically 15 to 30 minutes, are taken after four consecutive work intervals. Each work interval is called a pomodoro, the Italian word for tomato (plural: pomodori). That is the reason of the Tomato Theme of this app.
8 |
9 | ### LIBRARIES NEEDED
10 |
11 | 1. Tkinter: It is a inbuilt python library which provides useful GUI functionalities.
12 |
13 | **WHAT I HAD DONE**
14 | Used Tkinter GUI library to make UI for the App, and created logic to simulate a Pomodoro timer. Set the Work time and start the timer. The timer automatically enters break mode after timer ends. Declared reps to denote the repetitions for short breaks and long breaks.
15 |
16 | ### DEMONSTRATION
17 | https://drive.google.com/drive/folders/11TlXrD15NZ7n3xb8kfkdHJexSGMeNJai?usp=share_link
18 |
19 | ### Sarthak Joleya ###
20 |
--------------------------------------------------------------------------------
/Pomodoro App/resources/tomato.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Pomodoro App/resources/tomato.png
--------------------------------------------------------------------------------
/Pong Game/Images/Screenshot 2022-12-08 at 7.51.46 AM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Pong Game/Images/Screenshot 2022-12-08 at 7.51.46 AM.png
--------------------------------------------------------------------------------
/Pong Game/Images/Screenshot 2022-12-08 at 7.56.42 AM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Pong Game/Images/Screenshot 2022-12-08 at 7.56.42 AM.png
--------------------------------------------------------------------------------
/Pong Game/README.md:
--------------------------------------------------------------------------------
1 | **PONG GAME**
2 |
3 | **GOAL**
4 | This is pong game created in python programming language using pygame.
5 |
6 |
7 | **DESCRIPTION**
8 | Pong is one of the first computer games that was ever created, this simple "tennis-like" game features two paddles and a ball, the goal is to defeat your opponent by being the first one to gain 10 points, and a player gets a point once the opponent misses a ball.
9 |
10 | The game can be played with two human players
11 | Left Player can use W, S keys to move the paddle
12 | While Right player can use up arrow, down arrow keys to move the paddle
13 |
14 | To play this game download pong.py..
15 |
16 | You also need to have pygame installed in your computer. Learn how to install pygame from [here](https://www.pygame.org/wiki/GettingStarted#Pygame%20Installation)
17 |
18 | Open and run the file pong.py without making any modifications to it to ensure that everything is set up correctly. By "open and run" I mean do the following:
19 | * Go to your IDE. From the File menu, choose "Open".
20 | * Find the file pong.py and choose it.
21 | * The template pong.py file should now be open. Run the file and enjoy the game :-D
22 |
23 |
24 |
25 | **WHAT I HAD DONE**
26 | In this game, I implemented two classes for paddle and ball and also functions like handle_collision and handle_paddle_movement that will start up and carry out an interactive pong game.
27 |
28 | **DEMONSTRATION**
29 | 
30 |
31 | 
32 |
33 |
34 | I wish you enjoy the classic pong game. :-D
35 |
36 | **AAYUSH SINHA**
37 |
--------------------------------------------------------------------------------
/QR Code Generator/Images/Image-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/QR Code Generator/Images/Image-1.png
--------------------------------------------------------------------------------
/QR Code Generator/main.py:
--------------------------------------------------------------------------------
1 | import pyqrcode
2 | import tkinter as tk
3 | from tkinter import *
4 | from tkinter import messagebox
5 |
6 | tk=Tk()
7 | tk.title("QRCODE generator")
8 |
9 | def generate_QR():
10 | if len(user_input.get())!=0:
11 | global qr,img
12 | qr = pyqrcode.create("url:" + user_input.get())
13 | img=BitmapImage(data=qr.xbm(scale=8))
14 |
15 | else:
16 | messagebox.showwarning('warning',"filelds are required!")
17 |
18 | try:
19 | display_code()
20 | except:
21 | pass
22 |
23 | def display_code():
24 | img_lbl.config(image=img)
25 | output.config(text="QR code : "+user_input.get())
26 |
27 | lbl = Label(tk,text="Enter your text",bg="#A555EC",padx=30,pady=30,font=("ariel",30))
28 | lbl.pack()
29 |
30 | user_input =StringVar()
31 | entry=Entry(tk,textvariable=user_input,width=50,font=("ariel",15))
32 | entry.pack(padx=50,pady=20)
33 |
34 | button = Button(tk,text="generate QR",width=20,command=generate_QR,font=("ariel",15))
35 | button.pack()
36 |
37 | img_lbl=Label(tk,bg="#e6e6e6")
38 | img_lbl.pack()
39 |
40 | output=Label(tk,text="",bg="#F25252",pady=4)
41 | output.pack()
42 |
43 | tk.mainloop()
--------------------------------------------------------------------------------
/QR Code Generator/readme.md:
--------------------------------------------------------------------------------
1 | **QR Code Generator**
2 |
3 | **GOAL**
4 | create QR code
5 |
6 | **DESCRIPTION**
7 | Add text or link as input and when you click on generate button it create QR code.
8 |
9 | **WHAT I HAD DONE**
10 | Using tkinter and pyqrcode wrote code
11 |
12 | **LIBRARIES NEEDED**
13 | tkinter, pyqrcode
14 |
15 | **DEMONSTRATION**
16 |
17 | 
18 |
19 | **YOUR NAME**
20 |
21 | Nikunj Rohit
22 | Twitter: @nikunj_rohit10
--------------------------------------------------------------------------------
/QR Code Generator/requirements.txt:
--------------------------------------------------------------------------------
1 | Install tkinter, pyqrcode libraries
--------------------------------------------------------------------------------
/Quiz Game/README.md:
--------------------------------------------------------------------------------
1 | **Quiz Game**
2 |
3 | **GOAL**
4 | The Goal of this game is to create a Quiz game.
5 |
6 | **DESCRIPTION**
7 | This is a simple Quiz Game app, which fetchs questions from opentrivia and then tell user if given answer is correct, or wrong.
8 |
9 | ### LIBRARIES NEEDED
10 |
11 | 1. Tkinter: provides useful GUI functionalities.
12 |
13 | **WHAT I HAD DONE**
14 | I have used HTML unescaping & created UI using Tkinter and built a Quiz Game using API from open Trivia Database that helps review API endpoints and parameters.
15 |
16 | ### DEMONSTRATION
17 | (https://drive.google.com/drive/folders/10w8ITuu04ra6uKS-rockJmNyM5K4uvVk?usp=share_link)
18 | 
19 |
20 | ### Sarthak Joleya ###
21 |
--------------------------------------------------------------------------------
/Quiz Game/__pycache__/data.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/__pycache__/data.cpython-311.pyc
--------------------------------------------------------------------------------
/Quiz Game/__pycache__/question_model.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/__pycache__/question_model.cpython-311.pyc
--------------------------------------------------------------------------------
/Quiz Game/__pycache__/quiz_brain.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/__pycache__/quiz_brain.cpython-311.pyc
--------------------------------------------------------------------------------
/Quiz Game/__pycache__/ui.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/__pycache__/ui.cpython-311.pyc
--------------------------------------------------------------------------------
/Quiz Game/data.py:
--------------------------------------------------------------------------------
1 | import requests
2 |
3 | parameters = {
4 | "amount": 10,
5 | "type": "boolean",
6 | }
7 |
8 | response = requests.get("https://opentdb.com/api.php", params=parameters)
9 | response.raise_for_status()
10 | data = response.json()
11 | question_data = data["results"]
12 |
--------------------------------------------------------------------------------
/Quiz Game/images/Screenshot 2022-12-24 202043.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/images/Screenshot 2022-12-24 202043.jpg
--------------------------------------------------------------------------------
/Quiz Game/images/Screenshot 2022-12-24 202126.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/images/Screenshot 2022-12-24 202126.jpg
--------------------------------------------------------------------------------
/Quiz Game/images/Screenshot 2022-12-24 202149.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/images/Screenshot 2022-12-24 202149.jpg
--------------------------------------------------------------------------------
/Quiz Game/images/quizzler.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/images/quizzler.gif
--------------------------------------------------------------------------------
/Quiz Game/main.py:
--------------------------------------------------------------------------------
1 | from question_model import Question
2 | from data import question_data
3 | from quiz_brain import QuizBrain
4 | from ui import QuizInterface
5 |
6 | question_bank = []
7 | for question in question_data:
8 | question_text = question["question"]
9 | question_answer = question["correct_answer"]
10 | new_question = Question(question_text, question_answer)
11 | question_bank.append(new_question)
12 |
13 |
14 | quiz = QuizBrain(question_bank)
15 | quiz_ui = QuizInterface(quiz)
16 |
--------------------------------------------------------------------------------
/Quiz Game/question_model.py:
--------------------------------------------------------------------------------
1 | class Question:
2 |
3 | def __init__(self, q_text, q_answer):
4 | self.text = q_text
5 | self.answer = q_answer
6 |
--------------------------------------------------------------------------------
/Quiz Game/quiz_brain.py:
--------------------------------------------------------------------------------
1 | import html
2 |
3 |
4 | class QuizBrain:
5 |
6 | def __init__(self, q_list):
7 | self.question_number = 0
8 | self.score = 0
9 | self.question_list = q_list
10 | self.current_question = None
11 |
12 | def still_has_questions(self):
13 | return self.question_number < len(self.question_list)
14 |
15 | def next_question(self):
16 | self.current_question = self.question_list[self.question_number]
17 | self.question_number += 1
18 | q_text = html.unescape(self.current_question.text)
19 | return f"Q.{self.question_number}: {q_text}"
20 |
21 | def check_answer(self, user_answer):
22 | correct_answer = self.current_question.answer
23 | if user_answer.lower() == correct_answer.lower():
24 | self.score += 1
25 | return True
26 | else:
27 | return False
28 |
29 |
--------------------------------------------------------------------------------
/Quiz Game/resources/false.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/resources/false.png
--------------------------------------------------------------------------------
/Quiz Game/resources/true.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quiz Game/resources/true.png
--------------------------------------------------------------------------------
/Quote Generator/Images/Screenshot 2022-12-10 104047.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quote Generator/Images/Screenshot 2022-12-10 104047.jpg
--------------------------------------------------------------------------------
/Quote Generator/Images/Screenshot 2022-12-10 104128.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quote Generator/Images/Screenshot 2022-12-10 104128.jpg
--------------------------------------------------------------------------------
/Quote Generator/Images/Screenshot 2022-12-10 104247.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Quote Generator/Images/Screenshot 2022-12-10 104247.jpg
--------------------------------------------------------------------------------
/Quote Generator/README.md:
--------------------------------------------------------------------------------
1 | **QUOTE GENERATOR**
2 |
3 | **GOAL**
4 | The Goal of this app to Show Random Quote.
5 |
6 | **DESCRIPTION**
7 | This is a Quote Generator in python, made using Tkinter.
8 |
9 | ### LIBRARIES NEEDED
10 |
11 | 1. Tkinter: Provides great utility for making useful UIs
12 | 2. Requests package: This is used to fetch random quote from "http://api.quotable.io/random".
13 | 3. Threads: used to generate new quote and store it in quotes list in background.
14 |
15 | **WHAT I HAD DONE**
16 | 1) Import Tkinter, and defined the screen using it.
17 | 2) Import Request package and use it to generate a random quote, and add it to quotes list.
18 | 3) Created a quote label to print quote on screen, and a button to generate a random quote every time it is clicked.
19 | 4) Applied Color Scheme to make it look more appealing.
20 |
21 | ### DEMONSTRATION
22 | https://drive.google.com/drive/folders/1pLjCBYRUCPAfVfG6atZtpfVq0rCmUz3E?usp=share_link
23 |
24 | ### Sarthak Joleya ###
25 |
--------------------------------------------------------------------------------
/Quote Generator/main.py:
--------------------------------------------------------------------------------
1 | import tkinter as tk
2 | import requests
3 | from threading import Thread
4 |
5 | api = "http://api.quotable.io/random"
6 | quotes = []
7 | quote_number = 0
8 | MAX_QUOTES = 5
9 |
10 | #Configuring Screen
11 | screen = tk.Tk()
12 | screen.geometry("900x268")
13 | screen.title("Random Quote Generator")
14 | screen.grid_columnconfigure(0, weight=1)
15 | screen.resizable (False, False)
16 | screen.configure(bg = '#5271E8')
17 |
18 |
19 | #Functions
20 | def load_quotes():
21 | global quotes
22 | print('Loading Quotes. Please Wait a Moment')
23 | for x in range(MAX_QUOTES):
24 | random_quote = requests.get(api).json()
25 | content = random_quote['content']
26 | author = random_quote['author']
27 | quote = '"' + content + '"' + "\n\n" + "By " + author
28 | # print(quote)
29 | quotes.append(quote)
30 |
31 | load_quotes()
32 |
33 | def get_random_quote():
34 | global quote_label
35 | global quotes
36 | global quote_number
37 |
38 | quote_label.configure(text=quotes[quote_number])
39 | quote_number = quote_number + 1
40 | # print(quote_number)
41 | if quotes[quote_number] == quotes[-3]:
42 | thread = Thread(target=load_quotes)
43 | thread.start()
44 |
45 |
46 | # UI
47 | quote_label = tk.Label(screen, text="Click to generate new Quote", bg='#C9F4F9',height=6, pady=10, wraplength=800, font=("Times New Roman", 15, 'italic'))
48 | quote_label.grid(row=0,column=0, stick="WE", padx=20, pady=10)
49 |
50 | button = tk.Button(text="Generate", command=get_random_quote, bg='#ffffff', font=("Times New Roman", 14))
51 | button.grid(row=1,column=0, stick="WE", padx=20, pady=10)
52 |
53 | #Main Loop
54 | screen.mainloop()
55 |
--------------------------------------------------------------------------------
/Quote Generator/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | requests(command: pip install requests)
4 |
--------------------------------------------------------------------------------
/Random Name Generator/images/female name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Random Name Generator/images/female name.png
--------------------------------------------------------------------------------
/Random Name Generator/images/male name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Random Name Generator/images/male name.png
--------------------------------------------------------------------------------
/Random Name Generator/images/name gui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Random Name Generator/images/name gui.png
--------------------------------------------------------------------------------
/Random Name Generator/images/readme.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Random Name Generator/main.py:
--------------------------------------------------------------------------------
1 | from tkinter import *
2 | import indian_names
3 |
4 | root = Tk()
5 | root.title("Random Name Generator")
6 | root.geometry('500x500')
7 |
8 | #Creating labels
9 | l0 = Label(root, text = "Random Name Generator", font=("Arial",20))
10 | l0.pack()
11 | l1 = Label(root, text = "Enter the gender", font=("Arial", 16))
12 | l1.pack()
13 | input = StringVar()
14 | l2 = Entry(root, textvariable = input, font=("Arial", 16))
15 | l2.pack()
16 |
17 | def getName():
18 | l3['text'] = " "
19 | gender = input.get().lower()
20 | if gender == "male" :
21 | l3['text'] = indian_names.get_full_name(gender='male')
22 | elif gender == 'female':
23 | l3['text'] = indian_names.get_full_name(gender='female')
24 | else :
25 | l3['text'] = indian_names.get_full_name(gender='female')
26 |
27 | button = Button(root, text = "Get Name", command = getName, bg = "#50e3a4", fg = 'black', font=("Arial", 10))
28 | button.pack()
29 | l3 = Label(root, text = "", font=("Arial",16))
30 | l3.pack()
31 |
32 | root.mainloop()
33 |
--------------------------------------------------------------------------------
/Random Name Generator/readme.md:
--------------------------------------------------------------------------------
1 | # Random Name Generator
2 |
3 | **Approach**
4 |
5 | This app build using `tkinter 3.9.14` and `indian_names`.
6 | - Import the `indian_names` and `tkinter` modules.
7 | - get `gender` input.
8 | - Use `indian_names.get_full_name()` by providing parameters `gender='male'` or `gender='female'` to get male or female name respectively .
9 |
10 |
11 | **Demonstration**
12 |
13 | GUI looks like below :
14 |
15 | 
16 |
17 |
18 | 
19 |
20 |
21 |
22 | [**Durga Vamsi Krishna**](https://github.com/vamsikrishnarh7/)
23 |
--------------------------------------------------------------------------------
/Random Name Generator/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 | indian_names
5 |
--------------------------------------------------------------------------------
/Rock Paper Scissors/Images/Tie.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Rock Paper Scissors/Images/Tie.jpg
--------------------------------------------------------------------------------
/Rock Paper Scissors/Images/computerWins.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Rock Paper Scissors/Images/computerWins.jpg
--------------------------------------------------------------------------------
/Rock Paper Scissors/Images/firstScreen.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Rock Paper Scissors/Images/firstScreen.jpg
--------------------------------------------------------------------------------
/Rock Paper Scissors/Images/playerWins.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Rock Paper Scissors/Images/playerWins.jpg
--------------------------------------------------------------------------------
/Rock Paper Scissors/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | 1) Tkinter Library (GUI) = version 8.6
4 |
--------------------------------------------------------------------------------
/Rock Paper Scissors/tempCodeRunnerFile.py:
--------------------------------------------------------------------------------
1 | player_rock
--------------------------------------------------------------------------------
/Screen Recorder/Images/image1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Screen Recorder/Images/image1.jpeg
--------------------------------------------------------------------------------
/Screen Recorder/main.py:
--------------------------------------------------------------------------------
1 | import pyautogui
2 | import cv2
3 | import numpy as np
4 |
5 | resolution = (960, 540)
6 |
7 | codec = cv2.VideoWriter_fourcc(*"XVID")
8 |
9 | filename = "Recording2.avi"
10 |
11 | fps = 30.0
12 |
13 | out = cv2.VideoWriter(filename, codec, fps, resolution)
14 |
15 | cv2.namedWindow("Live", cv2.WINDOW_NORMAL)
16 |
17 | cv2.resizeWindow("Live", 480, 270)
18 |
19 | while True:
20 | img = pyautogui.screenshot()
21 | frame = np.array(img)
22 | frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
23 | out.write(frame)
24 | cv2.imshow('Live', frame)
25 |
26 | if cv2.waitKey(1) == ord('q'):
27 | break
28 |
29 | out.release()
30 |
31 | cv2.destroyAllWindows()
--------------------------------------------------------------------------------
/Screen Recorder/readme.md:
--------------------------------------------------------------------------------
1 | **QR Code Generator**
2 |
3 | **GOAL**
4 | Screen recorder
5 |
6 | **DESCRIPTION**
7 | Record screen while run the programme and stop while press `q`
8 |
9 | **WHAT I HAD DONE**
10 | Using pyautogui, numpy and cv2 wrote code
11 |
12 | **LIBRARIES NEEDED**
13 | pyautogui, numpy and cv2
14 |
15 | **DEMONSTRATION**
16 |
17 | 
18 |
19 | **YOUR NAME**
20 |
21 | Nikunj Rohit
22 | Twitter: @nikunj_rohit10
--------------------------------------------------------------------------------
/Screen Recorder/requirements.txt:
--------------------------------------------------------------------------------
1 | install pyautogui, numpy and cv2
2 | run in local machine
--------------------------------------------------------------------------------
/Simon Says/Images/Python Turtle Graphics 10-12-2022 00_18_49.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Simon Says/Images/Python Turtle Graphics 10-12-2022 00_18_49.png
--------------------------------------------------------------------------------
/Simon Says/Images/demonstration.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Simon Says/Images/demonstration.mp4
--------------------------------------------------------------------------------
/Simon Says/README.md:
--------------------------------------------------------------------------------
1 | # Simon Says Game
2 |
3 | ### GOAL
4 |
5 | This game aims at player repeating whatever Simon Says, that is follow the exact order in which the tiles have blinked. Failing to do so will result in player getting eliminated.
6 |
7 | ### DESCRIPTION
8 |
9 | The rules to play are as follows:
10 | 1:The tiles would blink in a random order in each turn
11 | 2: Player has to remember that pattern and click the tiles in that order
12 | 3: Player has to go forward as much as possible.
13 |
14 |
15 | Computer randomly selects the blinking tiles to play with.
16 |
17 |
18 |
19 | ### WHAT I HAD DONE
20 |
21 | Used the freegames library to find the correct functions to create the Simon Says game.
22 | Created functions such as blinking, tapping etc and used freegames library to randomise blinking of the tiles.
23 |
24 |
25 |
26 | ### LIBRARIES NEEDED
27 |
28 | 1:pip install freegames
29 | 2:pip install turtle
30 | 3:pip install pygame
31 |
32 |
33 | ### DEMONSTRATION
34 |
35 | 
36 |
37 | https://github.com/pundarikaksha7/Play-With-Python/blob/main/Simon%20Says/Images/demonstration.mp4
38 |
39 |
40 | ### Pundarikaksha
41 |
--------------------------------------------------------------------------------
/Simon Says/simonsays.py:
--------------------------------------------------------------------------------
1 | from random import choice
2 | from time import sleep
3 | from turtle import *
4 |
5 | from freegames import floor, square, vector
6 |
7 | pattern = []
8 | guesses = []
9 | score=0
10 | tiles = {
11 | vector(0, 0): ('red', 'dark red'),
12 | vector(0, -200): ('blue', 'dark blue'),
13 | vector(-200, 0): ('green', 'dark green'),
14 | vector(-200, -200): ('yellow', 'khaki'),
15 | }
16 |
17 | def grid():
18 | square(0, 0, 200, 'dark red')
19 | square(0, -200, 200, 'dark blue')
20 | square(-200, 0, 200, 'dark green')
21 | square(-200, -200, 200, 'khaki')
22 | update()
23 |
24 |
25 | def flash(tile):
26 | glow, dark = tiles[tile]
27 | square(tile.x, tile.y, 200, glow)
28 | update()
29 | sleep(0.5)
30 | square(tile.x, tile.y, 200, dark)
31 | update()
32 | sleep(0.5)
33 |
34 |
35 | def grow():
36 | tile = choice(list(tiles))
37 | pattern.append(tile)
38 |
39 | for tile in pattern:
40 | flash(tile)
41 | print("Simon says repeat the pattern")
42 | guesses.clear()
43 |
44 |
45 | def tap(x, y):
46 | onscreenclick(None)
47 | x = floor(x, 200)
48 | y = floor(y, 200)
49 | tile = vector(x, y)
50 | index = len(guesses)
51 |
52 | if tile != pattern[index]:
53 | print("Wrong pattern! Eliminated")
54 | global score
55 | print(f"Score :{score} ")
56 | exit()
57 |
58 | guesses.append(tile)
59 | flash(tile)
60 |
61 | if len(guesses) == len(pattern):
62 | score+=10
63 | grow()
64 |
65 | onscreenclick(tap)
66 |
67 |
68 | def start(x, y):
69 | grow()
70 | onscreenclick(tap)
71 |
72 |
73 | setup(420, 420, 370, 0)
74 | hideturtle()
75 | tracer(False)
76 | grid()
77 | onscreenclick(start)
78 | done()
79 | print(score)
--------------------------------------------------------------------------------
/Snake Game/README.md:
--------------------------------------------------------------------------------
1 | **SNAKE GAME**
2 |
3 | **GOAL**
4 | This is a classic snake game created in python programming language using pygame.
5 |
6 |
7 | **DESCRIPTION**
8 | Snake is a video game genre where the player maneuvers a line that grows bigger after eating something, typically apples. Know about snake game [here](https://en.wikipedia.org/wiki/Snake_(video_game_genre))
9 |
10 |
11 |
12 | To play this game download snake.py and resources in the same directory.
13 |
14 | You also need to have pygame installed in your computer. Learn how to install pygame from [here](https://www.pygame.org/wiki/GettingStarted#Pygame%20Installation)
15 |
16 | Open and run the file snake.py without making any modifications to it to ensure that everything is set up correctly. By "open and run" I mean do the following:
17 | * Go to your IDE. From the File menu, choose "Open".
18 | * Find the file snake.py and choose it.
19 | * The template snake.py file should now be open. Run the file and enjoy the game :-D
20 |
21 | You can play the game using up, left, right and down arrow keys to move the snake. Aim for apple and get highest score as possible :-D
22 |
23 |
24 | **WHAT I HAD DONE**
25 | In this game, I implemented three classes known as apples, snake and game, that will start up and carry out an interactive Snake game. The game uses a resources folder for graphics of apple, snake and game window as well as background music and other game sounds.
26 |
27 | **DEMONSTRATION**
28 | 
29 |
30 | 
31 |
32 |
33 | I wish you enjoy the classic snake game. :-D
34 |
35 | **AAYUSH SINHA**
36 |
--------------------------------------------------------------------------------
/Snake Game/resources/apple.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Snake Game/resources/apple.jpg
--------------------------------------------------------------------------------
/Snake Game/resources/background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Snake Game/resources/background.jpg
--------------------------------------------------------------------------------
/Snake Game/resources/bg_music_1.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Snake Game/resources/bg_music_1.mp3
--------------------------------------------------------------------------------
/Snake Game/resources/block.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Snake Game/resources/block.jpg
--------------------------------------------------------------------------------
/Snake Game/resources/crash.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Snake Game/resources/crash.mp3
--------------------------------------------------------------------------------
/Snake Game/resources/ding.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Snake Game/resources/ding.mp3
--------------------------------------------------------------------------------
/Snake Game/screenshots/Screenshot 2022-12-07 at 3.26.27 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Snake Game/screenshots/Screenshot 2022-12-07 at 3.26.27 PM.png
--------------------------------------------------------------------------------
/Snake Game/screenshots/Screenshot 2022-12-07 at 3.28.03 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Snake Game/screenshots/Screenshot 2022-12-07 at 3.28.03 PM.png
--------------------------------------------------------------------------------
/Space Invaders Game/Images/Screenshot 2022-12-09 at 1.05.38 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/Images/Screenshot 2022-12-09 at 1.05.38 PM.png
--------------------------------------------------------------------------------
/Space Invaders Game/Images/Screenshot 2022-12-09 at 1.09.39 PM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/Images/Screenshot 2022-12-09 at 1.09.39 PM.png
--------------------------------------------------------------------------------
/Space Invaders Game/resources/background-black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/resources/background-black.png
--------------------------------------------------------------------------------
/Space Invaders Game/resources/pixel_laser_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/resources/pixel_laser_blue.png
--------------------------------------------------------------------------------
/Space Invaders Game/resources/pixel_laser_green.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/resources/pixel_laser_green.png
--------------------------------------------------------------------------------
/Space Invaders Game/resources/pixel_laser_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/resources/pixel_laser_red.png
--------------------------------------------------------------------------------
/Space Invaders Game/resources/pixel_laser_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/resources/pixel_laser_yellow.png
--------------------------------------------------------------------------------
/Space Invaders Game/resources/pixel_ship_blue_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/resources/pixel_ship_blue_small.png
--------------------------------------------------------------------------------
/Space Invaders Game/resources/pixel_ship_green_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/resources/pixel_ship_green_small.png
--------------------------------------------------------------------------------
/Space Invaders Game/resources/pixel_ship_red_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/resources/pixel_ship_red_small.png
--------------------------------------------------------------------------------
/Space Invaders Game/resources/pixel_ship_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Space Invaders Game/resources/pixel_ship_yellow.png
--------------------------------------------------------------------------------
/Speech to Text App/images/readme.txt:
--------------------------------------------------------------------------------
1 | lorem ipsum
2 |
--------------------------------------------------------------------------------
/Speech to Text App/images/speech to text 1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Speech to Text App/images/speech to text 1.png
--------------------------------------------------------------------------------
/Speech to Text App/images/speech to text 2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Speech to Text App/images/speech to text 2.png
--------------------------------------------------------------------------------
/Speech to Text App/main.py:
--------------------------------------------------------------------------------
1 | from tkinter import *
2 | import speech_recognition as aa
3 | import pyttsx3
4 |
5 | root = Tk()
6 | root.title('Speech to Text')
7 | root.geometry('500x500')
8 |
9 | def action():
10 | status['text'] = "Listening..."
11 | listener = aa.Recognizer()
12 |
13 | # check microphone is working or not
14 | try :
15 | #using microphone
16 | with aa.Microphone() as origin:
17 | # speech_output['text'] = "Listening"
18 | print("Listening...")
19 | speech = listener.listen(origin)
20 | #recognise the voice and convert into text
21 | instruction = listener.recognize_google(speech)
22 | except :
23 | pass
24 |
25 | status['text'] = " "
26 | speech_output['text'] = instruction
27 |
28 | label = Label(root, text="Speech to Text Converter",font=("Arial", 20) )
29 | label.pack()
30 | status = Label(root, text=" ", font=("Arial", 10))
31 | status.pack()
32 | button = Button(root, text="Talk", command=action, font=("Arial", 12))
33 | button.pack()
34 | speech_output = Label(text="", font=("Arial", 16))
35 | speech_output.pack()
36 |
37 |
38 | root.mainloop()
39 |
--------------------------------------------------------------------------------
/Speech to Text App/readme.md:
--------------------------------------------------------------------------------
1 | # Speech to Text App
2 |
3 | This is done with the help of Google Speech Recognition.
4 | *This requires an active internet connection to work*. However, there are certain offline Recognition systems such as PocketSphinx,
5 | but have a very rigorous installation process that requires several dependencies. Google Speech Recognition is one of the easiest to use.
6 |
7 | ## Insatllation Required
8 | - Python speech recognition module
9 |
10 | ```pip install speechrecognition```
11 | - Python pyttsx3 module:
12 |
13 | ```pip install pyttsx3```
14 |
15 | ## Approach
16 |
17 | This app build using `tkinter 3.9.14`, `speechrecognition` and `pyttsx3`.
18 | - Import the `tkinter`, `speechrecognition` and `pyttsx3` modules.
19 | - initiate `Recognizer()`
20 | - access microphone using `Microphone()` and use `listen()` to listen what you are saying
21 | - convert the speech to text using `recognize_google()` by passing the speech that is collected using `listen()`
22 |
23 | ## Demonstration
24 |
25 |
26 |
27 | https://user-images.githubusercontent.com/89008784/209456864-90e11a0c-f7f7-4356-97ac-55aae59a46bd.mp4
28 |
29 |
30 |
31 | [**Durga Vamsi Krishna**](https://github.com/vamsikrishnarh7/)
32 |
--------------------------------------------------------------------------------
/Speech to Text App/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter
4 | SpeechRecognition
5 | pyttsx3
6 |
7 |
--------------------------------------------------------------------------------
/Spelling Corrector App/README.md:
--------------------------------------------------------------------------------
1 | **SPELLING CHECKER**
2 |
3 | **GOAL**
4 | This is a gui based spelling checker created in python programming language. You can check the spelling of any word or sentence by using this code.
5 |
6 |
7 | **DESCRIPTION**
8 | The goal is to check the spelling of any word or sentence by using the user's input and display the result (suggesting the correct spelling) based on the user's input.
9 |
10 | To use this code download spellingCheckerGUI.py and resources in the same directory.
11 | + Open and run the file spellingCheckerGUI.py
12 | + enjoy the code :-D
13 |
14 | **WHAT I HAD DONE**
15 | In this code, I implemented the code by using the following concepts:
16 | + Tkinter module
17 | + spellchecker module
18 |
19 | **DEMONSTRATION**
20 | 
21 | 
22 | 
23 | 
24 |
25 | I wish you enjoy this code :-D
26 |
27 | **SRIHARI S**
--------------------------------------------------------------------------------
/Spelling Corrector App/images/app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Spelling Corrector App/images/app.png
--------------------------------------------------------------------------------
/Spelling Corrector App/images/app_correct.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Spelling Corrector App/images/app_correct.png
--------------------------------------------------------------------------------
/Spelling Corrector App/images/app_no_input.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Spelling Corrector App/images/app_no_input.png
--------------------------------------------------------------------------------
/Spelling Corrector App/images/app_start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Spelling Corrector App/images/app_start.png
--------------------------------------------------------------------------------
/Spelling Corrector App/requirements.txt:
--------------------------------------------------------------------------------
1 | To run the code successfully, you need to have the following libraries installed:
2 | tkinter (for GUI) - To install tkinter, run the following command in the terminal: pip install tkinter
3 | textblob (for sentiment analysis) - To install textblob, run the following command in the terminal: pip install textblob
--------------------------------------------------------------------------------
/Spelling Corrector App/spellingCorrector.py:
--------------------------------------------------------------------------------
1 | #Importing modules
2 | from textblob import TextBlob
3 | from tkinter import *
4 |
5 | #Creating the window
6 | wn = Tk()
7 | wn.title("Spell Checker App")
8 | wn.geometry('500x250')
9 | wn.configure(background='SlateGray1')
10 |
11 | #Creating the variables to get the word and set the correct word
12 | text=StringVar(wn)
13 | correctedText =StringVar(wn)
14 |
15 | #The main label
16 | Label(wn, text='Spell Checker',bg='SlateGray1', fg='gray30', font=('Times', 20,'bold')).place(x=100, y=10)
17 |
18 | #Getting the input of word from the user
19 | Label(wn, text='Please enter the word',bg='SlateGray1',font=('calibre',13,'normal'), anchor="e", justify=LEFT).place(x=20, y=70)
20 |
21 | Entry(wn,textvariable=text, width=35,font=('calibre',13,'normal')).place(x=20,y=110)
22 |
23 | #Label to show the correct word
24 | opLabel = Label(wn, textvariable=correctedText, bg='SlateGray1',anchor="e",font=('calibre',13,'normal'), justify=LEFT).place(x=20, y=140)
25 |
26 | #Function to check the spelling
27 | def checkSpelling():
28 | a = text.get() #Getting the word user entered
29 | b = TextBlob(a) #Getting the object for the word
30 | if(a==""):
31 | Label(wn, text='Please enter a word or sentence',bg='SlateGray1', fg='red', font=('calibre',13,'normal')).place(x=20, y=200)
32 | elif(a==str(b.correct())):
33 | Label(wn, text='The given input is already correct',bg='SlateGray1', fg='green', font=('calibre',13,'normal')).place(x=20, y=200)
34 | else:
35 | correctedText.set("The corrected word or sentence is: "+str(b.correct())) #Showing the corrected word
36 |
37 | #Button to do the spell check
38 | Button(wn, text="Click Me", bg='SlateGray4',font=('calibre', 13),
39 | command=checkSpelling).place(x=20, y=170)
40 |
41 | #Runs the window till it is closed by the user
42 | wn.mainloop()
43 |
44 |
--------------------------------------------------------------------------------
/Stack tower/Images/Screenshot 2022-12-07 181126.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Stack tower/Images/Screenshot 2022-12-07 181126.png
--------------------------------------------------------------------------------
/Stack tower/Images/Screenshot 2022-12-07 181226.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Stack tower/Images/Screenshot 2022-12-07 181226.png
--------------------------------------------------------------------------------
/Stack tower/Images/Untitled video - Made with Clipchamp (1).gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Stack tower/Images/Untitled video - Made with Clipchamp (1).gif
--------------------------------------------------------------------------------
/Stack tower/Images/game.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Stack tower/Images/game.png
--------------------------------------------------------------------------------
/Stack tower/README.md:
--------------------------------------------------------------------------------
1 | **Stack Tower**
2 |
3 | **GOAL**
4 | The Goal of this game is to give satisfactory to mind.
5 |
6 | **DESCRIPTION**
7 | Stack Tower is played on a 600 X 500 visual, who alternately place blocks over and over it . the Player has to get highest score than previous, wins allways to them. A game in it to obtain satisfaction till it needed.
8 |
9 | ### LIBRARIES NEEDED
10 |
11 | 1. PyGame: Pygame is a cross-platform set of Python modules which is used to create video games. Make sure to install PyGame library before playing the game.
12 |
13 | **WHAT I HAD DONE**
14 | 1) Import Libraries - pygame and initialize it.
15 | 2) Define the layout of the Stack Tower, providing necessary arguments such as Screen fill, etc.
16 | 3) Generate basic logic, and updating it everytime player clicks on it. Draw figures using function.
17 | 4) Check the game over condition is satisfied.
18 | 5) Print on screen(Game over!).
19 |
20 |
21 | **Demonstration**
22 |
23 | https://drive.google.com/drive/folders/1hQ_d4RagELnw94RQVCg7rfnLkS-ZCqZc?usp=sharing
24 |
25 |
26 | ### Shivank Mishra ###
27 |
--------------------------------------------------------------------------------
/Stack tower/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | pygame - 2.1.2
4 |
--------------------------------------------------------------------------------
/Stopwatch/images/stopwatch1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Stopwatch/images/stopwatch1.png
--------------------------------------------------------------------------------
/Stopwatch/images/stopwatch2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Stopwatch/images/stopwatch2.png
--------------------------------------------------------------------------------
/Stopwatch/readme.md:
--------------------------------------------------------------------------------
1 | # Stopwatch
2 | **Features**
3 |
4 | In this app, the user will be able to do following:
5 |
6 | - start the timer
7 | - stop the timer
8 | - reset the timer
9 |
10 |
11 | **Approach**
12 |
13 | This app build using `tkinter 3.9.14` and `datetime`.
14 | - Import the datetime and tkinter modules.
15 | - `strftime()` gives the time as `Hours:Minutes:Seconds` format
16 |
17 | **Demonstration**
18 |
19 | GUI looks like below :
20 |
21 | 
22 |
23 | 
24 |
25 | [**Durga Vamsi Krishna**](https://github.com/vamsikrishnarh7/)
26 |
--------------------------------------------------------------------------------
/Stopwatch/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 | datetime
5 |
--------------------------------------------------------------------------------
/Sudoku Game/README.md:
--------------------------------------------------------------------------------
1 | # SUDOKU IN PYTHON
2 |
3 | It is one of the most popular puzzle games that we have been playing since our childhood.
4 | It’s a great brain game as it helps the player to improve their brain capacity.
5 |
6 |
7 | ### GOAL
8 |
9 | In this puzzle game, the user has to fill a 9×9 grid with digits such that each row,
10 | each column and each of the 3×3 subgrids that form the grid contains the digit from 1 to 9.
11 |
12 | ### DESCRIPTION
13 |
14 | The main objective of the project is to develop a sudoku game.
15 | 1.Install pygame in order to start the project.
16 | 2.Import the pygame module for this project.
17 |
18 | ### Project File Structure
19 |
20 | Project File Structure
21 | Let’s start developing python sudoku game:
22 |
23 | 1. Installation of Pygame module
24 | 2. Initializing sudoku game window and variables
25 | 3. Function for highlighting selected cell
26 | 4. Function to draw lines for making sudoku grid
27 | 5. Function to fill value in the cell
28 | 6. Function for raising error when wrong value is entered
29 | 7. Function to check if the entered value is valid
30 | 8. Function to solve sudoku game
31 | 9. Function to show result
32 | 10. Rest code
33 |
34 |
35 | ### LIBRARIES NEEDED
36 |
37 | The follwing are required :
38 | 1) Pygame(2.1.2) (python)
39 |
40 |
41 |
42 | ### NAME
43 | Aditi Kesarwani
44 |
--------------------------------------------------------------------------------
/Sudoku Game/images/Capture.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Sudoku Game/images/Capture.PNG
--------------------------------------------------------------------------------
/Sudoku Game/images/Filled Grid.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Sudoku Game/images/Filled Grid.PNG
--------------------------------------------------------------------------------
/Sudoku Game/requirements.txt:
--------------------------------------------------------------------------------
1 | python 3.7>
2 | The required library is:
3 |
4 | 1) pygame = version 2.1.2
5 |
6 |
--------------------------------------------------------------------------------
/TODO App/images/2022-12-17 (1).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/TODO App/images/2022-12-17 (1).png
--------------------------------------------------------------------------------
/TODO App/images/todo ui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/TODO App/images/todo ui.png
--------------------------------------------------------------------------------
/TODO App/main.py:
--------------------------------------------------------------------------------
1 | from tkinter.font import Font as f
2 | from tkinter import *
3 |
4 |
5 | root = Tk()
6 | root.geometry('500x500')
7 | root.title('TODO App')
8 |
9 | my_font = f(
10 | family = "Arial",
11 | size = 16,
12 | weight = "bold"
13 | )
14 |
15 | my_frame = Frame(root)
16 | my_frame.pack(pady=10)
17 |
18 | my_list = Listbox(
19 | my_frame,
20 | font = my_font,
21 | width = 25,
22 | height = 5,
23 | bg = "#deecec",
24 | bd = 0,
25 | fg = "#464646",
26 | selectbackground ="#c8a2d6",
27 | highlightthickness = 0 ,
28 | activestyle = "none"
29 | )
30 | my_list.pack(side = LEFT, fill = BOTH)
31 | dummy_list = ["Fast API", "TKinter", "Python", "Open Source"]
32 | for item in dummy_list :
33 | my_list.insert(END, item)
34 |
35 |
36 |
37 | my_scrollbar = Scrollbar(my_frame)
38 | my_scrollbar.pack(side = RIGHT, fill = BOTH)
39 |
40 | my_list.config(yscrollcommand=my_scrollbar.set)
41 | my_scrollbar.config(command=my_list.yview)
42 |
43 | # creating entry box
44 | my_entry = Entry(root,font=("Arial", 20))
45 | my_entry.pack(pady = 20)
46 | # buttons frame
47 | button_frame = Frame(root)
48 | button_frame.pack(pady = 20)
49 |
50 | # button functions
51 | def add_item():
52 | new_item = my_entry.get()
53 | if len(new_item) >=1 :
54 | my_list.insert(END, my_entry.get())
55 | my_entry.delete(0, END)
56 | def delete_item():
57 | my_list.delete(ANCHOR)
58 |
59 |
60 | # adding buttons
61 | dlt_button = Button(button_frame, text = "Delete", command = delete_item, bg = "#fb6b6c", fg = 'white')
62 | add_button = Button(button_frame,width=5, text = "Add", command = add_item, bg="#50e3a4", fg = 'white')
63 | bfont = f(family='Arial', weight = 'bold', size = 14)
64 | dlt_button['font'] = bfont
65 | add_button['font'] = bfont
66 | dlt_button.grid(row = 0, column = 1, padx = 20)
67 | add_button.grid(row = 0, column =0)
68 |
69 |
70 | root.mainloop()
71 |
--------------------------------------------------------------------------------
/TODO App/readme.md:
--------------------------------------------------------------------------------
1 | **TODO App**
2 |
3 |
4 | **Features**
5 |
6 | In this app, the user will be able to do following:
7 |
8 | - Create (add) a new task or adding a new ToDo in the ToDo List App.
9 | - See all the tasks or View all the ToDos that were added to the app.
10 | - Delete any ToDo from the list of ToDos.
11 | - Exit from the app.
12 |
13 | **Approach**
14 |
15 | This app build using `tkinter 3.9.14` which is a python library
16 |
17 |
18 | **Durga Vamsi Krishna**[https://github.com/vamsikrishnarh7/]
19 |
--------------------------------------------------------------------------------
/TODO App/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 |
--------------------------------------------------------------------------------
/Tetris/Images/Capture1.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Tetris/Images/Capture1.PNG
--------------------------------------------------------------------------------
/Tetris/Images/Screenshot 2022-12-08 201836.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Tetris/Images/Screenshot 2022-12-08 201836.jpg
--------------------------------------------------------------------------------
/Tetris/Images/Screenshot 2022-12-09 090423.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Tetris/Images/Screenshot 2022-12-09 090423.jpg
--------------------------------------------------------------------------------
/Tetris/README.md:
--------------------------------------------------------------------------------
1 | **TETRIS GAME**
2 |
3 | **GOAL**
4 | The Goal is to Create a Tetris Game.
5 |
6 | **DESCRIPTION**
7 | Tetris is a tile-matching puzzle game which has a simple goal of destroying lines of blocks before it reaches the top. The line is made up of a square block. The Tetrimino is the shape of the 4 connected blocks that fall down. The player will have to use the Tetrominos to create lines that fill the box. This will clear the lines of blocks. The game continues, the lines of blocks that is not completely filled will drop down as many lines that were cleared. The game has levels of difficulties which rises as the game is being played.
8 |
9 | **BASIC CONTROLS**
10 | 1) Press Left arrow key(←) and right arrow key(→) to move the block within the grid.
11 | 2) Press up arrow key(↑) to rotate the falling piece.
12 | 3) Press down arrow key(↓) to increase falling speed.
13 |
14 | ### LIBRARIES NEEDED
15 |
16 | 1. PyGame: Pygame is a cross-platform set of Python modules which is used to create video games. Make sure to install PyGame library before playing the game.
17 | 2. Random: Random is a inbuilt python library to generate random blocks in this game.
18 |
19 | **WHAT I HAD DONE**
20 | 1) Import Libraries - pygame and initialize it.
21 | 2) Declared necessary variables and defined all basic block shapes and their rotations, in a list.
22 | 3) Declared necessary functions such as create_grid() for grid creation, valid_space() to check for empty space, etc.
23 | 4) Created main() function, that has all the game logic written to it. Declared falling speed, all key commands, rotation logic and finally place block on grid, after it reached the surface.
24 | 5) Declared a _main()_ function, containing main loop and declared screen, and wrote update logic.
25 |
26 | ### DEMONSTRATION
27 | https://drive.google.com/drive/folders/1NYllpKOLlIBzZfhHnPj0CPHrlpA58Jma?usp=share_link
28 |
29 | ### Sarthak Joleya ###
30 |
--------------------------------------------------------------------------------
/Tetris/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | pygame - 2.1.2
4 |
--------------------------------------------------------------------------------
/Text Extractor/images/pic1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Text Extractor/images/pic1.png
--------------------------------------------------------------------------------
/Text Extractor/images/pic2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Text Extractor/images/pic2.png
--------------------------------------------------------------------------------
/Text Extractor/images/pic3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Text Extractor/images/pic3.png
--------------------------------------------------------------------------------
/Text Extractor/main.py:
--------------------------------------------------------------------------------
1 | import tkinter
2 | import pytesseract
3 | from tkinter import filedialog
4 | from PIL import Image
5 |
6 | def openFile():
7 | '''This function opens the directory'''
8 | # opening files
9 | filename = filedialog.askopenfilename(title="Open Image",initialdir='C:\Downloads',filetypes=[("PNG","*.png"),("JPG","*.jpg"),("JPEG","*.jpeg"),("ICON","*.ico")])
10 | file_label.configure(text=filename)
11 | output_text.delete("1.0", tkinter.END)
12 | img = Image.open(filename)
13 | print(img)
14 | # path where the tesseract module is installed
15 | pytesseract.pytesseract.tesseract_cmd ='C:/Program Files/Tesseract-OCR/tesseract.exe'
16 | # converts the image to result and saves it into result variable
17 | result = pytesseract.image_to_string(img)
18 | output_text.insert(tkinter.END, result)
19 |
20 | root = tkinter.Tk()
21 | root.title("Image to Text Converter")
22 |
23 | file_label = tkinter.Label(root,text="No image selected")
24 | file_label.pack()
25 | #ouput text widget
26 | output_text = tkinter.Text(root)
27 | output_text.pack()
28 | #button to select the file
29 | open_file_btn = tkinter.Button(root, text="Select Image", command= openFile)
30 | open_file_btn.pack()
31 |
32 | root.mainloop()
33 |
--------------------------------------------------------------------------------
/Text Extractor/readme.md:
--------------------------------------------------------------------------------
1 | # Text Extractor
2 |
3 | ## Approach
4 |
5 | This app build using `tkinter 3.9.14` and `pytesseract`.
6 | - Import the pytesseract and tkinter modules.
7 | - Open the image files.
8 | - use pytesseract.image_to_string() to extract the text from the image.
9 | - display the text.
10 |
11 | ## Demonstration
12 |
13 | GUI looks like below :
14 |
15 | 
16 |
17 | Select image :
18 |
19 | 
20 |
21 | output :
22 |
23 | 
24 |
25 | [**Durga Vamsi Krishna**](https://github.com/vamsikrishnarh7/)
26 |
--------------------------------------------------------------------------------
/Text Extractor/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 | pytesseract
5 |
--------------------------------------------------------------------------------
/Text_Utility/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Text_Utility/1.png
--------------------------------------------------------------------------------
/Text_Utility/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Text_Utility/2.png
--------------------------------------------------------------------------------
/Text_Utility/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Text_Utility/3.png
--------------------------------------------------------------------------------
/Text_Utility/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Text_Utility/4.png
--------------------------------------------------------------------------------
/Text_Utility/README.md:
--------------------------------------------------------------------------------
1 | **GAME TITLE** Text Utility [Analysis]
2 |
3 | **GOAL**
4 |
5 | To help people in text correction in their day-to-day life with the help of text correction.
6 |
7 |
8 | **DESCRIPTION**
9 |
10 | We all write some stuff and some time we want to check
11 | what we want to know how much word/letter i have written so I have planned to build this project.
12 | This project will definitely help others to use the text-utility for their best practices in write up and
13 | more features in future as per the requirements.
14 |
15 | **WHAT I HAD DONE**
16 |
17 | I have implemented the gui for the UI with the help of tkinter [python library] and have implemented the buttons with it's backend logic that help to get the text corrected.
18 |
19 |
20 | **LIBRARIES NEEDED**
21 |
22 | tkinter, pip
23 |
24 | **DEMONSTRATION**
25 | ## Starting
26 | 
27 |
28 | ## File Selection
29 | 
30 | ## Before
31 | 
32 |
33 | ## After
34 | 
35 | **AUTHOR**
36 |
37 | Made by Yash Mistry. Connect with me on [Twitter](https://twitter.com/Yash240408) or [LinkedIn](https://www.linkedin.com/in/yashmistry24/).
38 |
--------------------------------------------------------------------------------
/Text_Utility/file.txt:
--------------------------------------------------------------------------------
1 | TextUtils
2 | A tool for analyzing text data in Django backend
3 |
4 | It is a simple django project or website in which we can Analyze text.
5 |
6 | What Can We do from Textutils ?
7 | 1)Remove Punctuations
8 | 2)UPPERCASE
9 | 3)lowercase
10 | 4)New Line Remove
11 | 5)Extra Spaces Remover
12 |
--------------------------------------------------------------------------------
/Tic Tac Toe/Images/Image1.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Tic Tac Toe/Images/Image1.PNG
--------------------------------------------------------------------------------
/Tic Tac Toe/Images/Image2.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Tic Tac Toe/Images/Image2.PNG
--------------------------------------------------------------------------------
/Tic Tac Toe/Images/Image3.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Tic Tac Toe/Images/Image3.PNG
--------------------------------------------------------------------------------
/Tic Tac Toe/README.md:
--------------------------------------------------------------------------------
1 | **TIC TAC TOE**
2 |
3 | **GOAL**
4 | The Goal of this game is to create a Tic Tac Toe game.
5 |
6 | **DESCRIPTION**
7 | Tic-tac-toe is played on a three-by-three grid by two players, who alternately place the marks X and O in one of the nine spaces in the grid. First Player to get 3 consecutive squares, diagonally or horizontally wins the game. A game in which two players take turns placing circles and crosses on a 3x3 grid and attempt to obtain three of the same symbols in a straight line.
8 |
9 | ### LIBRARIES NEEDED
10 |
11 | 1. PyGame: Pygame is a cross-platform set of Python modules which is used to create video games. Make sure to install PyGame library before playing the game.
12 |
13 | **WHAT I HAD DONE**
14 | 1) Import Libraries - pygame and initialize it.
15 | 2) Define the layout of the Tic Tac Toe Board, by drawing four lines with draw_lines() function, and providing necessary arguments such as Screen fill, etc.
16 | 3) Generate basic logic, using a 3x3 list, and updating it everytime player clicks on it. Draw figures using draw_figures() function.
17 | 4) Check the winning condition, by iterating over all rows and columns, and two diagonals. Create a Winning line if winning condition is satisfied.
18 | 5) Print on screen, if any of the two players won, or is it a tie, if no empty spaces remain.
19 |
20 | ### DEMONSTRATION
21 | (https://drive.google.com/drive/folders/10w8ITuu04ra6uKS-rockJmNyM5K4uvVk?usp=share_link)
22 |
23 | ### Sarthak Joleya ###
24 |
--------------------------------------------------------------------------------
/Tic Tac Toe/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | pygame - 2.1.2
4 |
--------------------------------------------------------------------------------
/Tiles Puzzle/README.md:
--------------------------------------------------------------------------------
1 | **Tiles Puzzle**
2 |
3 | **GOAL**
4 |
5 | The goal of the Tile puzzle game is to reorder the pieces in the correct order by moving tiles into the blank space one by one
6 |
7 | **DESCRIPTION**
8 |
9 | The player is first presented with a grid containing 8 numbered tiles and a blank space
10 | To play the game, the player has to click on the shuffle button in the grid that will shuffle and start the puzzle timer
11 |
12 | The player can swap the position of the blank tile with any adjacent numbered tile by a single mouse click on the desired numbered tile
13 |
14 | To complete the puzzle the player needs to put every tile in the correct position in the grid
15 |
16 | The high score stores the least time that the player has taken the puzzle
17 |
18 |
19 | **LIBRARIES NEEDED**
20 |
21 | 1) Pygame
22 | 2) Random
23 |
24 | **DEMONSTRATION**
25 |
26 | 
27 |
28 | **YOUR NAME**
29 |
30 | Kshitij Maurya
31 |
--------------------------------------------------------------------------------
/Tiles Puzzle/__pycache__/settings.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Tiles Puzzle/__pycache__/settings.cpython-37.pyc
--------------------------------------------------------------------------------
/Tiles Puzzle/__pycache__/sprite.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Tiles Puzzle/__pycache__/sprite.cpython-37.pyc
--------------------------------------------------------------------------------
/Tiles Puzzle/high_score.txt:
--------------------------------------------------------------------------------
1 | 99999
--------------------------------------------------------------------------------
/Tiles Puzzle/settings.py:
--------------------------------------------------------------------------------
1 | # COLORS (r, g, b)
2 | WHITE = (255, 255, 255)
3 | BLACK = (0, 0, 0)
4 | DARKGREY = (40, 40, 40)
5 | LIGHTGREY = (100, 100, 100)
6 | BGCOLOUR = DARKGREY
7 |
8 | # game settings
9 | WIDTH = 800
10 | HEIGHT = 641
11 | FPS = 60
12 | title = "Sliding Puzzle Game"
13 | TILESIZE = 128
14 | GAME_SIZE = 3
15 |
--------------------------------------------------------------------------------
/Turtle Crossing Game/Images/Screenshot 2022-12-26 142605.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Turtle Crossing Game/Images/Screenshot 2022-12-26 142605.jpg
--------------------------------------------------------------------------------
/Turtle Crossing Game/Images/Screenshot 2022-12-26 142626.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Turtle Crossing Game/Images/Screenshot 2022-12-26 142626.jpg
--------------------------------------------------------------------------------
/Turtle Crossing Game/Images/Screenshot 2022-12-26 142656.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Turtle Crossing Game/Images/Screenshot 2022-12-26 142656.jpg
--------------------------------------------------------------------------------
/Turtle Crossing Game/README.md:
--------------------------------------------------------------------------------
1 | **Turtle Crossing Game**
2 |
3 | **GOAL**
4 | The Goal of this game is to create a Turtle Crossing Game.
5 |
6 | **DESCRIPTION**
7 | In this game, turtle has to cross the road, with running cars safely. If road crossed safely, turtle moves to next level, with even faster cars.
8 |
9 | ### LIBRARIES NEEDED
10 |
11 | 1. Turtle: provides a powerful graphic tool.
12 |
13 | **WHAT I HAD DONE**
14 | 1) Create a turtle player that starts at the bottom of the screen and listen for the "Up" keypress to move the turtle north.
15 | 2) Create cars that are 20px high by 40px wide that are randomly generated along the y-axis and move to the left edge of the screen.
16 | 3) Detect when the turtle player collides with a car and stop the game if this happens.
17 | 4) Detect when the turtle player has reached the top edge of the screen (i.e., reached the FINISH_LINE_Y). When this happens, return the turtle to the starting position and increase the speed of the cars.
18 | 5) Create a scoreboard that keeps track of which level the user is on. Every time the turtle player does a successful crossing, the level should increase. When the turtle hits a car, GAME OVER should be displayed in the centre.
19 |
20 | ### DEMONSTRATION
21 | (https://drive.google.com/drive/folders/1HcUC_fTHpEL1mGZdLIifHHlVecsB3Egg?usp=share_link)
22 |
23 | ### GAMEPLAY
24 | 
25 |
26 | ### Sarthak Joleya ###
27 |
--------------------------------------------------------------------------------
/Turtle Crossing Game/__pycache__/car_manager.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Turtle Crossing Game/__pycache__/car_manager.cpython-311.pyc
--------------------------------------------------------------------------------
/Turtle Crossing Game/__pycache__/player.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Turtle Crossing Game/__pycache__/player.cpython-311.pyc
--------------------------------------------------------------------------------
/Turtle Crossing Game/__pycache__/scoreboard.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Turtle Crossing Game/__pycache__/scoreboard.cpython-311.pyc
--------------------------------------------------------------------------------
/Turtle Crossing Game/car_manager.py:
--------------------------------------------------------------------------------
1 | from turtle import Turtle
2 | import random
3 |
4 | COLORS = ["red", "orange", "yellow", "green", "blue", "purple"]
5 | STARTING_MOVE_DISTANCE = 5
6 | MOVE_INCREMENT = 10
7 |
8 |
9 | class CarManager:
10 |
11 | def __init__(self):
12 | self.all_cars = []
13 | self.car_speed = STARTING_MOVE_DISTANCE
14 |
15 | def create_car(self):
16 | random_chance = random.randint(1, 6)
17 | if random_chance == 1:
18 | new_car = Turtle("square")
19 | new_car.shapesize(stretch_wid=1, stretch_len=2)
20 | new_car.penup()
21 | new_car.color(random.choice(COLORS))
22 | random_y = random.randint(-250, 250)
23 | new_car.goto(300, random_y)
24 | self.all_cars.append(new_car)
25 |
26 | def move_cars(self):
27 | for car in self.all_cars:
28 | car.backward(self.car_speed)
29 |
30 | def level_up(self):
31 | self.car_speed += MOVE_INCREMENT
--------------------------------------------------------------------------------
/Turtle Crossing Game/main.py:
--------------------------------------------------------------------------------
1 | import time
2 | from turtle import Screen
3 | from player import Player
4 | from car_manager import CarManager
5 | from scoreboard import Scoreboard
6 |
7 | screen = Screen()
8 | screen.setup(width=600, height=600)
9 | screen.tracer(0)
10 |
11 | player = Player()
12 | car_manager = CarManager()
13 | scoreboard = Scoreboard()
14 |
15 | screen.listen()
16 | screen.onkey(player.go_up, "Up")
17 |
18 | game_is_on = True
19 | while game_is_on:
20 | time.sleep(0.1)
21 | screen.update()
22 |
23 | car_manager.create_car()
24 | car_manager.move_cars()
25 |
26 | #Detect collision with car
27 | for car in car_manager.all_cars:
28 | if car.distance(player) < 20:
29 | game_is_on = False
30 | scoreboard.game_over()
31 |
32 | #Detect successful crossing
33 | if player.is_at_finish_line():
34 | player.go_to_start()
35 | car_manager.level_up()
36 | scoreboard.increase_level()
37 |
38 |
39 |
40 | screen.exitonclick()
--------------------------------------------------------------------------------
/Turtle Crossing Game/player.py:
--------------------------------------------------------------------------------
1 | from turtle import Turtle
2 |
3 | STARTING_POSITION = (0, -280)
4 | MOVE_DISTANCE = 20
5 | FINISH_LINE_Y = 280
6 |
7 |
8 | class Player(Turtle):
9 |
10 | def __init__(self):
11 | super().__init__()
12 | self.shape("turtle")
13 | self.penup()
14 | self.go_to_start()
15 | self.setheading(90)
16 |
17 | def go_up(self):
18 | self.forward(MOVE_DISTANCE)
19 |
20 | def go_to_start(self):
21 | self.goto(STARTING_POSITION)
22 |
23 | def is_at_finish_line(self):
24 | if self.ycor() > FINISH_LINE_Y:
25 | return True
26 | else:
27 | return False
--------------------------------------------------------------------------------
/Turtle Crossing Game/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | turtle
4 |
--------------------------------------------------------------------------------
/Turtle Crossing Game/scoreboard.py:
--------------------------------------------------------------------------------
1 | from turtle import Turtle
2 |
3 | FONT = ("Courier", 24, "normal")
4 |
5 |
6 | class Scoreboard(Turtle):
7 |
8 | def __init__(self):
9 | super().__init__()
10 | self.level = 1
11 | self.hideturtle()
12 | self.penup()
13 | self.goto(-280, 250)
14 | self.update_scoreboard()
15 |
16 | def update_scoreboard(self):
17 | self.clear()
18 | self.write(f"Level: {self.level}", align="left", font=FONT)
19 |
20 | def increase_level(self):
21 | self.level += 1
22 | self.update_scoreboard()
23 |
24 | def game_over(self):
25 | self.goto(0, 0)
26 | self.write(f"GAME OVER", align="center", font=FONT)
27 |
--------------------------------------------------------------------------------
/Turtle Crossing Game/turtle_crossing.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Turtle Crossing Game/turtle_crossing.gif
--------------------------------------------------------------------------------
/URL Shortener/README.md:
--------------------------------------------------------------------------------
1 | **URL SHORTENER**
2 |
3 | **GOAL**
4 | This is a url shortener created in python programming language. You can shorten any url and get the shortened url.
5 |
6 | **DESCRIPTION**
7 | The goal is to create a url shortener based on the user's input.
8 |
9 | To use this code download urlShortenerGUI.py and resources in the same directory.
10 |
11 | **WHAT I HAD DONE**
12 | In this code, I implemented the code by using the following concepts:
13 | + Tkinter module
14 | + pyshorteners module
15 |
16 | **DEMONSTRATION**
17 | 
18 | 
19 |
20 |
21 | I wish you enjoy this code :-D
22 |
23 | **SRIHARI S**
24 |
--------------------------------------------------------------------------------
/URL Shortener/images/gui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/URL Shortener/images/gui.png
--------------------------------------------------------------------------------
/URL Shortener/images/gui2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/URL Shortener/images/gui2.png
--------------------------------------------------------------------------------
/URL Shortener/requirements.txt:
--------------------------------------------------------------------------------
1 | The required libraries are:
2 |
3 | turtle, pyshorteners
4 |
5 | If the modules are not installed, you can install them using the following commands:
6 | pip install turtle, pip install pyshorteners
7 |
--------------------------------------------------------------------------------
/Weather App/images/clear sky.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Weather App/images/clear sky.png
--------------------------------------------------------------------------------
/Weather App/images/haze.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Weather App/images/haze.png
--------------------------------------------------------------------------------
/Weather App/images/heavy rain.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Weather App/images/heavy rain.png
--------------------------------------------------------------------------------
/Weather App/images/partly cloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Weather App/images/partly cloudy.png
--------------------------------------------------------------------------------
/Weather App/images/scattered clouds.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Weather App/images/scattered clouds.png
--------------------------------------------------------------------------------
/Weather App/images/windy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Weather App/images/windy.png
--------------------------------------------------------------------------------
/Weather App/readme.md:
--------------------------------------------------------------------------------
1 | # Weather App
2 |
3 | This app built using `tkinter` and `openweathermap` API
4 |
5 | ## Approach
6 |
7 | **Working with API**
8 |
9 | - open [openweathermap](https://openweathermap.org/) API website and navigate to sing-up page
10 | - create account and you will get API Key on successfull account creation through mail or navigate to API page to see the API key
11 | - copy the API key
12 | - to make sure the key is working or not use `api.openweathermap.org/data/2.5/weather?q={city name}&appid={API key}` by replacing `{city name}` and `{API key}` with your city name and API key
13 |
14 | Now create the GUI and make a function `getWeather()` to get the details of weather
15 |
16 | **To get Weather details**
17 |
18 | - import `request` module
19 | - store the openweathermap API key in `weatherApiKey` variable and take city name user input into `city` variable
20 | - use `request.get().json` by passing the query `"http://api.openweathermap.org/data/2.5/weather?appid=" + weatherApiKey + "&q=" + city` to fetch the weather details in json format
21 |
22 | While running this app, we will get some HTTPerrors like :
23 |
24 | `404` - this means, Can't find weather data for this city
25 |
26 | `401` - Unauthorized
27 |
28 | Make sure to handle such HTTPerrors
29 | ## Demonstration
30 |
31 | https://user-images.githubusercontent.com/89008784/210406636-40f1e017-c644-4e99-9774-86080dd37797.mp4
32 |
33 |
--------------------------------------------------------------------------------
/Weather App/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 | openweathermap api
5 |
--------------------------------------------------------------------------------
/Weight Converter/images/weight converter1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Weight Converter/images/weight converter1.png
--------------------------------------------------------------------------------
/Weight Converter/images/weight converter2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Weight Converter/images/weight converter2.png
--------------------------------------------------------------------------------
/Weight Converter/main.py:
--------------------------------------------------------------------------------
1 | from tkinter import *
2 |
3 |
4 | root = Tk()
5 | root.title('Weight Converter')
6 |
7 | #Creating labels
8 | l1 = Label(root, text = "Enter the weight in Kg", font=("Arial", 18))
9 | input = StringVar()
10 | l2 = Entry(root, textvariable = input, font=("Arial", 18))
11 | l3 = Label(root, text = "Gram", font=("Arial", 18))
12 | l4 = Label(root, text = "Pounds", font=("Arial", 18))
13 | l5 = Label(root, text = "Ounce", font=("Arial", 18))
14 | #Text widgets for output
15 | t1_gram = Text(root, height = 1, width = 20,font=("Arial", 18))
16 | t2_pounds = Text(root, height = 1, width = 20, font=("Arial", 18))
17 | t3_ounce = Text(root, height = 1, width = 20, font=("Arial", 18))
18 |
19 | def convert():
20 | # convert kg to gram
21 | gram = float(input.get())*1000
22 |
23 | # convert kg to pound
24 | pound = float(input.get())*2.20462
25 |
26 | # convert kg to ounce
27 | ounce = float(input.get())*35.274
28 |
29 | # Enters the converted weight to
30 | # the text widget
31 | t1_gram.delete("1.0", END)
32 | t1_gram.insert(END,gram)
33 |
34 | t2_pounds.delete("1.0", END)
35 | t2_pounds.insert(END,pound)
36 |
37 | t3_ounce.delete("1.0", END)
38 | t3_ounce.insert(END,ounce)
39 | #button
40 | button = Button(root, text = "Convert", command = convert, bg = "#50e3a4", fg = 'white', font=("Arial", 18))
41 | #positioning the labels and Text widgets
42 | l1.grid(row = 0, column = 0)
43 | l2.grid(row=0, column=1)
44 | l3.grid(row=2, column=0)
45 | l4.grid(row=2, column=1)
46 | l5.grid(row=2, column=2)
47 | t1_gram.grid(row=3, column=0)
48 | t2_pounds.grid(row=3, column=1)
49 | t3_ounce.grid(row=3, column=2)
50 | button.grid(row=1, column = 1)
51 |
52 |
53 | root.mainloop()
54 |
--------------------------------------------------------------------------------
/Weight Converter/readme.md:
--------------------------------------------------------------------------------
1 | **Weight Converter**
2 |
3 |
4 | **Approach**
5 |
6 | This app build using `tkinter 3.9.14`.
7 | - Importing the module – tkinter
8 | - Create the main window (container)
9 | - Add widgets to main window
10 | - Apply the event Trigger on the widgets.
11 |
12 | **Demonstration**
13 |
14 | Below is what the GUI looks like:
15 |
16 | 
17 |
18 |
19 | 
20 |
21 |
22 |
23 |
24 | [Durga Vamsi Krishna](https://github.com/vamsikrishnarh7/)
25 |
--------------------------------------------------------------------------------
/Weight Converter/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 |
3 | tkinter - 3.9.14
4 |
--------------------------------------------------------------------------------
/WiFi Password Saver App/README.md:
--------------------------------------------------------------------------------
1 | **Wi-Fi Password Saver**
2 |
3 | **GOAL**
4 | Save Wi-fi password
5 |
6 | **DESCRIPTION**
7 | Wi-Fi password saving app displays all the saved information (wifi-name,password,nearby network) on your system
8 | And you can also save this information on the text file.
9 | password is hidden and by clicking on the stars it shows with a message box.
10 |
11 |
12 | **WHAT I HAD DONE**
13 | In this code, I implemented the code by using the following concepts:
14 | + Tkinter module
15 | + subprocess module
16 |
17 | **DEMONSTRATION**
18 |
19 | 
20 | 
21 |
22 | ### Keyvan Majidi ###
23 | [https://github.com/keyvanmj]
24 |
--------------------------------------------------------------------------------
/WiFi Password Saver App/images/wifi_password_saver1.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/WiFi Password Saver App/images/wifi_password_saver1.PNG
--------------------------------------------------------------------------------
/WiFi Password Saver App/images/wifi_password_saver2.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/WiFi Password Saver App/images/wifi_password_saver2.PNG
--------------------------------------------------------------------------------
/WiFi Password Saver App/requirements.txt:
--------------------------------------------------------------------------------
1 | The required library is:
2 | tkinter
3 | subprocess
--------------------------------------------------------------------------------
/Wikipedia Clone/Images/Wikipedia Clone - Google Chrome 11-12-2022 18_18_50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/Images/Wikipedia Clone - Google Chrome 11-12-2022 18_18_50.png
--------------------------------------------------------------------------------
/Wikipedia Clone/README.md:
--------------------------------------------------------------------------------
1 | # Wikipedia Clone
2 |
3 | ### GOAL
4 |
5 | This project aims to create a Wikipedia Clone using Django Framework
6 |
7 | ### DESCRIPTION
8 |
9 | Create a virtual environment, cd into the directory then run the following commands
10 | 1:pip install wikipedia
11 | 2:pip install django
12 | 3:py manage.py makemigrations
13 | 4:py manage.py migrate
14 | 6:py manage.py runserver
15 |
16 | Then go to your localhost server and your Wikipedia Clone is ready!
17 |
18 |
19 |
20 |
21 | ### WHAT I HAD DONE
22 |
23 | Used Wikipedia API to fetch data from Wikipedia, created a website using Django in the backend and Django templates in the frontend.
24 |
25 |
26 |
27 | ### LIBRARIES NEEDED
28 |
29 | 1:wikipedia
30 | 2:django
31 |
32 |
33 |
34 | ### DEMONSTRATION
35 |
36 | 
37 |
38 |
39 |
40 | ### Pundarikaksha
41 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/WikiClone/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/WikiClone/__init__.py
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/WikiClone/__pycache__/__init__.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/WikiClone/__pycache__/__init__.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/WikiClone/__pycache__/settings.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/WikiClone/__pycache__/settings.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/WikiClone/__pycache__/urls.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/WikiClone/__pycache__/urls.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/WikiClone/__pycache__/wsgi.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/WikiClone/__pycache__/wsgi.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/WikiClone/asgi.py:
--------------------------------------------------------------------------------
1 | """
2 | ASGI config for WikiClone project.
3 |
4 | It exposes the ASGI callable as a module-level variable named ``application``.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/
8 | """
9 |
10 | import os
11 |
12 | from django.core.asgi import get_asgi_application
13 |
14 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "WikiClone.settings")
15 |
16 | application = get_asgi_application()
17 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/WikiClone/urls.py:
--------------------------------------------------------------------------------
1 | """WikiClone URL Configuration
2 |
3 | The `urlpatterns` list routes URLs to views. For more information please see:
4 | https://docs.djangoproject.com/en/4.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("main.urls")),
22 | ]
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/WikiClone/wsgi.py:
--------------------------------------------------------------------------------
1 | """
2 | WSGI config for WikiClone 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/4.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", "WikiClone.settings")
15 |
16 | application = get_wsgi_application()
17 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/main/__init__.py
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/__pycache__/__init__.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/main/__pycache__/__init__.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/__pycache__/admin.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/main/__pycache__/admin.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/__pycache__/apps.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/main/__pycache__/apps.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/__pycache__/models.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/main/__pycache__/models.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/__pycache__/urls.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/main/__pycache__/urls.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/__pycache__/views.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/main/__pycache__/views.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 |
3 | # Register your models here.
4 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 |
4 | class MainConfig(AppConfig):
5 | default_auto_field = "django.db.models.BigAutoField"
6 | name = "main"
7 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/migrations/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/main/migrations/__init__.py
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/migrations/__pycache__/__init__.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/Wikipedia Clone/WikiClone/main/migrations/__pycache__/__init__.cpython-310.pyc
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/models.py:
--------------------------------------------------------------------------------
1 | from django.db import models
2 |
3 | # Create your models here.
4 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/templates/main/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Wikipedia Clone
5 |
6 |
7 |
8 |
9 |
Wikipedia Clone
10 |
15 |
16 | {% if result %}
17 |
18 | {{result}}
19 | {% endif %}
20 |
21 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/urls.py:
--------------------------------------------------------------------------------
1 | from django.urls import path
2 | from .views import *
3 |
4 | urlpatterns = [
5 | path('', home,name="home"),
6 | ]
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/main/views.py:
--------------------------------------------------------------------------------
1 | from django.shortcuts import render,HttpResponse
2 | import wikipedia
3 |
4 |
5 | # Create your views here.
6 | def home(request):
7 | if request.method == "POST":
8 | search = request.POST['search']
9 | search=search.replace(' ','')
10 |
11 | result = wikipedia.page(search).content #No of sentences that you want as output
12 | return render(request,"main/index.html",{"result":result})
13 | return render(request,"main/index.html")
14 |
15 | # Create your views here.
16 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/manage.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | """Django's command-line utility for administrative tasks."""
3 | import os
4 | import sys
5 |
6 |
7 | def main():
8 | """Run administrative tasks."""
9 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "WikiClone.settings")
10 | try:
11 | from django.core.management import execute_from_command_line
12 | except ImportError as exc:
13 | raise ImportError(
14 | "Couldn't import Django. Are you sure it's installed and "
15 | "available on your PYTHONPATH environment variable? Did you "
16 | "forget to activate a virtual environment?"
17 | ) from exc
18 | execute_from_command_line(sys.argv)
19 |
20 |
21 | if __name__ == "__main__":
22 | main()
23 |
--------------------------------------------------------------------------------
/Wikipedia Clone/WikiClone/pyvenv.cfg:
--------------------------------------------------------------------------------
1 | home = C:\Users\Pundarikaksha\AppData\Local\Programs\Python\Python310
2 | include-system-site-packages = false
3 | version = 3.10.7
4 |
--------------------------------------------------------------------------------
/YouTube Video Downloader/README.md:
--------------------------------------------------------------------------------
1 | **YOUTUBE DOWNLOADER**
2 |
3 | **GOAL**
4 | This is a gui based youtube downloader created in python programming language. You can download any youtube video by using this code.
5 |
6 |
7 | **DESCRIPTION**
8 | The goal is to download any youtube video by using the youtube video url and save it in the local machine based on the user's input.
9 |
10 | To use this code download youtubeDownloaderGUI.py and resources in the same directory.
11 | + Open and run the file youtubeDownloaderGUI.py
12 | + enjoy the code :-D
13 |
14 | **WHAT I HAD DONE**
15 | In this code, I implemented the code by using the following concepts:
16 | + Tkinter module
17 | + pytube module
18 | + os module
19 |
20 | **DEMONSTRATION**
21 | 
22 | 
23 | 
24 | 
25 |
26 | I wish you enjoy this code :-D
27 |
28 | **SRIHARI S**
29 |
--------------------------------------------------------------------------------
/YouTube Video Downloader/images/app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/YouTube Video Downloader/images/app.png
--------------------------------------------------------------------------------
/YouTube Video Downloader/images/detailsFilled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/YouTube Video Downloader/images/detailsFilled.png
--------------------------------------------------------------------------------
/YouTube Video Downloader/images/downloadSuccess.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/YouTube Video Downloader/images/downloadSuccess.png
--------------------------------------------------------------------------------
/YouTube Video Downloader/images/lionRoarVideo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/YouTube Video Downloader/images/lionRoarVideo.png
--------------------------------------------------------------------------------
/cartoonify_image/demo/demo_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/cartoonify_image/demo/demo_image.png
--------------------------------------------------------------------------------
/cartoonify_image/demo/demo_image_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/cartoonify_image/demo/demo_image_2.png
--------------------------------------------------------------------------------
/cartoonify_image/readme.md:
--------------------------------------------------------------------------------
1 | # CARTOONIFY IMAGE
2 |
3 |
4 | # GOAL
5 |
6 | This is a Python program to convert an image to cartoon.
7 |
8 | # DESCRIPTION
9 |
10 | This Python program converts and uploaded image into a cartoon version of the image.It uses OpenCv to achieve this.
11 |
12 | ## How to use:
13 | + Run the program
14 | + Click on Open Image an select any image from the file dialog box.
15 | + Click the Cartoonify Image button to turn the image into a cartoon
16 | + Close the window
17 |
18 | # WHAT I HAD DONE
19 |
20 | The program is written in python.
21 | It accepts a image using Tkinter Filedialog.The original image is then displayed using PIL and Tkinter.The image is then processed and cartoonified by using the opencv module and numpy.The cartoonified image is then displayed using PIL and Tkinter.
22 |
23 | # LIBRARIES NEEDED
24 | + Tkinter
25 | + OpenCV
26 | + PIL
27 | + Numpy
28 |
29 |
30 | # INSTALLATION
31 | + Tkinter is built into python, so installation is not required
32 | + pip install opencv-python
33 | + pip install Pillow
34 | + Numpy - It is automatically installed when you install OpenCV
35 |
36 |
37 |
38 |
39 | # DEMONSTRATION
40 | 1.
41 | 2.
42 |
43 | Video Demonstration:
44 |
45 | https://user-images.githubusercontent.com/114090255/215831277-10b03b7a-a3e5-45bf-86c0-eb9a21ff5582.mp4
46 |
47 | NAME:B C SAMRUDH
48 |
49 | GITHUB:https://github.com/bcsamrudh
50 |
--------------------------------------------------------------------------------
/cartoonify_image/requirements.txt:
--------------------------------------------------------------------------------
1 | 1.Numpy
2 | 2.OpenCv-python
3 | 3.PIL(Python Image Library)
4 | 4.tkinter
--------------------------------------------------------------------------------
/news_app/images/image1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/news_app/images/image1.png
--------------------------------------------------------------------------------
/news_app/images/image2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abhisheks008/Play-With-Python/9dcfadbfb6575297817b3c62f0e470ab790935b0/news_app/images/image2.png
--------------------------------------------------------------------------------
/news_app/news_app.py:
--------------------------------------------------------------------------------
1 | #importing all the required libraries
2 |
3 | import requests
4 | from bs4 import BeautifulSoup
5 | import tkinter as tk
6 | from datetime import date
7 |
8 | #creating a new window
9 | window=tk.Tk()
10 | window.title("News App")
11 | window.geometry('1000x1000')
12 |
13 | #words used to clean the extracted data
14 | words=['Get in touch','Mobile app','News daily newsletter','BBC World News TV','BBC World Service Radio']
15 |
16 | #function used to extract the news
17 | def get_news():
18 | try:
19 | news=""
20 | response=requests.get('https://www.bbc.com/news')
21 | #using beautiful soup to find ang get the required items
22 | soup = BeautifulSoup(response.text,'html.parser')
23 | s = soup.find('body')
24 | content=s.find_all('h3')
25 | for x in content:
26 | if x.text.strip() not in words:
27 | news+="\n"+x.text.strip()
28 | news_label=tk.Label(window,text=news)
29 | news_label.pack()
30 |
31 |
32 | #Exception Handling
33 | except requests.exceptions.RequestException as e:
34 | error_label=tk.Label(window,text="Error: Unable to retrieve news:"+e)
35 | error_label.pack()
36 |
37 |
38 | date_label=tk.Label(window,text=date.today())
39 | date_label.pack()
40 | get_news_button=tk.Button(window,text="Get News",command=get_news)
41 | get_news_button.pack()
42 | window.mainloop()
43 |
--------------------------------------------------------------------------------
/news_app/readme.md:
--------------------------------------------------------------------------------
1 | **A NEWS APP**
2 |
3 | **GOAL**
4 |
5 | To Create a News App
6 |
7 | **DESCRIPTION**
8 |
9 | It is a simple python script to extract news from the web through web scrapping
10 |
11 | PLEASE MAKE SURE THAT YOU ARE CONNECT TO THE INTERNET or
12 | else you wont be able to get the news.
13 |
14 | **WHAT I HAD DONE**
15 |
16 | Download beautifulsoup4 from terminal using the command "pip install beautifulsoup4"
17 |
18 | STEPS:
19 |
20 | 1.Imported the required libraries
21 |
22 | 2.Created a Tkinter window
23 |
24 | 3.Defined a function get_news() that gets the news from the web using requests and beautifulsoup
25 |
26 | 4.Cleaned the unwanted data and then presented the news
27 |
28 | 5.Created the date label and a "Get News" Button
29 |
30 | 6.Exceptions have been handled
31 |
32 | **LIBRARIES NEEDED**
33 |
34 | beautifulsoup4, requests, tkinter, datetime
35 |
36 | **DEMONSTRATION**
37 |
38 | 1.The tkinter window opens with todays date and a button with "Get News" on it
39 | 
40 |
41 | 2.When you click the "Get News" button,the news is displayed
42 | 
43 |
44 | **YOUR NAME**
45 |
46 | B C SAMRUDH
47 |
--------------------------------------------------------------------------------
/news_app/requirements.txt:
--------------------------------------------------------------------------------
1 | The required Libraries are:
2 |
3 | beautifulsoup4
4 | requests
5 | tkinter
6 | datetime
--------------------------------------------------------------------------------