diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..76ae56e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,11 @@ +blank_issues_enabled: false +contact_links: + - name: GitHub Community Support + url: https://github.com/mrayanasim09/python-projects/discussions/24 + about: Please ask and answer questions here. + - name: GitHub Security Bug Bounty + url: https://bounty.github.com/ + about: Please report security vulnerabilities here. + - name: Report issue to discord + url: https://discord.gg/zuUNxHzD3F + about: Report issue on discord that everyone in the community know about it diff --git a/docs/assests/css/style.scss b/.github/assests/css/style.scss similarity index 75% rename from docs/assests/css/style.scss rename to .github/assests/css/style.scss index c354831..c68d9c9 100644 --- a/docs/assests/css/style.scss +++ b/.github/assests/css/style.scss @@ -1,3 +1,7 @@ +--- +--- + +@import "{{ site.theme }}"; /* Basic styling */ body { background-color: black; diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..eddbdeb --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,23 @@ +name: black-action +on: [push, pull_request] +jobs: + linter_name: + name: runner / black + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check files using the black formatter + uses: datadog/action-py-black-formatter@v2.1 + id: action_black + - name: Create Pull Request + if: steps.action_black.outputs.is_formatted == 'true' + uses: peter-evans/create-pull-request@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + title: "Format Python code with psf/black push" + commit-message: ":art: Format Python code with psf/black" + body: | + There appear to be some python formatting errors in ${{ github.sha }}. This pull request + uses the [psf/black](https://github.com/psf/black) formatter to fix these issues. + base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch + branch: actions/black diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml new file mode 100644 index 0000000..77142de --- /dev/null +++ b/.github/workflows/cr.yml @@ -0,0 +1,19 @@ +name: Code Review + +permissions: + contents: read + pull-requests: write + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + test: + # if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached + runs-on: ubuntu-latest + steps: + - uses: anc95/ChatGPT-CodeReview@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/.github/workflows/indent_check.yml b/.github/workflows/indent_check.yml index d11bcfe..43e4d76 100644 --- a/.github/workflows/indent_check.yml +++ b/.github/workflows/indent_check.yml @@ -21,25 +21,33 @@ jobs: - name: Install flake8 and black run: | pip install flake8 black - + - name: Run flake8 for Indentation Errors + id: check_indentation run: | if flake8 --select=E --show-source --quiet .; then echo "No indentation errors found." else echo "Indentation errors found. Fixing the errors..." black . + git add . fi - - name: Create and Push Fix Branch + - name: Commit and push changes + if: steps.check_indentation.outputs.result == 'failure' run: | - if git diff-index --quiet HEAD --; then - echo "No changes to commit." - else - echo "Changes found. Creating a pull request with the changes..." - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git checkout -b fix-indentation-errors - git commit -a -m "Fix Python indentation errors" - git push origin fix-indentation-errors - fi + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -m "Fix Python indentation errors" || true + git push origin HEAD + + - name: Create Pull Request + if: steps.check_indentation.outputs.result == 'failure' + uses: peter-evans/create-pull-request@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "Fix Python indentation errors" + title: "Fix Python indentation errors" + body: "This pull request fixes Python indentation errors identified by flake8." + base: main + branch: fix-indentation-errors diff --git a/.github/workflows/lines.yml b/.github/workflows/lines.yml new file mode 100644 index 0000000..ab8b209 --- /dev/null +++ b/.github/workflows/lines.yml @@ -0,0 +1,57 @@ +name: Check Code Lines + +on: + push: + branches: + - main # Change 'main' to the name of your default branch + +jobs: + check_code_lines: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Count Python lines + id: count_python_lines + run: | + python_lines=$(find . -name '*.py' | xargs cat | wc -l) + python_files=$(find . -name '*.py' | wc -l) + echo "::set-output name=python_lines::$python_lines" + echo "::set-output name=python_files::$python_files" + + - name: Count TXT lines + id: count_txt_lines + run: | + txt_lines=$(find . -name '*.txt' | xargs cat | wc -l) + txt_files=$(find . -name '*.txt' | wc -l) + echo "::set-output name=txt_lines::$txt_lines" + echo "::set-output name=txt_files::$txt_files" + + - name: Count MD lines + id: count_md_lines + run: | + md_lines=$(find . -name '*.md' | xargs cat | wc -l) + md_files=$(find . -name '*.md' | wc -l) + echo "::set-output name=md_lines::$md_lines" + echo "::set-output name=md_files::$md_files" + + - name: Count YAML lines + id: count_yaml_lines + run: | + yaml_lines=$(find . -name '*.yml' | xargs cat | wc -l) + yaml_files=$(find . -name '*.yml' | wc -l) + echo "::set-output name=yaml_lines::$yaml_lines" + echo "::set-output name=yaml_files::$yaml_files" + + - name: Display results + run: | + echo "Total lines of Python code: ${{ steps.count_python_lines.outputs.python_lines }}" + echo "Total lines of Python files: ${{ steps.count_python_lines.outputs.python_files }}" + echo "Total lines of TXT code: ${{ steps.count_txt_lines.outputs.txt_lines }}" + echo "Total lines of TXT files: ${{ steps.count_txt_lines.outputs.txt_files }}" + echo "Total lines of MD code: ${{ steps.count_md_lines.outputs.md_lines }}" + echo "Total lines of MD files: ${{ steps.count_md_lines.outputs.md_files }}" + echo "Total lines of YAML code: ${{ steps.count_yaml_lines.outputs.yaml_lines }}" + echo "Total lines of YAML files: ${{ steps.count_yaml_lines.outputs.yaml_files }}" diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 13ad8df..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,128 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -We as members, contributors, and leaders pledge to make participation in our -community a harassment-free experience for everyone, regardless of age, body -size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, -nationality, personal appearance, race, religion, or sexual identity -and orientation. - -We pledge to act and interact in ways that contribute to an open, welcoming, -diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our -community include: - -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, - and learning from the experience -* Focusing on what is best not just for us as individuals, but for the - overall community - -Examples of unacceptable behavior include: - -* The use of sexualized language or imagery, and sexual attention or - advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email - address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Enforcement Responsibilities - -Community leaders are responsible for clarifying and enforcing our standards of -acceptable behavior and will take appropriate and fair corrective action in -response to any behavior that they deem inappropriate, threatening, offensive, -or harmful. - -Community leaders have the right and responsibility to remove, edit, or reject -comments, commits, code, wiki edits, issues, and other contributions that are -not aligned to this Code of Conduct, and will communicate reasons for moderation -decisions when appropriate. - -## Scope - -This Code of Conduct applies within all community spaces, and also applies when -an individual is officially representing the community in public spaces. -Examples of representing our community include using an official e-mail address, -posting via an official social media account, or acting as an appointed -representative at an online or offline event. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at -mrayanasim09@gmail.com. -All complaints will be reviewed and investigated promptly and fairly. - -All community leaders are obligated to respect the privacy and security of the -reporter of any incident. - -## Enforcement Guidelines - -Community leaders will follow these Community Impact Guidelines in determining -the consequences for any action they deem in violation of this Code of Conduct: - -### 1. Correction - -**Community Impact**: Use of inappropriate language or other behavior deemed -unprofessional or unwelcome in the community. - -**Consequence**: A private, written warning from community leaders, providing -clarity around the nature of the violation and an explanation of why the -behavior was inappropriate. A public apology may be requested. - -### 2. Warning - -**Community Impact**: A violation through a single incident or series -of actions. - -**Consequence**: A warning with consequences for continued behavior. No -interaction with the people involved, including unsolicited interaction with -those enforcing the Code of Conduct, for a specified period of time. This -includes avoiding interactions in community spaces as well as external channels -like social media. Violating these terms may lead to a temporary or -permanent ban. - -### 3. Temporary Ban - -**Community Impact**: A serious violation of community standards, including -sustained inappropriate behavior. - -**Consequence**: A temporary ban from any sort of interaction or public -communication with the community for a specified period of time. No public or -private interaction with the people involved, including unsolicited interaction -with those enforcing the Code of Conduct, is allowed during this period. -Violating these terms may lead to a permanent ban. - -### 4. Permanent Ban - -**Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an -individual, or aggression toward or disparagement of classes of individuals. - -**Consequence**: A permanent ban from any sort of public interaction within -the community. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 2.0, available at -https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. - -Community Impact Guidelines were inspired by [Mozilla's code of conduct -enforcement ladder](https://github.com/mozilla/diversity). - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see the FAQ at -https://www.contributor-covenant.org/faq. Translations are available at -https://www.contributor-covenant.org/translations. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 16d30b9..e729e89 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,65 +7,79 @@ Welcome to python-projects! We appreciate your interest in contributing to this If you encounter any issues or have ideas for improvements, please submit an issue in the [issue tracker](https://github.com/mrayanasim09/python-projects/issues). When submitting an issue, provide a clear and detailed description of the problem or suggestion. This will help us understand and address it more effectively. ## How to contribute: -Contributing to Python Projects by MRayan Asim ๐Ÿš€๐Ÿ -We welcome contributions from the community to make the Python Projects repository even more inspiring and helpful for developers of all skill levels. Whether you want to add new Python projects, improve existing ones, fix bugs, or enhance documentation, your contributions are valuable. + +Contributing to Python Projects by MRayan Asim ๐Ÿš€๐Ÿ We welcome contributions from the community to make the Python Projects repository even more inspiring and helpful for developers of all skill levels. Whether you want to add new Python projects, improve existing ones, fix bugs, or enhance documentation, your contributions are valuable. ## To contribute to this repository, follow these steps: ### 1. Fork the Repository + Start by forking this repository to your GitHub account. Click the "Fork" button at the top right corner of the repository page. This will create a copy of the repository in your GitHub account. ### 2. Clone the Forked Repository + Now, clone the forked repository to your local machine using the git clone command: - - git clone https://github.com/mrayanasim09/python-projects.git - + +``` + git clone https://github.com/mrayanasim09/python-projects.git +``` + ### 3. Create a New Branch -Before making any changes, create a new branch to work on your contributions. This ensures that you don't modify the main branch directly. Use a descriptive name for your branch to indicate the changes you'll be making: - ```bash - git checkout -b my-contribution - + +Before making any changes, create a new branch to work on your contributions. This ensures that you don't modify the main branch directly. Use a descriptive name for your branch to indicate the changes you'll be making: \`\`\`bash git checkout -b my-contribution + ### 4. Make Your Contributions + Now, you can start making your contributions. Here are some ideas on how you can contribute: -- Add new Python projects to the relevant categories. -- Improve existing projects by fixing bugs or adding new features. -- Enhance the documentation to make it more informative and user-friendly. -- Refactor code to improve readability and maintainability. +* Add new Python projects to the relevant categories. +* Improve existing projects by fixing bugs or adding new features. +* Enhance the documentation to make it more informative and user-friendly. +* Refactor code to improve readability and maintainability. ### 5. Commit Your Changes + Once you've made your changes, it's time to commit them. Stage the files you want to include in your commit: - git add . - +``` + git add . + +``` + Commit the changes with a meaningful commit message that explains the purpose of your changes: - git commit -m "Add new GUI project: ProjectName" +``` + git commit -m "Add new GUI project: ProjectName" +``` ### 6. Push Your Changes + Push the changes to your forked repository on GitHub: - git push origin my-contribution - +``` + git push origin my-contribution +``` + ### 7. Create a Pull Request -Now, go to the original repository on GitHub [python-projects](https://github.com/mrayanasim09/python-projects) and switch to the branch you just created (my-contribution). Click on the "New Pull Request" button. -Ensure that the base repository is set to mrayanasim09/python-projects and the base branch is set to main. Compare your branch (my-contribution) with the main branch of the original repository. Review your changes and click "Create Pull Request." + +Now, go to the original repository on GitHub [python-projects](https://github.com/mrayanasim09/python-projects) and switch to the branch you just created (my-contribution). Click on the "New Pull Request" button. Ensure that the base repository is set to mrayanasim09/python-projects and the base branch is set to main. Compare your branch (my-contribution) with the main branch of the original repository. Review your changes and click "Create Pull Request." ### 8. Collaborate and Iterate + Congratulations! You've submitted a pull request. The repository maintainers and other contributors will review your changes. You may receive feedback or requests for modifications. Collaborate with the community to improve your contribution and make any necessary changes. ### 9. Wait for Review and Merge + Once your pull request is reviewed and approved, it will be merged into the main repository. Your contributions will now be part of the Python Projects by MRayan Asim repository for others to explore and benefit from! Thank you for contributing to the Python Projects repository. Your contributions play a crucial role in creating a valuable resource for Python developers worldwide. Happy coding! ๐Ÿš€๐Ÿ - + ## Code of Conduct -We expect all contributors to adhere to the [Code of Conduct](CODE_OF_CONDUCT.md) in all interactions related to this project. +We expect all contributors to adhere to the [Code of Conduct](code\_of\_conduct.md) in all interactions related to this project. ## License -By contributing to the python-projects repository, you agree that your contributions will be licensed under the [MIT License](https://github.com/mrayanasim09/python-projects/blob/main/LICENSE). +By contributing to the python-projects repository, you agree that your contributions will be licensed under the [MIT License](LICENSE/). Thank you for considering contributing to python-projects. Your efforts are greatly appreciated! - diff --git a/Calculator/Quadratic_Equation.py b/Calculator/Quadratic_Equation.py index 857e702..97e506e 100644 --- a/Calculator/Quadratic_Equation.py +++ b/Calculator/Quadratic_Equation.py @@ -59,7 +59,7 @@ # Solve quadratic equation def solve_quadratic(a, b, c): - discriminant = b**2 - 4 * a * c + discriminant = b ** 2 - 4 * a * c if discriminant > 0: root1 = (-b + np.sqrt(discriminant)) / (2 * a) root2 = (-b - np.sqrt(discriminant)) / (2 * a) @@ -120,11 +120,11 @@ def factorize_quadratic(a, b, c): x = np.linspace(x_start, x_end, num_points) # Compute y values -y = a * x**2 + b * x + c +y = a * x ** 2 + b * x + c # Find the vertex of the quadratic equation vertex_x = -b / (2 * a) -vertex_y = a * vertex_x**2 + b * vertex_x + c +vertex_y = a * vertex_x ** 2 + b * vertex_x + c # Create the plot plt.plot(x, y) diff --git a/Calculator/bmi.py b/Calculator/bmi.py index 758f192..446cfc5 100644 --- a/Calculator/bmi.py +++ b/Calculator/bmi.py @@ -4,7 +4,7 @@ def calculate_bmi(weight, height): Calculates the Body Mass Index (BMI) based on weight and height. Returns the calculated BMI value. """ - bmi = weight / (height**2) + bmi = weight / (height ** 2) return bmi @@ -28,8 +28,8 @@ def get_weight_range(height): Provides a suggested weight range based on the height. Returns a tuple containing the lower and upper weight limits. """ - lower_limit = 18.5 * (height**2) - upper_limit = 24.9 * (height**2) + lower_limit = 18.5 * (height ** 2) + upper_limit = 24.9 * (height ** 2) return lower_limit, upper_limit diff --git a/Calculator/mega_calculator.py b/Calculator/mega_calculator.py index 031ec01..07fda99 100644 --- a/Calculator/mega_calculator.py +++ b/Calculator/mega_calculator.py @@ -289,7 +289,7 @@ def is_even(number): def is_prime(number): if number < 2: return False - for i in range(2, int(number**0.5) + 1): + for i in range(2, int(number ** 0.5) + 1): if number % i == 0: return False return True diff --git a/Calculator/special_relativity_calculator.py b/Calculator/special_relativity_calculator.py index 45a1802..988c3b1 100644 --- a/Calculator/special_relativity_calculator.py +++ b/Calculator/special_relativity_calculator.py @@ -1,14 +1,14 @@ # This code is made by MRayan Asim # Function to calculate time dilation def time_dilation(time, velocity): - gamma = 1 / (1 - (velocity**2 / 299792458**2)) # Lorentz factor + gamma = 1 / (1 - (velocity ** 2 / 299792458 ** 2)) # Lorentz factor time_dilated = time * gamma return time_dilated # Function to calculate length contraction def length_contraction(length, velocity): - gamma = 1 / (1 - (velocity**2 / 299792458**2)) # Lorentz factor + gamma = 1 / (1 - (velocity ** 2 / 299792458 ** 2)) # Lorentz factor length_contracted = length / gamma return length_contracted @@ -16,7 +16,7 @@ def length_contraction(length, velocity): # Function to calculate energy using E=mc^2 def energy(mass): c = 299792458 # Speed of light in m/s - energy = mass * c**2 + energy = mass * c ** 2 return energy diff --git a/Calculator/time_calulator.py b/Calculator/time_calulator.py new file mode 100644 index 0000000..90fcab6 --- /dev/null +++ b/Calculator/time_calulator.py @@ -0,0 +1,57 @@ +class TimeCalculator: + def __init__(self, hours=0, minutes=0, seconds=0): + self.total_seconds = self.to_seconds(hours, minutes, seconds) + + def to_seconds(self, hours, minutes, seconds): + return hours * 3600 + minutes * 60 + seconds + + def add_time(self, hours=0, minutes=0, seconds=0): + self.total_seconds += self.to_seconds(hours, minutes, seconds) + + def subtract_time(self, hours=0, minutes=0, seconds=0): + self.total_seconds -= self.to_seconds(hours, minutes, seconds) + self.total_seconds %= 24 * 3600 + + def to_12_hour_format(self): + period = "AM" if self.total_seconds < 12 * 3600 else "PM" + hours = self.total_seconds // 3600 + if hours > 12: + hours -= 12 + return f"{hours:02d}:{self.total_seconds // 60 % 60:02d}:{self.total_seconds % 60:02d} {period}" + + def __str__(self): + hours = self.total_seconds // 3600 + minutes = self.total_seconds // 60 % 60 + seconds = self.total_seconds % 60 + return f"{hours:02d}:{minutes:02d}:{seconds:02d}" + + +if __name__ == "__main__": + # Get user input for initial time + hours = int(input("Enter the initial hours: ")) + minutes = int(input("Enter the initial minutes: ")) + seconds = int(input("Enter the initial seconds: ")) + + time_calculator = TimeCalculator(hours, minutes, seconds) + print("Initial Time (24-hour format):", time_calculator) + print("Initial Time (12-hour format):", time_calculator.to_12_hour_format()) + + # Get user input for time operation + operation = input("Enter the operation (add/subtract): ") + operation = operation.lower() + + if operation == "add": + hours = int(input("Enter the hours to add: ")) + minutes = int(input("Enter the minutes to add: ")) + seconds = int(input("Enter the seconds to add: ")) + time_calculator.add_time(hours, minutes, seconds) + elif operation == "subtract": + hours = int(input("Enter the hours to subtract: ")) + minutes = int(input("Enter the minutes to subtract: ")) + seconds = int(input("Enter the seconds to subtract: ")) + time_calculator.subtract_time(hours, minutes, seconds) + else: + print("Invalid operation. Please enter 'add' or 'subtract'.") + + print("Resulting Time (24-hour format):", time_calculator) + print("Resulting Time (12-hour format):", time_calculator.to_12_hour_format()) diff --git a/FAQ.md b/FAQ.md new file mode 100644 index 0000000..f262bcf --- /dev/null +++ b/FAQ.md @@ -0,0 +1,48 @@ +## Frequently Asked Questions (FAQ) + +### Q: How do I run a Python project from this repository? + +A: To run a Python project, follow these steps: + +1. Clone or download the repository to your local machine. +2. Install the required dependencies mentioned in the README's [Installation](#installation) section. +3. Navigate to the specific project folder you want to run using the command line or terminal. + +### Q: I'm new to Python programming. Where should I start? + +A: If you're a beginner, we recommend starting with projects tagged as "Beginner" in the [Skill Level Tags](#skill-level-tags) section of the README. These projects are designed to introduce you to Python programming concepts and provide a solid foundation. + +### Q: How can I contribute to this repository? + +A: We welcome contributions from the community! If you'd like to contribute, please follow the guidelines outlined in the [How to Contribute](CONTRIBUTING.md) guide. Feel free to submit bug fixes, new projects, or improvements to existing ones. + +### Q: I encountered an error while running a project. What should I do? + +A: If you encounter any issues while running a project, first make sure you've followed the installation steps and installed all required dependencies. If the issue persists, check the [Issues](https://github.com/mrayanasim09/python-projects/issues) section of the repository to see if others have reported similar problems. If not, you can create a new issue with details about the error for further assistance. + +### Q: Can I use the code from these projects for commercial purposes? + +A: The code in this repository is provided under the [MIT License](LICENSE), which allows you to use, modify, and distribute the code for both commercial and non-commercial purposes. However, we recommend reviewing the specific license terms and attributing the original author (MRayan Asim) when using the code. + +### Q: How can I get in touch with the author? + +A: You can reach out to MRayan Asim through the following channels: +- Email: [mrayanasim09@gmail.com](mailto:mrayanasim09@gmail.com) +- LinkedIn: [View Profile](https://www.linkedin.com/in/mrayan-asim-044836275/) +- GitHub: [mrayanasim09](https://github.com/mrayanasim09) + +### Q: I have feedback or suggestions for improving the projects. How can I share them? + +A: We value feedback and suggestions from the community. You can provide your feedback by filling out [this Google Form](https://forms.gle/SzJ4VA1zWZ3ehqGC6). Your input helps us enhance the projects and make them even better for everyone. + +### Q: How can I stay updated with new projects or changes to existing ones? + +A: You can stay updated by watching or starring this repository. Additionally, you can join our [Discord](https://discord.gg/uRfXYjub) or [Reddit Community](https://www.reddit.com/r/Python_projects_rayan/) for discussions and announcements about new projects and updates. + +### Q: Is there any support for the projects if I encounter difficulties? + +A: Yes, we provide support to the best of our ability. If you encounter difficulties or have questions related to the projects, you can create an issue on the [GitHub repository](https://github.com/mrayanasim09/python-projects/issues), and the community or the author will try to assist you. + +### Q: Can I suggest new project ideas for inclusion in this repository? + +A: Absolutely! If you have a great project idea that you believe will benefit the community, please create a new issue on the [GitHub repository](https://github.com/mrayanasim09/python-projects/issues) with the project details and your proposal. We appreciate creative ideas and contributions to enrich this repository. diff --git a/GUI/Quiz.py b/GUI/Quiz.py new file mode 100644 index 0000000..8097a95 --- /dev/null +++ b/GUI/Quiz.py @@ -0,0 +1,62 @@ +# This code is made by MRayan Asim +import tkinter as tk +from tkinter import messagebox + + +class QuizGame(tk.Tk): + def __init__(self): + super().__init__() + self.title("Quiz Game") + self.geometry("400x300") + + self.questions = [ + ("What is the capital of France?", "Paris"), + ("What is 2 + 2?", "4"), + ("Who painted the Mona Lisa?", "Leonardo da Vinci"), + ("What is the largest planet in our solar system?", "Jupiter"), + ("Who wrote the play 'Romeo and Juliet'?", "William Shakespeare"), + ("What is the chemical symbol for water?", "H2O"), + ("What is the tallest mammal on Earth?", "Giraffe"), + ("In which city is the Taj Mahal located?", "Agra"), + ] + + self.current_question = 0 + + self.question_label = tk.Label(self, text="", font=("Arial", 14)) + self.question_label.pack(pady=20) + + self.answer_entry = tk.Entry(self, font=("Arial", 12)) + self.answer_entry.pack(pady=10) + + self.submit_button = tk.Button(self, text="Submit", command=self.check_answer) + self.submit_button.pack(pady=10) + + self.load_question() + + def load_question(self): + if self.current_question < len(self.questions): + question_text, _ = self.questions[self.current_question] + self.question_label.config(text=question_text) + self.answer_entry.delete(0, tk.END) + else: + messagebox.showinfo("Quiz Over", "You have completed the quiz!") + self.destroy() + + def check_answer(self): + user_answer = self.answer_entry.get() + _, correct_answer = self.questions[self.current_question] + + if user_answer.lower() == correct_answer.lower(): + messagebox.showinfo("Correct", "Your answer is correct!") + else: + messagebox.showerror( + "Incorrect", f"Sorry, the correct answer is {correct_answer}." + ) + + self.current_question += 1 + self.load_question() + + +if __name__ == "__main__": + app = QuizGame() + app.mainloop() diff --git a/GUI/search_applications.py b/GUI/search_applications.py index ecf392a..ba960b9 100644 --- a/GUI/search_applications.py +++ b/GUI/search_applications.py @@ -63,12 +63,7 @@ def app(): # creating a button using the widget b = Button(master, text="Show", command=app, bg="Blue") b.grid( - row=0, - column=2, - columnspan=2, - rowspan=2, - padx=5, - pady=5, + row=0, column=2, columnspan=2, rowspan=2, padx=5, pady=5, ) mainloop() diff --git a/How_to_use.md b/How_to_use.md index 4d10e71..56eb0c7 100644 --- a/How_to_use.md +++ b/How_to_use.md @@ -1,18 +1,29 @@ -## First of all clone the repository : - - git clone https://github.com/mrayanasim09/python-projects.git +# How to use this repository -## Secondly now install the required packages : - - pip install -r requirements.txt +### First of all clone the repository : -## Thirdly now change the directory depends on you : +``` +git clone https://github.com/mrayanasim09/python-projects.git +``` - cd +### Secondly now install the required packages : -## Fourthly run the file you want : +``` + pip install -r requirements.txt +``` - Python +### Thirdly now change the directory depends on you : + +``` +cd +``` + +### Fourthly run the file you want : + +``` + Python +``` + +### ๐Ÿ—’ NOTE: -## ๐Ÿ—’ NOTE: Some projects need some things to be changed so first view the code if I do not mention enter a specific thing then run it then first full fill it. diff --git a/MRayan.png b/MRayan.png new file mode 100644 index 0000000..69b918f Binary files /dev/null and b/MRayan.png differ diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..85f3a5d --- /dev/null +++ b/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,50 @@ +## Pull Request Description + + + +## Related Issue + + + +Fixes #Issue_Number + +## Proposed Changes + + + +- +- +- + +## Additional Information + + + +## Checklist + + + +- [ ] I have tested my changes thoroughly and they do not introduce any new bugs +- [ ] My code follows the project's coding conventions and style guidelines +- [ ] I have added necessary documentation/comments to my code +- [ ] I have updated any relevant documentation to reflect the changes +- [ ] All new and existing tests passed successfully +- [ ] I have rebased my branch on the latest main branch +- [ ] I have resolved any conflicts that may arise due to the rebase + +## Reviewers + + +@mrayanasim09 + +## Readme Update + +**Please note that the README.md file has been updated with the following content:** + +[Content of your README.md file] + +## Documentation + +**To view full documentation, please check the following link:** + +[Documentation Link](https://mrayans.gitbook.io/python--projects/) diff --git a/README.md b/README.md index 6ec94e0..3fd7944 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,27 @@ -# Python Projects by MRayan Asim ๐Ÿ๐Ÿš€ +# 80+ Python Projects by MRayan Asim ๐Ÿ๐Ÿš€ -Welcome to the **Python Projects repository by MRayan Asim!** This collection showcases a variety of Python projects developed to inspire and assist developers of all skill levels. Whether you're a beginner or an advanced programmer, you'll find valuable resources, guidance, and practical code examples for your Python-based projects. Let's dive in and explore the possibilities! ๐Ÿ’ก๐Ÿ”ฅ +

