In this section, I have put my small projects. Many of these projects can be found on the internet, but I have written them in my own way
I hope they were helpful.
This Python calculator project is designed to effortlessly handle your basic arithmetic operations. 🧮 By utilizing symbols such as '+', '-', 'x' (or '*'), and '/' (or '÷'), users can input mathematical expressions and receive quick and accurate results. ➗ The program parses the input, extracts the numbers and the operation, and performs the calculation. 🔄 With error handling in place, it ensures a smooth user experience. 🛠️ Explore the world of Python programming with this handy calculator! 🌐
Input:
foo@bar:~$ python calculator.py What do you want to solve? 3+3
Output:
foo@bar:~$ python calculator.py 3+3=6
This Python script simplifies email sending through the smtplib library and the SMTP protocol. 📧 It begins by configuring the SMTP server, setting up email content, and creating both plain text and HTML message bodies. ⚙️ The process involves connecting to the server, initiating a secure connection, logging in, and ultimately sending the email from the sender to the recipient. 🔒 Upon successful transmission, the script gracefully closes the SMTP connection and prints a confirmation message. 🎉 Customize sender and recipient addresses, adjust content, and streamline your communication workflow effortlessly with this Python email sender script. 🚀
Input:
foo@bar:~$ python email_sender.py Type your password and press enter: ********
Output:
foo@bar:~$ Email sent successfully!
This Python script acts as a secure and user-friendly password manager. 🐍🔐 It utilizes the Fernet encryption library, symbolized by a robust lock, to safeguard stored passwords. 🔒 Users can effortlessly manage their credentials by adding new passwords or retrieving existing ones. ➕🔍 With key generation, password encryption, and an intuitive menu interface, it empowers users to navigate the password management landscape securely. 🛡️ Take command of your digital security and embark on a journey into Python programming with this reliable password manager! 🗝️
Library:
foo@bar:~$ pip install cryptography
Input:
foo@bar:~$ python password_manager.py
Password Manager
1. Retrieve password
2. Add new password
3. Exit
Output (Choice):
if choice == "1":
service = input("Enter the service name: ")
retrieve_password(service)
elif choice == "2":
new_password()
elif choice == "3":
break
This Python script functions as a password generator with a user-friendly interface. 🐍🔐 Users can choose between running the password generator or exiting the program. 🔄🚪 The generator employs a combination of letters, digits, and punctuation for creating secure passwords. ➡️🔢🔠 It provides an intuitive menu, allowing users to interact easily. 🛠️👨💻 Take control of your password creation with this Python tool!
Input:
foo@bar:~$ python password_generator
Output (Choice):
1. run the password generator
2. Exit
This Python code generates a QR code using the qrcode
library. 🐍 You provide a website URL as input, and the code creates a QR code with specified effects such as box size and border. The QR code is then saved as an image, in this case as "qrcode.png".📷
Input:
foo@bar:~$ python qrcode_generator.py
Output:
foo@bar:~$ Enter URL: [user_input_here]
This Python script creates a randomly generated story scenario. 📚🎲 It features characters, settings, and plots, and combines them to form a unique narrative snippet. 🐍 Here's a breakdown:
Characters:
A list of fictional character names is defined, and one character is randomly chosen from this list. Settings:
Various settings are provided, such as a forest, beach, city, etc. One setting is randomly selected. Plots:
Different plot ideas are given, like searching for a lost artifact, solving a mystery, etc. A plot is randomly chosen. Story Generation:
Using the selected character, setting, and plot, a sentence is constructed to describe a scenario. The characters "found themselves" in a specific setting, and engaged in a particular plot. The emotional state of the character is also randomly determined, with options like "excited," "scared," etc.
Input:
foo@bar:~$ python story_generator.py
Output:
foo@bar:~$ Charlie found themselves in a forest, escaping from danger. They were excited!
This Python script utilizes the OpenWeather API to provide weather information for a specified city and country. 🌍🌦️ The code prompts the user to input the city name and country code, then requests the OpenWeather API to fetch real-time weather data. The temperature in degrees Celsius and a brief description of the weather (e.g., cloudy, sunny) are then extracted from the API response and presented to the user. ☀️🌧️ If the API request is unsuccessful, the script informs the user that weather information cannot be retrieved.
Input:
foo@bar:~$ python weather.py
Enter city name: Paris
Enter country code: FR
Output:
foo@bar:~$ The temperature is 20 degrees Celsius, and the weather is partly cloudy.
This Python script utilizes the pytube
library to download YouTube videos. 🎥🔽 The user is prompted to input the YouTube video URL. The script then creates an instance of the YouTube
class, extracts the first available video stream, and proceeds to download the video. The progress is displayed to the user, and a success message is printed upon completion. 🚀
Input:
foo@bar:~$ python pytube.py
Please type the YouTube video URL: https://www.youtube.com/watch?v=example_video_id
Output:
foo@bar:~$
Downloading video...
Video downloaded successfully!
Note
I'm excited to start some projects for the future, and I'll be updating the README as I go along.
The Projects:
- Chat Application
- To-Do List App
- README generator
- Grammar-Checking AI
MIT License
Copyright (c) 2023 Izadyar Jalalipour
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.