Code Monkey home page Code Monkey logo

python's Introduction

Hello

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.

๐Ÿงฎ Python Calculator Project

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
GitHub

๐Ÿ“ง Python Email Sender

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!
GitHub

๐Ÿ›ก๏ธ Password Manager

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
GitHub

๐Ÿ”‘ Password Generator

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
GitHub

๐Ÿคณ๐Ÿป QRCode Generator

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]
GitHub

๐Ÿ“– Story Generator

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!
GitHub

โ˜๏ธ Weather App

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.
GitHub

โ–ถ๏ธ Youtube Video Downloader

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!
GitHub

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

๐Ÿ‘จโ€๐Ÿ’ป Creator

GitHubIzadyar Jalalipour

๐Ÿ“œ License

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.

python's People

Contributors

izdyr avatar artinnavidgoli avatar

Stargazers

 avatar Amirhossein Gholizadeh avatar Amirhossein Dehghanazar avatar  avatar

Watchers

Kostas Georgiou avatar  avatar  avatar

Forkers

artinnavidgoli

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.