+ My Logo +

+ +## Table of Contents + +- [Repository Structure ๐Ÿ“‚](#repository-structure-) +- [Categories ๐Ÿ—‚๏ธ](#categories-%EF%B8%8F) +- [Projects ๐Ÿ”ฅ](#projects-) + - [*GUI ๐Ÿ–ฅ๏ธ*](#gui-๏ธ) + - [*Calculator ๐Ÿงฎ*](#calculator-) + - [*Games ๐ŸŽฎ*](#games-) + - [*Machine Learning ๐Ÿค–๐Ÿ“š๐Ÿง *](#machine-learning-) + - [*Utilities ๐Ÿ› ๏ธ*](#utilities-๏ธ) +- [Skill Level Tags โญ](#skill-level-tags-) +- [Installation โš™๏ธ](#installation-๏ธ) +- [About the Author ๐Ÿ‘ค](#about-the-author-) +- [License ๐Ÿ“](#license-) +- [Note ๐Ÿ“Œ](#note-) +- [FAQ ๐Ÿ—’๏ธ](#frequently-asked-questions-faq-%EF%B8%8F) + +**Welcome to the Python Projects repository by MRayan Asim! This collection showcases a variety of Python projects developed to inspire and assist developers of all skill levels. Whether you're a beginner or an advanced programmer, you'll find valuable resources, guidance, and practical code examples for your Python-based projects. Let's dive in and explore the possibilities! ๐Ÿ’ก๐Ÿ”ฅ**

