Small projects for learning Python by following the Udemy course Complete Python Developer in 2023: Zero to Mastery
Some simple projects created using Python3.
| No. | Project | Created by using |
|---|---|---|
| 1 | Converter JPG images to PNG | Pillow Imaging Library |
| 2 | Password checker | Haveibeenpwned API |
| 3 | PDF merger | PyPDF2 |
| 4 | Sending emails | smtplib |
| 5 | Sending SMS | Twilio Library |
| 6 | Twitter bot | Tweepy Library |
| 7 | Web scrapping | BeautifulSoup Library |
| 8 | Really smart brain - ML | ImageAI, TensorFlow |
| 9 | Soccer Data Analysis | Kaggle Dataset, Jupyter notebook, pandas, seaborn, bokeh |
| 10 | Iris Data Analysis | Jupyter notebook, sklearn, joblib |
| 11 | Generate QR | Pillow Imaging Library, QR Code |
| 12 | Port scanner | Socket Library |
| 13 | Anonymous FTP Scanner | ftplib |
-
The project uses
Pillow Imaging Libraryfor manipulating images.
To run the project go to theJpgPngPokedexConverterfolder and use the below command:narcisabadea:~$ python3 JpgPngPokedexConverter.py Pokedex/ New/
It will loop through the imagines from the
Pokedexfolder, convert them to PNG format and save them to aNewfolder. -
The project uses
Haveibeenpwned APIwhich allows the list of pwned accounts (email addresses and usernames) to be quickly searched via a RESTful service.
To run the project go to thePasswordCheckerfolder and usepython3 check_my_pass.py passwordToCheck.
It will do a request to the API and return the number of times it was found.narcisabadea:~$ python3 check_my_pass.py password123 Password password123 was found 250052 times. You should probably change your password Done
-
The project uses
PyPDF2 Libraryfor manipulating PDF files.
To run the project go to thePdfMergerfolder.It can merge multiple PDFs into the
merged.pdffile as following:narcisabadea:~$ python3 pdfmerger.py dummy.pdf twopage.pdf tilt.pdf
It can also add a watermark to a PDF:
narcisabadea:~$ python3 watermark.py
-
By using the
smtplib modulewe define an SMTP client session object that can be used to send mail to any internet machine with an SMTP.To run the project:
- go to the
SendingEmailfolder - update
smtp.loginwith your email and password from which you are sending the email - update the
from,toandsubjectinformation - run the following command:
narcisabadea:~$ python3 email_sender.py
The receiver can now check for the email.
- go to the
-
The project uses
Twilio Library
To run the project go to theSmsPythonfolder and run the following command:narcisabadea:~$ python3 email_sender.py
-
The project uses
Tweepy Library
To run the project go to theTwitterBotfolder.narcisabadea:~$ python3 tweettweet.py
-
The project uses
BeautifulSoup Libraryfor pulling data out of HTML and XML files.
To run the project go to theWebScrappingfolder.
It will do a request to thehttps://news.ycombinator.com/news.narcisabadea:~$ python3 scrape.py
-
The project uses
ImageAI Librarywhich supports a list of state-of-the-art Machine Learning algorithms for image prediction, custom image prediction, object detection, video detection, video object tracking and image predictions trainings, and alsoTensorFlow
To run the project go to theReallySmartBrainfolder.The image can be changed from "house.jpg" to any other picture. The modelPath can also be changed according to the 4 different algorithms and model types to perform image prediction provided by ImageAI: MobileNetV2, ResNet50, InceptionV3, DenseNet121. After running the command below we will receive each object in the predictions array with the corresponding percentage probability.
narcisabadea:~$ python3 brain.py church: 49.8652458190918 boathouse: 31.82643353930564 castle: 14.124444127082825 beacon: 1.6986381262540817 lakeside: 0.5432001315057278
-
The project uses
Kaggle Datasetand it's analysed inJupyter notebookby usingpandas,seabornandbokeh
TheJupyter notebook .ipynbfile can be seenHere -
The project uses
Sklearnand it's analysed inJupyter notebookby usingdatasets,model_selection,neighbors,metricsfromsklearn, along withjoblib
TheJupyter notebook .ipynbfile can be seenHere -
The project uses
QR Code.
To run the project go to theGenerateQrfolder and run the following command:narcisabadea:~$ python3 qr_code.py
-
The project uses
Socket Python Library.
To run the project go to thePortScannerfolder and run the following command:narcisabadea:~$ python3 portscanner.py
-
The project uses
Socket Python Library.
To run the project go to theAnonymousFTPScannerfolder and run the following command:narcisabadea:~$ python3 anonymous_scanner.py