@@ -10,169 +31,172 @@ Welcome to the **Python Projects repository by MRayan Asim!** This collection sh ## Repository Structure ๐Ÿ“‚ -The repository is organized into different categories, each containing specific project folders. This structure allows for easy navigation and helps you find projects that align with your interests. Each project is tagged with appropriate labels to indicate the recommended skill level. Let's take a look at the categories available: +The repository is organized into different categories, each containing specific project folders. This structure allows for easy navigation and helps you find projects that align with your interests. Each project is tagged with appropriate labels to indicate the recommended skill level. Let's take a look at the categories available: ## Categories ๐Ÿ—‚๏ธ -- [GUI](https://github.com/drik493/python_projects/tree/main/GUI) ๐Ÿ–ฅ๏ธ -- [Calculator](https://github.com/drik493/python_projects/tree/main/Calculator) ๐Ÿงฎ -- [Games](https://github.com/drik493/python_projects/tree/main/Game) ๐ŸŽฎ -- [Machine learning](https://github.com/mrayanasim09/python-projects/tree/main/machine_learning) ๐Ÿค–๐Ÿ“š๐Ÿง  -- [Utilities](https://github.com/drik493/python_projects/tree/main/Utilities) ๐Ÿ› ๏ธ +* [GUI](https://github.com/drik493/python\_projects/tree/main/GUI) ๐Ÿ–ฅ๏ธ +* [Calculator](https://github.com/drik493/python\_projects/tree/main/Calculator) ๐Ÿงฎ +* [Games](https://github.com/drik493/python\_projects/tree/main/Game) ๐ŸŽฎ +* [Machine learning](https://github.com/mrayanasim09/python-projects/tree/main/machine\_learning) ๐Ÿค–๐Ÿ“š๐Ÿง  +* [Utilities](https://github.com/drik493/python\_projects/tree/main/Utilities) ๐Ÿ› ๏ธ ## Projects ๐Ÿ”ฅ Explore the projects in each category to find detailed information, documentation, and code examples. Here's a glimpse of the projects available within each category: -### *GUI ๐Ÿ–ฅ๏ธ* - -- [Form](https://github.com/drik493/python_projects/blob/main/GUI/Form.py) ๐Ÿ“ -- [A basic GUI calculator](https://github.com/drik493/python_projects/blob/main/GUI/A_basic_gui_calculator.py) ๐Ÿงฎ -- [A working GUI clock also download the clock image](https://github.com/mrayanasim09/python-projects/blob/main/GUI/clock.py) ๐Ÿ•ค -- [Tick cross (with GUI) ](https://github.com/mrayanasim09/python-projects/blob/main/GUI/tick_cross.py) โœ”๏ธโŒ -- [ Todo list (with GUI)](https://github.com/mrayanasim09/python-projects/blob/main/GUI/todo.py) โœ…๐Ÿ“ -- [Notepad](https://github.com/drik493/python_projects/blob/main/GUI/notepad.py) ๐Ÿ“„ -- [A snake and ladder game ](https://github.com/mrayanasim09/python-projects/blob/main/GUI/snake_ladder.py) and [(also download the images with it)](https://github.com/mrayanasim09/python-projects/blob/main/GUI/ezgif-5-ad15f112d4.gif) ๐Ÿ๐Ÿชœ -- [A paint application](https://github.com/mrayanasim09/python-projects/blob/main/GUI/paint.py)๐Ÿ–Œ๏ธ๐ŸŽจ -- [A file explorer](https://github.com/mrayanasim09/python-projects/blob/main/GUI/file_explorer.py) ๐Ÿ“‚๐Ÿ”Ž -- [Youtube video downloader](https://github.com/mrayanasim09/python-projects/blob/main/GUI/youtube_download.py) ๐Ÿ“บ๐Ÿ”ฝ๐Ÿ’พ -- [spelling correction](https://github.com/mrayanasim09/python-projects/blob/main/GUI/spelling.py) ๐Ÿ”ค๐Ÿ“๐Ÿ” -- [Figet spinner (use it on windows with space bar)](https://github.com/mrayanasim09/python-projects/blob/main/GUI/spinner.py) ฿ท -- [ A beautiful design using turtle](https://github.com/mrayanasim09/python-projects/blob/main/GUI/graphics.py) ๐Ÿข๐ŸŽจ -- [Pikachu using turtle](https://github.com/mrayanasim09/python-projects/blob/main/GUI/Pikachu.py) (ใฃโ—”โ—กโ—”)ใฃ -- [ Doraemon using turtle](https://github.com/mrayanasim09/python-projects/blob/main/GUI/doramon.py)๐Ÿฑโ€๐Ÿš€ -- [ Rainbow with turtle ](https://github.com/mrayanasim09/python-projects/blob/main/GUI/rainbow.py)๐ŸŒˆ -- [A happy birthday message to the user with its name](https://github.com/mrayanasim09/python-projects/blob/main/GUI/happy_birth_day.py)๐ŸŽ‚ -- [Search installed applications](https://github.com/mrayanasim09/python-projects/blob/main/GUI/search_applications.py) ๐Ÿ” -- [ A GUI calendar ](https://github.com/mrayanasim09/python-projects/blob/main/GUI/clender.py) ๐Ÿ“… - -### *Calculator ๐Ÿงฎ* - -- [Quadratic Equation (with graph)](https://github.com/drik493/python_projects/blob/main/Calculator/Quadratic_Equation.py) ๐Ÿ“ˆ -- [A mega calculator with all operations](https://github.com/drik493/python_projects/blob/main/Calculator/mega_calculator.py) ๐Ÿ–ฉ -- [A stock analyzer with its short form](https://github.com/mrayanasim09/python-projects/blob/main/Calculator/stock.py) ๐Ÿ’ต๐Ÿ“Š๐Ÿ“ˆ -- [Number base converter](https://github.com/drik493/python_projects/blob/main/Calculator/number_base.py) ๐Ÿ”ข -- [Integration and differentiation](https://github.com/drik493/python_projects/blob/main/Calculator/int_diff.py) โˆซ -- [BMI calculator](https://github.com/drik493/python_projects/blob/main/Calculator/bmi.py) ๐Ÿ‹๏ธ -- [Roman number convertor to decimal number](https://github.com/mrayanasim09/python-projects/blob/main/Calculator/roman_number.py) ๐Ÿง  -- [special theory of relativity calculator](https://github.com/mrayanasim09/python-projects/blob/main/Calculator/special_relativity_calculator.py ) โŒ›๐Ÿ“โšก -- [Collatz Conjecture (3x+1) (with GUI)](https://github.com/drik493/python_projects/blob/main/Calculator/conject.py) ๐Ÿ“ -- [Fibonacci sequence](https://github.com/drik493/python_projects/blob/main/Calculator/sequence.py) ๐Ÿ‡ -- [Graph calculator from equation (with graph)](https://github.com/drik493/python_projects/blob/main/Calculator/graph.py) ๐Ÿ“Š -- [Montly Mortgage calculator](https://github.com/mrayanasim09/python-projects/blob/main/Calculator/Mortgage.py) ๐Ÿ“ˆ๐Ÿ’ด -- [ 12 hour time into 24 hour time](https://github.com/mrayanasim09/python-projects/blob/main/Calculator/12_to_24.py) ๐Ÿ•ฐ๏ธ๐Ÿ•› -- [Grade calculator](https://github.com/drik493/python_projects/blob/main/Calculator/grade.py) ๐ŸŽ“ -- [Sudoku solver](https://github.com/drik493/python_projects/blob/main/Calculator/sudukko.py) ๐Ÿงฉ -- [A program to find the ASCII value of characters](https://github.com/mrayanasim09/python-projects/blob/main/Calculator/ASCII%20.py) ๐Ÿ’ป๐Ÿ”ง - -### *Games ๐ŸŽฎ* - -- [2048 game (without GUI)](https://github.com/drik493/python_projects/blob/main/Game/2048.py) ๐ŸŽฒ -- [Snake game (with GUI)](https://github.com/drik493/python_projects/blob/main/Game/snake_game.py) ๐Ÿ -- [Hangman](https://github.com/drik493/python_projects/blob/main/Game/hangman.py) ๐Ÿช“ -- [Colox (a box colliding game with GUI)](https://github.com/mrayanasim09/python-projects/blob/main/Game/colox.py) ๐Ÿ“ฆโ„๏ธ -- [A color guessing game with GUI](https://github.com/mrayanasim09/python-projects/blob/main/Game/color_guessing.py) ๐ŸŽจ๐Ÿ”๐ŸŒˆ -- [Master Mind](https://github.com/drik493/python_projects/blob/main/Game/master_mid.py) ๐Ÿ” -- [A number details (prime, odd, co-prime, etc)](https://github.com/drik493/python_projects/blob/main/Game/number_details.py) ๐Ÿ”ข -- Tick cross [(with GUI)](https://github.com/drik493/python_projects/blob/main/Game/tick_cross.py) or [(without GUI)](https://github.com/mrayanasim09/python-projects/blob/main/Game/tick_cross_gui.py) โŒโญ• -- [Rock, paper, and scissors (without GUI)](https://github.com/drik493/python_projects/blob/main/Game/rock,paper,scissors.py) โœŠ๐Ÿ–โœŒ๏ธ -- [A snake and ladder game ](https://github.com/mrayanasim09/python-projects/blob/main/Game/snake_ladder.py) and [(also download the images with it)](https://github.com/mrayanasim09/python-projects/blob/main/Game/ezgif-5-ad15f112d4.gif) ๐Ÿ๐Ÿชœ -- [21 or 20 plus game](https://github.com/drik493/python_projects/blob/main/Game/21.py) ๐Ÿƒ -- [ Typing speed test](https://github.com/mrayanasim09/python-projects/blob/main/Game/typing_speed.py) ๐ŸŽฎ -- [Star patterns (7 types of patterns)](https://github.com/drik493/python_projects/blob/main/Game/star.py) โœจ -- [Dice rolling (With user guess without GUI)](https://github.com/drik493/python_projects/blob/main/Game/dice.py) ๐ŸŽฒ -- [Number guessing game](https://github.com/drik493/python_projects/blob/main/Game/number_guessing.py) ๐Ÿ”ขโ“ - -### *Machine Learning ๐Ÿค–๐Ÿ“š๐Ÿง * - -- [Brightness controller with your hand](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/brightness_controllor.py) ๐ŸŒž๐Ÿ’ก๐ŸŽ›๏ธ -- [Eye blink detection (also download the . XML files)](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/eye_blink.py) ๐Ÿ‘๏ธ๐Ÿ”๐Ÿ˜ด -- [Text to speech](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/text_to_speech.py) ๐Ÿ”ค๐Ÿ”‰ -- [A language detector ](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/lang_dect.py) ๐Ÿ”๐ŸŒ -- [A spam message delectation using machine learning ](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/spam_dect.py) ๐ŸŽ๐ŸŽ‰๐ŸŽˆ -- [Crypto price predictions (for days ahead of days entered by the user)](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/crypto_prices.py) ๐Ÿš€๐ŸŒ• -- [Gold price predictions (for days ahead of days entered by the user)](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/gold_price.py) ๐Ÿ’ฐ๐Ÿช™ -- [Your phone camera on your PC ](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/camera.py) you can check more about it [here](https://www.makeuseof.com/tag/ip-webcam-android-phone-as-a-web-cam/) ๐Ÿ“ฑ๐Ÿ’ป๐Ÿ“ธ -- [A sentiments checker](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/sentiments.py) ๐Ÿค”๐Ÿ’ฌ๐Ÿ’ญ -- [ A sketch maker of image ](https://github.com/mrayanasim09/python-projects/blob/main/machine_learning/sketch.py) ๐Ÿ–Œ๏ธ - -### *Utilities ๐Ÿ› ๏ธ* - -- [Network passwords (only for the networks you have been connected to)](https://github.com/drik493/python_projects/blob/main/Utilities/network.py) ๐Ÿ” -- [Your own browser](https://github.com/mrayanasim09/python-projects/blob/main/Utilities/browser.py) ๐ŸŒ -- [Count down (timer)](https://github.com/drik493/python_projects/blob/main/Utilities/count_down.py) โณ -- [Tells basic information of an Instagram account only from user name](https://github.com/mrayanasim09/python-projects/blob/main/Utilities/inta.py) ๐Ÿ“ธ -- [Transfer file (generate QR code for easy access)](https://github.com/drik493/python_projects/blob/main/Utilities/transfer.py) ๐Ÿ“ -- [Google search (from terminal)](https://github.com/drik493/python_projects/blob/main/Utilities/google.py) ๐Ÿ” -- [A password manager with a master key and encryption and decryption of passwords](https://github.com/mrayanasim09/python-projects/blob/main/Utilities/password_manager.py) ๐Ÿ” -- [bitcoin mining simulator](https://github.com/mrayanasim09/python-projects/blob/main/Utilities/btc.py) โ‚ฟ -- [QR code generator](https://github.com/drik493/python_projects/blob/main/Utilities/url.py) ๐Ÿ”— -- [Wattsapp spam messages sender (you should click on the message bar of WhatsApp after running it)](https://github.com/mrayanasim09/python-projects/blob/main/Utilities/whatsapp_spam.py) ๐Ÿ“ง๐Ÿ”๐Ÿ“ง๐Ÿ”๐Ÿ“ง๐Ÿ” -- [Github repository details finder (only with username and name of the repository)](https://github.com/mrayanasim09/python-projects/blob/main/Utilities/github.py) :octocat: -- [Secret code generator (with decoding support)](https://github.com/drik493/python_projects/blob/main/Utilities/secret_code.py) ๐Ÿค -- [Password to hash form (md5)](https://github.com/drik493/python_projects/blob/main/Utilities/password_hash.py) ๐Ÿ”’ -- [Hash password cracking (md5 only, using rockyou.txt)](https://github.com/drik493/python_projects/blob/main/Utilities/password.py) ๐Ÿšซ๐Ÿ” -- [Password generator](https://github.com/drik493/python_projects/blob/main/Utilities/passwrd_generator.py) ๐Ÿ”๐Ÿ”ข -- [Birth Day Finder (also zodiac sign, life path number, your birth date according to Islam and birthstone and birth flower)](https://github.com/drik493/python_projects/blob/main/Utilities/birthday.py) ๐ŸŽ‚๐ŸŽ‰ -- [ words and letter count of given text](https://github.com/mrayanasim09/python-projects/blob/main/Utilities/word_count.py) ๐Ÿ”ข๐Ÿ”„๏ธ -- [A program to make short forms for the entered words](https://github.com/mrayanasim09/python-projects/blob/main/Utilities/short_form.py) ๐Ÿ”ค๐Ÿ”„ +## *GUI ๐Ÿ–ฅ๏ธ* + +* [Form](https://github.com/drik493/python\_projects/blob/main/GUI/Form.py) ๐Ÿ“ +* [A basic GUI calculator](https://github.com/drik493/python\_projects/blob/main/GUI/A\_basic\_gui\_calculator.py) ๐Ÿงฎ +* [A working GUI clock also download the clock image](GUI/clock.py) ๐Ÿ•ค +* [Tick cross (with GUI) ](GUI/tick\_cross.py)โœ”๏ธโŒ +* [Todo list (with GUI)](GUI/todo.py) โœ…๐Ÿ“ +* [Notepad](https://github.com/drik493/python\_projects/blob/main/GUI/notepad.py) ๐Ÿ“„ +* [A snake and ladder game ](GUI/snake\_ladder.py)and [(also download the images with it)](GUI/ezgif-5-ad15f112d4.gif) ๐Ÿ๐Ÿชœ +* [A paint application](GUI/paint.py)๐Ÿ–Œ๏ธ๐ŸŽจ +* [A file explorer](GUI/file\_explorer.py) ๐Ÿ“‚๐Ÿ”Ž +* [Youtube video downloader](GUI/youtube\_download.py) ๐Ÿ“บ๐Ÿ”ฝ๐Ÿ’พ +* [spelling correction](GUI/spelling.py) ๐Ÿ”ค๐Ÿ“๐Ÿ” +* [Figet spinner (use it on windows with space bar)](GUI/spinner.py) ฿ท +* [A beautiful design using turtle](GUI/graphics.py) ๐Ÿข๐ŸŽจ +* [A quiz application for asking common questions ](https://github.com/mrayanasim09/python-projects/blob/main/GUI/Quiz.py) ๐Ÿ‘‰๐Ÿ“œ +* [Pikachu using turtle](GUI/Pikachu.py) (ใฃโ—”โ—กโ—”)ใฃ +* [Doraemon using turtle](GUI/doramon.py)๐Ÿฑโ€๐Ÿš€ +* [Rainbow with turtle ](GUI/rainbow.py)๐ŸŒˆ +* [A happy birthday message to the user with its name](GUI/happy\_birth\_day.py)๐ŸŽ‚ +* [Search installed applications](GUI/search\_applications.py) ๐Ÿ” +* [A GUI calendar ](GUI/clender.py)๐Ÿ“… + +## *Calculator ๐Ÿงฎ* + +* [Quadratic Equation (with graph)](https://github.com/drik493/python\_projects/blob/main/Calculator/Quadratic\_Equation.py) ๐Ÿ“ˆ +* [A mega calculator with all operations](https://github.com/drik493/python\_projects/blob/main/Calculator/mega\_calculator.py) ๐Ÿ–ฉ +* [A stock analyzer with its short form](Calculator/stock.py) ๐Ÿ’ต๐Ÿ“Š๐Ÿ“ˆ +* [Number base converter](https://github.com/drik493/python\_projects/blob/main/Calculator/number\_base.py) ๐Ÿ”ข +* [Integration and differentiation](https://github.com/drik493/python\_projects/blob/main/Calculator/int\_diff.py) โˆซ +* [BMI calculator](https://github.com/drik493/python\_projects/blob/main/Calculator/bmi.py) ๐Ÿ‹๏ธ +* [Roman number convertor to decimal number](Calculator/roman\_number.py) ๐Ÿง  +* [Time calculator](https://github.com/mrayanasim09/python-projects/blob/main/Calculator/time_calulator.py) โ˜€๏ธ๐ŸŒ™ +* [special theory of relativity calculator](Calculator/special\_relativity\_calculator.py) โŒ›๐Ÿ“โšก +* [Collatz Conjecture (3x+1) (with GUI)](https://github.com/drik493/python\_projects/blob/main/Calculator/conject.py) ๐Ÿ“ +* [Fibonacci sequence](https://github.com/drik493/python\_projects/blob/main/Calculator/sequence.py) ๐Ÿ‡ +* [Graph calculator from equation (with graph)](https://github.com/drik493/python\_projects/blob/main/Calculator/graph.py) ๐Ÿ“Š +* [Montly Mortgage calculator](Calculator/Mortgage.py) ๐Ÿ“ˆ๐Ÿ’ด +* [12 hour time into 24 hour time](Calculator/12\_to\_24.py) ๐Ÿ•ฐ๏ธ๐Ÿ•› +* [Grade calculator](https://github.com/drik493/python\_projects/blob/main/Calculator/grade.py) ๐ŸŽ“ +* [Sudoku solver](https://github.com/drik493/python\_projects/blob/main/Calculator/sudukko.py) ๐Ÿงฉ +* [A program to find the ASCII value of characters](Calculator/ASCII%20.py) ๐Ÿ’ป๐Ÿ”ง + +## *Games ๐ŸŽฎ* + +* [2048 game (without GUI)](https://github.com/drik493/python\_projects/blob/main/Game/2048.py) ๐ŸŽฒ +* [Snake game (with GUI)](https://github.com/drik493/python\_projects/blob/main/Game/snake\_game.py) ๐Ÿ +* [Hangman](https://github.com/drik493/python\_projects/blob/main/Game/hangman.py) ๐Ÿช“ +* [Colox (a box colliding game with GUI)](Game/colox.py) ๐Ÿ“ฆโ„๏ธ +* [A color guessing game with GUI](Game/color\_guessing.py) ๐ŸŽจ๐Ÿ”๐ŸŒˆ +* [Master Mind](https://github.com/drik493/python\_projects/blob/main/Game/master\_mid.py) ๐Ÿ” +* [A number details (prime, odd, co-prime, etc)](https://github.com/drik493/python\_projects/blob/main/Game/number\_details.py) ๐Ÿ”ข +* Tick cross [(with GUI)](https://github.com/drik493/python\_projects/blob/main/Game/tick\_cross.py) or [(without GUI)](Game/tick\_cross\_gui.py) โŒโญ• +* [Rock, paper, and scissors (without GUI)](https://github.com/drik493/python\_projects/blob/main/Game/rock,paper,scissors.py) โœŠ๐Ÿ–โœŒ๏ธ +* [A snake and ladder game ](Game/snake\_ladder.py)and [(also download the images with it)](Game/ezgif-5-ad15f112d4.gif) ๐Ÿ๐Ÿชœ +* [21 or 20 plus game](https://github.com/drik493/python\_projects/blob/main/Game/21.py) ๐Ÿƒ +* [Typing speed test](Game/typing\_speed.py) ๐ŸŽฎ +* [Star patterns (7 types of patterns)](https://github.com/drik493/python\_projects/blob/main/Game/star.py) โœจ +* [Dice rolling (With user guess without GUI)](https://github.com/drik493/python\_projects/blob/main/Game/dice.py) ๐ŸŽฒ +* [Number guessing game](https://github.com/drik493/python\_projects/blob/main/Game/number\_guessing.py) ๐Ÿ”ขโ“ + +## *Machine Learning ๐Ÿค–๐Ÿ“š๐Ÿง * + +* [Brightness controller with your hand](machine\_learning/brightness\_controllor.py) ๐ŸŒž๐Ÿ’ก๐ŸŽ›๏ธ +* [Eye blink detection (also download the . XML files)](machine\_learning/eye\_blink.py) ๐Ÿ‘๏ธ๐Ÿ”๐Ÿ˜ด +* [Text to speech](machine\_learning/text\_to\_speech.py) ๐Ÿ”ค๐Ÿ”‰ +* [A language detector ](machine\_learning/lang\_dect.py)๐Ÿ”๐ŸŒ +* [A spam message delectation using machine learning ](machine\_learning/spam\_dect.py)๐ŸŽ๐ŸŽ‰๐ŸŽˆ +* [Crypto price predictions (for days ahead of days entered by the user)](machine\_learning/crypto\_prices.py) ๐Ÿš€๐ŸŒ• +* [Gold price predictions (for days ahead of days entered by the user)](machine\_learning/gold\_price.py) ๐Ÿ’ฐ๐Ÿช™ +* [Your phone camera on your PC ](machine\_learning/camera.py)you can check more about it [here](https://www.makeuseof.com/tag/ip-webcam-android-phone-as-a-web-cam/) ๐Ÿ“ฑ๐Ÿ’ป๐Ÿ“ธ +* [A sentiments checker](machine\_learning/sentiments.py) ๐Ÿค”๐Ÿ’ฌ๐Ÿ’ญ +* [A sketch maker of image ](machine\_learning/sketch.py)๐Ÿ–Œ๏ธ + +## *Utilities ๐Ÿ› ๏ธ* + +* [Network passwords (only for the networks you have been connected to)](https://github.com/drik493/python\_projects/blob/main/Utilities/network.py) ๐Ÿ” +* [Your own browser](Utilities/browser.py) ๐ŸŒ +* [A site connection checker and timer](https://github.com/mrayanasim09/python-projects/blob/main/Utilities/connectivity.py) ๐Ÿ”—๐ŸŒ +* [Count down (timer)](https://github.com/drik493/python\_projects/blob/main/Utilities/count\_down.py) โณ +* [Tells basic information of an Instagram account only from user name](Utilities/inta.py) ๐Ÿ“ธ +* [Transfer file (generate QR code for easy access)](https://github.com/drik493/python\_projects/blob/main/Utilities/transfer.py) ๐Ÿ“ +* [Google search (from terminal)](https://github.com/drik493/python\_projects/blob/main/Utilities/google.py) ๐Ÿ” +* [A password manager with a master key and encryption and decryption of passwords](Utilities/password\_manager.py) ๐Ÿ” +* [bitcoin mining simulator](Utilities/btc.py) โ‚ฟ +* [QR code generator](https://github.com/drik493/python\_projects/blob/main/Utilities/url.py) ๐Ÿ”— +* [Wattsapp spam messages sender (you should click on the message bar of WhatsApp after running it)](Utilities/whatsapp\_spam.py) ๐Ÿ“ง๐Ÿ”๐Ÿ“ง๐Ÿ”๐Ÿ“ง๐Ÿ” +* [Github repository details finder (only with username and name of the repository)](Utilities/github.py) :octocat: +* [Secret code generator (with decoding support)](https://github.com/drik493/python\_projects/blob/main/Utilities/secret\_code.py) ๐Ÿค +* [Password to hash form (md5)](https://github.com/drik493/python\_projects/blob/main/Utilities/password\_hash.py) ๐Ÿ”’ +* [Hash password cracking (md5 only, using rockyou.txt)](https://github.com/drik493/python\_projects/blob/main/Utilities/password.py) ๐Ÿšซ๐Ÿ” +* [Password generator](https://github.com/drik493/python\_projects/blob/main/Utilities/passwrd\_generator.py) ๐Ÿ”๐Ÿ”ข +* [Birth Day Finder (also zodiac sign, life path number, your birth date according to Islam and birthstone and birth flower)](https://github.com/drik493/python\_projects/blob/main/Utilities/birthday.py) ๐ŸŽ‚๐ŸŽ‰ +* [words and letter count of given text](Utilities/word\_count.py) ๐Ÿ”ข๐Ÿ”„๏ธ +* [A program to make short forms for the entered words](Utilities/short\_form.py) ๐Ÿ”ค๐Ÿ”„ ## Skill Level Tags โญ Projects are labeled with the following tags to help you identify their recommended skill level: -- Beginner: Suitable for beginners who are new to Python programming. ๐ŸŒฑ -- Intermediate: Projects that require a moderate level of Python programming knowledge. ๐Ÿš€ -- Advanced: Projects that involve advanced concepts and techniques in Python. ๐Ÿง  +* Beginner: Suitable for beginners who are new to Python programming. ๐ŸŒฑ +* Intermediate: Projects that require a moderate level of Python programming knowledge. ๐Ÿš€ +* Advanced: Projects that involve advanced concepts and techniques in Python. ๐Ÿง  ## Installation โš™๏ธ we used these packages in our repository: -- Pygame ๐ŸŽฎ -- Tkinter ๐Ÿ–ผ๏ธ -- GoogleSearch ๐Ÿ” -- qrcode ๐Ÿ“ท -- Matplotlib ๐Ÿ“Š -- yfinance ๐Ÿ’ต๐Ÿ“ˆ -- Turtle ๐Ÿข -- Random ๐ŸŽฒ -- Time โฐ -- Pillow ๐Ÿ–ผ๏ธ -- NumPy ๐Ÿ”ข -- openpyxl ๐Ÿ“„ -- Datetime โŒš -- math โž— -- requests ๐ŸŒ -- hijri_converter ๐ŸŒ™ -- threading ๐Ÿงต -- instaloader ๐Ÿ“ฅ -- string ๐Ÿ”ก -- hashlib ๐Ÿ”’ -- socketserver ๐Ÿ–ง -- socket ๐Ÿงฆ -- http.server ๐ŸŒ -- os ๐Ÿ–ฅ๏ธ -- opencv ๐Ÿ“ท๐Ÿ‘๏ธ -- langdetect ๐ŸŒ -- sys ๐Ÿ”„๐Ÿ’ป -- json ๐Ÿงฉ๐Ÿ“„๐Ÿ” -- re ๐Ÿงฉ -- pyshorteners ๐Ÿงน -- PyQt5 ๐Ÿ๐Ÿ–ผ๏ธ๐Ÿ”Œ -- PyQtWebEngine: ๐Ÿ•ธ๏ธ๐Ÿ–ผ๏ธ๐Ÿ”Œ -- Panda ๐Ÿผ๐ŸŽ‰๐Ÿพ -- textblob ๐Ÿ“๐Ÿ“Š๐Ÿ” -- vaderSentiment ๐Ÿค–๐Ÿ’ญ๐Ÿ“ˆ -- pyttsx3 ๐Ÿ”Š๐Ÿ—ฃ๏ธ -- winapps ๐Ÿ‘๏ธ๐Ÿ“‚ -- pytube ๐Ÿ“ผ -- screen-brightness-control ๐ŸŒž๐Ÿ–ฅ๏ธ๐Ÿ”† -- pyautogui ๐Ÿ“ฆ๐Ÿ”ง๐Ÿ’ป๐Ÿ -- mediapipe ๐ŸŽฅ๐Ÿ“ก๐Ÿค -- prophet ๐Ÿ”ฎ๐Ÿ“ˆ -- seaborn ๐Ÿ“Š๐ŸŒˆ - +* Pygame ๐ŸŽฎ +* Tkinter ๐Ÿ–ผ๏ธ +* GoogleSearch ๐Ÿ” +* qrcode ๐Ÿ“ท +* Matplotlib ๐Ÿ“Š +* yfinance ๐Ÿ’ต๐Ÿ“ˆ +* Turtle ๐Ÿข +* Random ๐ŸŽฒ +* Time โฐ +* Pillow ๐Ÿ–ผ๏ธ +* NumPy ๐Ÿ”ข +* openpyxl ๐Ÿ“„ +* Datetime โŒš +* math โž— +* requests ๐ŸŒ +* hijri\_converter ๐ŸŒ™ +* threading ๐Ÿงต +* instaloader ๐Ÿ“ฅ +* string ๐Ÿ”ก +* hashlib ๐Ÿ”’ +* socketserver ๐Ÿ–ง +* socket ๐Ÿงฆ +* http.server ๐ŸŒ +* os ๐Ÿ–ฅ๏ธ +* opencv ๐Ÿ“ท๐Ÿ‘๏ธ +* langdetect ๐ŸŒ +* sys ๐Ÿ”„๐Ÿ’ป +* json ๐Ÿงฉ๐Ÿ“„๐Ÿ” +* re ๐Ÿงฉ +* pyshorteners ๐Ÿงน +* PyQt5 ๐Ÿ๐Ÿ–ผ๏ธ๐Ÿ”Œ +* PyQtWebEngine: ๐Ÿ•ธ๏ธ๐Ÿ–ผ๏ธ๐Ÿ”Œ +* Panda ๐Ÿผ๐ŸŽ‰๐Ÿพ +* textblob ๐Ÿ“๐Ÿ“Š๐Ÿ” +* vaderSentiment ๐Ÿค–๐Ÿ’ญ๐Ÿ“ˆ +* pyttsx3 ๐Ÿ”Š๐Ÿ—ฃ๏ธ +* winapps ๐Ÿ‘๏ธ๐Ÿ“‚ +* pytube ๐Ÿ“ผ +* screen-brightness-control ๐ŸŒž๐Ÿ–ฅ๏ธ๐Ÿ”† +* pyautogui ๐Ÿ“ฆ๐Ÿ”ง๐Ÿ’ป๐Ÿ +* mediapipe ๐ŸŽฅ๐Ÿ“ก๐Ÿค +* prophet ๐Ÿ”ฎ๐Ÿ“ˆ +* seaborn ๐Ÿ“Š๐ŸŒˆ + You can install these packages using pip, the Python package manager. Open your terminal or command prompt and run the following commands: ```shell @@ -204,43 +228,53 @@ pip install prophet pip install seaborn pip install mediapipe pip install pyshorteners - ``` -### *To view more details that how to use this repository you can go [here](https://github.com/mrayanasim09/python-projects/blob/main/How_to_use.md)* +``` -If you encounter any issues running the code, please feel free to report an issue, and I will respond as quickly as possible. ๐Ÿž +### *To view more details on how to use this repository you can go* [_**here**_](How\_to\_use.md) -## About the Author ๐Ÿ‘ค +If you encounter any issues running the code, please report an issue, and I will respond as quickly as possible. ๐Ÿž -This repository is maintained by MRayan Asim. As a passionate Python enthusiast, MRayan Asim is dedicated to developing practical and innovative projects. Whether you're a beginner or an experienced developer, MRayan Asim strives to provide projects that cater to various skill levels. If you have any questions or suggestions regarding the projects in this repository, feel free to reach out. ๐Ÿš€ -
[![Join our Discord](https://img.shields.io/badge/Join%20our%20Discord-7289DA?style=flat&logo=discord&logoColor=white)](https://discord.gg/uRfXYjub) -[![Join Our Reddit Community](https://img.shields.io/badge/Join%20the%20Community-Reddit-orange)](https://www.reddit.com/r/Python_projects_rayan/) -[![Email](https://img.shields.io/badge/Email-mrayanasim09%40gmail.com-%23D14836?logo=gmail)](mailto:mrayanasim09@gmail.com) -[![LinkedIn](https://img.shields.io/badge/LinkedIn-View%20Profile-blue?logo=linkedin)](https://www.linkedin.com/in/mrayan-asim-044836275/) -[![GitHub](https://img.shields.io/badge/GitHub-mrayanasim09-blue?logo=github)](https://github.com/mrayanasim09) +# About the Author ๐Ÿ‘ค -## *If you are thinking about how to start learning programming so you can check out my [roadmap on medium](https://mrayanasim09.medium.com/how-to-start-learning-programming-from-beginners-to-advance-14248dcc7afa)* +MRayan Asim maintains this repository. As a passionate Python enthusiast, MRayan Asim is dedicated to developing practical and innovative projects. Whether you're a beginner or an experienced developer, MRayan Asim strives to provide projects that cater to various skill levels. If you have any questions or suggestions regarding the projects in this repository, feel free to reach out. ๐Ÿš€\ +[![Join our Discord](https://img.shields.io/badge/Join%20our%20Discord-7289DA?style=flat\&logo=discord\&logoColor=white)](https://discord.gg/uRfXYjub) [![Join Our Reddit Community](https://img.shields.io/badge/Join%20the%20Community-Reddit-orange)](https://www.reddit.com/r/Python\_projects\_rayan/) [![Email](https://img.shields.io/badge/Email-mrayanasim09%40gmail.com-%23D14836?logo=gmail)](mailto:mrayanasim09@gmail.com) [![LinkedIn](https://img.shields.io/badge/LinkedIn-View%20Profile-blue?logo=linkedin)](https://www.linkedin.com/in/mrayan-asim-044836275/) [![GitHub](https://img.shields.io/badge/GitHub-mrayanasim09-blue?logo=github)](https://github.com/mrayanasim09) -## License ๐Ÿ“ +### *If you are thinking about how to start learning programming so you can check out my* [_roadmap on medium_](https://mrayanasim09.medium.com/how-to-start-learning-programming-from-beginners-to-advance-14248dcc7afa) -### *โš ๏ธ DISCLAIMER: For educational purposes only. Code provided under [![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/mrayanasim09/python-projects/blob/main/LICENSE). โš–๏ธ*
+# License ๐Ÿ“ +### *โš ๏ธ DISCLAIMER: For educational purposes only. Code provided under* [![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE/) โš–๏ธ # **Note ๐Ÿ“Œ** -Do you have an eagerness to contribute and make a mark in the coding community? Fantastic! We embrace and celebrate collaboration. You can contribute in various ways, whether it's enhancing our documentation or optimizing the code itself. -Feeling inspired to be a part of our dynamic community? Begin your journey by familiarizing yourself with our [**Code of Conduct**](https://github.com/mrayanasim09/python-projects/blob/main/CODE_OF_CONDUCT.md). We believe in a supportive and inclusive environment where everyone can thrive. +#### Feeling inspired to be a part of our dynamic community? Begin your journey by familiarizing yourself with our [**Code of Conduct**](code\_of\_conduct.md). We believe in a supportive and inclusive environment where everyone can thrive. + +#### Ready to make your mark on our projects? Check out our [**How to Contribute**](CONTRIBUTING.md) guide, and embark on your coding adventure with us! + +#### Excited to play a vital role in securing our projects? Explore the essential steps and best practices in our [**Security Policies**](SECURITY.md) to safeguard our coding community. Join hands with us on this crucial mission! + +#### Discover a treasure trove of Python projects! From GUIs to machine learning, this repository offers many practical code examples and resources. **[Check out the summary](summary.md)** to explore our diverse collection and embark on your coding adventure with us! + +### ๐Ÿ” To view the requirements for the system and Python version, you can check out the [prerequisites](https://github.com/mrayanasim09/python-projects/blob/main/prerequisites.md) ๐Ÿ“‹ + +# Frequently Asked Questions (FAQ) ๐Ÿ—’๏ธ + +## *For common questions and troubleshooting tips, please check our [FAQ](FAQ.md)* + +### *Remember, the world of coding is full of wonders, and your journey starts right here! ๐ŸŒŸ* + +# ๐ŸŒŸ **Sponsor Me and Fuel My Creativity** ๐ŸŒŸ + +If you find my Python projects valuable and would like to show your support, consider sponsoring me! Your generous contribution empowers me to continue developing innovative and practical projects for the coding community. A simple gesture like buying me a coffee goes a long way in keeping me fueled for more coding sessions. โ˜•๏ธ [Buy Me a Coffee](https://www.buymeacoffee.com/mrayanasim) + +๐Ÿ’Ž For those who prefer cryptocurrency, you can send some Ether (ETH) to my Ethereum wallet address: **0xEC55fFf7a8387eeaa0Ef886305350Ab3578CE5D3**. Your sponsorship means the world to me and serves as a powerful motivation to keep creating exciting Python projects for everyone to enjoy. ๐Ÿš€๐Ÿ + +๐Ÿ™ Thank you for your incredible support! Your contributions inspire me to reach new heights and make a positive impact in the coding community. Let's create something amazing together! ๐ŸŒŸ + -Ready to make your mark on our projects? Check out our [**How to Contribute**](https://github.com/mrayanasim09/python-projects/blob/main/CONTRIBUTING.md) guide, and embark on your coding adventure with us! +![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/mrayanasim09/python-projects) ![GitHub repo size](https://img.shields.io/github/repo-size/mrayanasim09/python-projects) ![GitHub top language](https://img.shields.io/github/languages/top/mrayanasim09/python-projects) ![GitHub contributors](https://img.shields.io/github/contributors-anon/mrayanasim09/python-projects) ![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Fmrayanasim09%2Fpython-projects\&label=Views\&countColor=%23555555\&style=flat-square) [![codebeat badge](https://codebeat.co/badges/6fdc6dd9-f8b4-4af7-82bf-5dfc44c69273)](https://codebeat.co/projects/proxy.fjygbaifeng.eu.org-mrayanasim09-python-projects-main) [![CodeFactor](https://www.codefactor.io/repository/github/mrayanasim09/python-projects/badge)](https://www.codefactor.io/repository/github/mrayanasim09/python-projects) [![Backup Status](https://cloudback.it/badge/mrayanasim09/python-projects)](https://cloudback.it) -**Remember, the world of coding is full of wonders, and your journey starts right here! ๐ŸŒŸ**
-![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/mrayanasim09/python-projects) -   -![GitHub repo size](https://img.shields.io/github/repo-size/mrayanasim09/python-projects) -   -![GitHub top language](https://img.shields.io/github/languages/top/mrayanasim09/python-projects) -   -![GitHub contributors](https://img.shields.io/github/contributors-anon/mrayanasim09/python-projects) -   -![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Fmrayanasim09%2Fpython-projects&label=Views&countColor=%23555555&style=flat-square) +## *To View full Documentations you can go [here](https://mrayans.gitbook.io/python--projects/)* + diff --git a/SUMMARY.md b/SUMMARY.md new file mode 100644 index 0000000..e9cc5c3 --- /dev/null +++ b/SUMMARY.md @@ -0,0 +1,37 @@ +# 80+ Python Projects by MRayan Asim ๐Ÿ๐Ÿš€ + +[![Google Forms](https://img.shields.io/badge/Google%20Forms-Give%20Your%20Feedback-red?style=for-the-badge&logo=google-forms)](https://forms.gle/SzJ4VA1zWZ3ehqGC6) + +## Summary +Welcome to the Python Projects repository by MRayan Asim! This collection showcases a variety of Python projects developed to inspire and assist developers of all skill levels. Whether you're a beginner or an advanced programmer, you'll find valuable resources, guidance, and practical code examples for your Python-based projects. Let's dive in and explore the possibilities! ๐Ÿ’ก๐Ÿ”ฅ + +## Repository Structure ๐Ÿ“‚ +The repository is organized into different categories, each containing specific project folders. Explore the projects in each category to find detailed information, documentation, and code examples. + +## Categories ๐Ÿ—‚๏ธ +* [GUI](https://github.com/drik493/python\_projects/tree/main/GUI) ๐Ÿ–ฅ๏ธ +* [Calculator](https://github.com/drik493/python\_projects/tree/main/Calculator) ๐Ÿงฎ +* [Games](https://github.com/drik493/python\_projects/tree/main/Game) ๐ŸŽฎ +* [Machine learning](https://github.com/mrayanasim09/python-projects/tree/main/machine\_learning) ๐Ÿค–๐Ÿ“š๐Ÿง  +* [Utilities](https://github.com/drik493/python\_projects/tree/main/Utilities) ๐Ÿ› ๏ธ + +## Skill Level Tags โญ +Projects are labeled with tags to help you identify their recommended skill level: Beginner, Intermediate, or Advanced. + +## Installation โš™๏ธ +You can check out the [how to use file](https://github.com/mrayanasim09/python-projects/blob/main/How_to_use.md) for how to install and work with this repo. + +## About the Author ๐Ÿ‘ค +Maintained by MRayan Asim, a passionate Python enthusiast. Feel free to contribute and join the coding community! + +## Contact Information ๐Ÿ“ž +- Join our Discord: [![Discord](https://img.shields.io/badge/Join%20our%20Discord-7289DA?style=flat&logo=discord&logoColor=white)](https://discord.gg/uRfXYjub) +- Email: [mrayanasim09@gmail.com](mailto:mrayanasim09@gmail.com) +- LinkedIn: [View Profile](https://www.linkedin.com/in/mrayan-asim-044836275/) +- GitHub: [mrayanasim09](https://github.com/mrayanasim09) + +## How to Contribute ๐Ÿค +Check the [How to Contribute](CONTRIBUTING.md) guide to get involved. + +## License ๐Ÿ“ +Code provided under the [MIT License](LICENSE/). For educational purposes only. diff --git a/Utilities/connectivity.py b/Utilities/connectivity.py new file mode 100644 index 0000000..b6ac823 --- /dev/null +++ b/Utilities/connectivity.py @@ -0,0 +1,29 @@ +# This code is made by MRayan Asim +# Packages needed: +# pip install requests +import requests +import time + + +def check_website_connectivity(url): + try: + start_time = time.time() + response = requests.get(url) + end_time = time.time() + + if response.status_code == 200: + speed = end_time - start_time + print(f"The website {url} is reachable.") + print(f"Response time: {speed:.2f} seconds") + else: + print( + f"Error: The website {url} returned a status code {response.status_code}." + ) + except requests.RequestException as e: + print(f"Error: Unable to connect to the website {url}.") + print(f"Exception: {e}") + + +if __name__ == "__main__": + user_url = input("Enter the website URL: ") + check_website_connectivity(user_url) diff --git a/code_of_conduct.md b/code_of_conduct.md new file mode 100644 index 0000000..cb8c4f8 --- /dev/null +++ b/code_of_conduct.md @@ -0,0 +1,77 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience +* Focusing on what is best not just for us as individuals, but for the overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at mrayanasim09@gmail.com. All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series of actions. + +**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at https://www.contributor-covenant.org/version/2/0/code\_of\_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). + +For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. diff --git a/prerequisites.md b/prerequisites.md new file mode 100644 index 0000000..115eb9e --- /dev/null +++ b/prerequisites.md @@ -0,0 +1,35 @@ +# Prerequisites for Running Python Projects + +*Before running any of the Python projects in this repository, please ensure that you meet the following prerequisites:* + +## 1. **Python Version 3.10 or later** + + The projects in this repository are designed and tested on Python 3.10 or later versions. To check your Python version, open your terminal or command prompt and run the following command: + + python --version +If you have an older version of Python installed, could you consider upgrading to Python 3.10 or a later version to ensure project compatibility? + +## 2. **Pip Version 22 or later** + + Pip is the package manager for Python, and it is essential for installing the required dependencies. To check your Pip version, run the following command: + + pip --version + + If your Pip version is older than 22, you can upgrade it using the following command: + + pip install --upgrade pip +## 3. **Operating System Compatibility** + + The projects in this repository should work on various operating systems, including Windows, macOS, and Linux. However, remember that some projects might have platform-specific dependencies or functionalities. + +## 4. **Dependencies** + + Each project may have its own set of dependencies, which are Python packages required for the project to function correctly. You can find the list of required packages in the "Installation" section of the README for each project. Before running a project, ensure that you have installed all the necessary dependencies using Pip. + +## 5. **Text Editor or Integrated Development Environment (IDE)** + + To view, edit, and run the project files, you will need a text editor or an Integrated Development Environment (IDE). There are several options available, such as Visual Studio Code, PyCharm, Sublime Text, and Atom. Choose the one that best suits your preferences. + + + + diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 65c0985..0000000 --- a/requirements.txt +++ /dev/null @@ -1,281 +0,0 @@ -absl-py==1.4.0 -aiohttp==3.8.5 -aiohttp-retry==2.8.3 -aiosignal==1.3.1 -anyio==3.7.1 -appdirs==1.4.4 -args==0.1.0 -astrology==0.0.1.dev0 -astropy==5.3.1 -pip==23.2.1 -asttokens==2.2.1 -async-generator==1.10 -async-timeout==4.0.2 -attrs==23.1.0 -Automat==22.10.0 -Babel==2.12.1 -backcall==0.2.0 -backoff==2.2.1 -bcrypt==4.0.1 -beautifulsoup4==4.12.2 -bleach==6.0.0 -blinker==1.6.2 -branca==0.6.0 -bs4==0.0.1 -certifi==2023.7.22 -cffi==1.15.1 -charset-normalizer==3.1.0 -click==8.1.3 -clint==0.5.1 -cmdstanpy==1.1.0 -colorama==0.4.6 -comtypes==1.2.0 -constantly==15.1.0 -contourpy==1.0.7 -convertdate==2.4.0 -crypto==1.4.1 -cryptography==41.0.2 -cssselect==1.2.0 -cvzone==1.5.6 -cycler==0.11.0 -debugpy==1.6.7 -decorator==4.4.2 -defusedxml==0.7.1 -distlib==0.3.6 -dnspython==2.4.0 -docopt==0.6.2 -EasyProcess==1.1 -ecapture==2.0.2 -entrypoint2==1.1 -ephem==4.1.4 -et-xmlfile==1.1.0 -exceptiongroup==1.1.1 -executing==1.2.0 -fade==0.0.9 -fastjsonschema==2.17.1 -feedparser==6.0.10 -filelock==3.12.2 -Flask==2.3.2 -flatbuffers==23.5.26 -folium==0.14.0 -fonttools==4.39.4 -forex-python==1.8 -fqdn==1.5.1 -frozendict==2.3.8 -frozenlist==1.4.0 -future==0.18.3 -geocoder==1.38.1 -geographiclib==2.0 -geopy==2.3.0 -google==3.0.0 -googlesearch-python==1.2.3 -h11==0.14.0 -hijri-converter==2.3.1 -holidays==0.29 -html5lib==1.1 -httpcore==0.17.3 -hyperlink==21.0.0 -idna==3.4 -imageio==2.31.1 -imageio-ffmpeg==0.4.8 -importlib-resources==6.0.0 -imutils==0.5.4 -incremental==22.10.0 -instaloader==4.10 -ipython-genutils==0.2.0 -iso639==0.1.4 -iso639-1==1.0 -itemadapter==0.8.0 -itemloaders==1.1.0 -itsdangerous==2.1.2 -jaraco.context==4.3.0 -Jinja2==3.1.2 -jmespath==1.0.1 -joblib==1.3.1 -json5==0.9.14 -jsonpointer==2.3 -jsonschema==4.17.3 -jupyter_core==5.3.0 -jupyterlab-pygments==0.2.2 -keras==2.13.1 -keyboard==0.13.5 -kiwisolver==1.4.4 -kociemba==1.2.1 -langdetect==1.0.9 -libclang==16.0.0 -logic==0.2.3 -LunarCalendar==0.0.9 -lxml==4.9.3 -MarkupSafe==2.1.3 -matplotlib==3.7.1 -matplotlib-inline==0.1.6 -mediapipe==0.10.2 -mistune==2.0.5 -more-itertools==10.0.0 -MouseInfo==0.1.3 -moviepy==1.0.3 -mpmath==1.3.0 -mss==9.0.1 -multidict==6.0.4 -multipledispatch==1.0.0 -multitasking==0.0.11 -Naked==0.1.32 -nest-asyncio==1.5.6 -nltk==3.8.1 -npm==0.1.1 -num2words==0.5.12 -numpy==1.24.3 -opencage==2.3.0 -opencv-contrib-python==4.8.0.74 -opencv-python==4.8.0.74 -openpyxl==3.1.2 -optional-django==0.1.0 -outcome==1.2.0 -overrides==7.3.1 -packaging==23.1 -Panda3D==1.10.13 -pandas==2.0.2 -pandocfilters==1.5.0 -parsel==1.8.1 -parso==0.8.3 -pbkdf2==1.3 -phone==0.4.3 -phonenumbers==8.13.16 -pickleshare==0.7.5 -Pillow==9.5.0 -platformdirs==3.5.3 -plumbum==1.8.2 -plyer==2.1.0 -proglog==0.1.10 -prometheus-client==0.17.0 -prompt-toolkit==3.0.38 -Protego==0.2.1 -protobuf==3.20.3 -psutil==5.9.5 -pure-eval==0.2.2 -py-notifier==0.5.0 -pyasn1==0.5.0 -pyasn1-modules==0.3.0 -PyAudio==0.2.13 -PyAutoGUI==0.9.54 -pybind11==2.10.4 -pycparser==2.21 -pycryptodome==3.18.0 -PyDispatcher==2.0.7 -pyerfa==2.0.0.3 -pygame==2.4.0 -PyGetWindow==0.0.9 -Pygments==2.15.1 -pyjokes==0.6.0 -PyJWT==2.8.0 -PyMeeus==0.5.12 -pymongo==4.4.1 -PyMsgBox==1.0.9 -pynput==1.7.6 -pyOpenSSL==23.2.0 -pyparsing==3.0.9 -pyperclip==1.8.2 -pypiwin32==223 -pypng==0.20220715.0 -PyQRCode==1.2.1 -PyQt5==5.15.9 -PyQt5-Qt5==5.15.2 -PyQt5-sip==12.12.1 -PyQtWebEngine==5.15.6 -PyQtWebEngine-Qt5==5.15.2 -PyRect==0.2.0 -pyrsistent==0.19.3 -pyscreenshot==3.1 -PyScreeze==0.1.29 -pyshorteners==1.0.1 -PySocks==1.7.1 -pytesseract==0.3.10 -python-dateutil==2.8.2 -python-dotenv==1.0.0 -python-json-logger==2.0.7 -PythonTurtle==0.3.2 -pyttsx3==2.90 -pytube==15.0.0 -pytweening==1.0.7 -pytz==2023.3 -pywinpty==2.0.10 -PyYAML==6.0 -pyzmq==25.1.0 -qrcode==7.4.2 -queuelib==1.6.2 -ratelim==0.1.6 -regex==2023.6.3 -requests==2.31.0 -requests-file==1.5.1 -rfc3339-validator==0.1.4 -rfc3986-validator==0.1.1 -san==1.2.0 -scapy==2.5.0 -scikit-learn==1.3.0 -scipy==1.10.1 -Scrapy==2.9.0 -screen-brightness-control==0.21.0 -seaborn==0.12.2 -selenium==4.10.0 -Send2Trash==1.8.2 -service-identity==23.1.0 -sgmllib3k==1.0.0 -shellescape==3.8.1 -simplejson==3.19.1 -six==1.16.0 -sniffio==1.3.0 -sortedcontainers==2.4.0 -sounddevice==0.4.6 -soupsieve==2.4.1 -SpeechRecognition==3.10.0 -speedtest-cli==2.1.3 -stack-data==0.6.2 -sympy==1.12 -tensorflow-io-gcs-filesystem==0.31.0 -termcolor==2.3.0 -terminado==0.17.1 -textblob==0.17.1 -texttable==1.6.7 -threadpoolctl==3.2.0 -tinycss2==1.2.1 -tk==0.1.0 -tkcalendar==1.6.1 -tldextract==3.4.4 -tomli==2.0.1 -toolz==0.12.0 -tornado==6.3.2 -tqdm==4.65.0 -traitlets==5.9.0 -trio==0.22.0 -trio-websocket==0.10.3 -Twisted==22.10.0 -twisted-iocpsupport==1.0.3 -typing_extensions==4.5.0 -tzdata==2023.3 -unification==0.2.2 -uri-template==1.2.0 -urllib3==1.26.16 -vaderSentiment==3.3.2 -validators==0.20.0 -virtualenv==20.23.1 -w3lib==2.1.1 -wcwidth==0.2.6 -webcolors==1.13 -webdriver-manager==3.9.1 -webencodings==0.5.1 -websocket-client==1.5.3 -Werkzeug==2.3.6 -wifi==0.3.8 -wikipedia==1.4.0 -winapps==0.2.0 -winshell==0.6 -WinToaster==0.1.0 -WMI==1.5.1 -wolframalpha==5.0.0 -wrapt==1.14.1 -wsproto==1.2.0 -xmltodict==0.13.0 -yarl==1.9.2 -yfinance==0.2.23 -zope.interface==6.0 - diff --git a/requirments.txt b/requirments.txt new file mode 100644 index 0000000..23ec2cb Binary files /dev/null and b/requirments.txt differ diff --git a/SECURITY.md b/security.md similarity index 78% rename from SECURITY.md rename to security.md index 22ac092..b76b056 100644 --- a/SECURITY.md +++ b/security.md @@ -4,12 +4,12 @@ Use this section to tell people about which versions of your project are currently being supported with security updates. -| Version | Supported | -| ------- | ------------------ | -| 5.1.x | :white_check_mark: | -| 5.0.x | :x: | -| 4.0.x | :white_check_mark: | -| < 4.0 | :x: | +| Version | Supported | +| ------- | -------------------- | +| 5.1.x | :white\_check\_mark: | +| 5.0.x | :x: | +| 4.0.x | :white\_check\_mark: | +| < 4.0 | :x: | ## Reporting a Vulnerability @@ -25,14 +25,14 @@ If you discover a security vulnerability in the "python-projects" repository own When reporting a vulnerability, please include the following information: -- Description: A clear and concise description of the vulnerability. -- Steps to Reproduce: Provide the steps necessary to reproduce the vulnerability. -- Expected Behavior: Describe what you expected to happen when following the steps. -- Actual Behavior: Explain what actually happened when following the steps. -- Affected Versions: Specify which versions of the project are affected by the vulnerability. -- Impact: Assess the potential impact of the vulnerability. +* Description: A clear and concise description of the vulnerability. +* Steps to Reproduce: Provide the steps necessary to reproduce the vulnerability. +* Expected Behavior: Describe what you expected to happen when following the steps. +* Actual Behavior: Explain what actually happened when following the steps. +* Affected Versions: Specify which versions of the project are affected by the vulnerability. +* Impact: Assess the potential impact of the vulnerability. -We are committed to maintaining open communication with the security community and will acknowledge your report within [X business days]. Our team will review the vulnerability and may request additional information or clarifications if needed. +We are committed to maintaining open communication with the security community and will acknowledge your report within \[X business days]. Our team will review the vulnerability and may request additional information or clarifications if needed. ## Vulnerability Response @@ -53,4 +53,3 @@ Make sure to regularly check the releases page of the "python-projects" reposito Please note that older versions of the project may no longer receive security updates and could be vulnerable to known exploits. It is advisable to upgrade to a supported version to maintain a secure environment. **Note: This security policy template is intended as a starting point and should be tailored to fit your specific project and processes.** -