/Pyone

Pyone (All Basic-Python-Scripts in one) is a repository designed for developers and users seeking to discover new projects or contribute to existing ones.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Pyone

All basic-python-scripts in one.

Pyone is a comprehensive repository of various projects and tools related to Machine Learning, Gaming, File Utilities, and Widgets. This resource is intended for those looking to discover new projects, as well as for developers looking to share their own work or contribute to the repository. It is a valuable resource for both project seekers and developers looking to make their mark.

A single repository for:

  • Contribution
  • Education
  • Sharing

Machine Learning

This Folder contains many Fundamental ML algorithms built from scratch.

  1. KMean.py: Implementation of K-means algorithm using NumPy, random, and matplotlib.
  2. KNN.py: Implementation of K-Nearest Neighbours algorithm using NumPy.
  3. LinearRegression.py: Implementation of Linear Regression algorithm using NumPy, random, and matplotlib.
  4. LogisticRegression.py: Implementation of Logistic Regression algorithm using NumPy.
  5. NeuralNetwork.py: Implementation of Neural Network algorithm using NumPy and random.
  6. Perceptron.py: Implementation of Perceptron algorithm in Python.
  7. SVM.py: Implementation of Support Vector Machine using NumPy.

Games

This folder contains both graphical and text-based games.

  1. EggCatcher
  • assets: Images used in game
  • EggCatcher.py: Egg Catcher is a game in which players control a character who is trying to catch eggs that are falling from the sky.
  1. RockPaperScissor
  • RockPaperScissor.py: Classic Rock Paper Scissor game written in python.
  • RockPaperScissorUsingTTS.py: Classic Rock Paper Scissor game using Pyttsx3 for audio output.
  1. SnakeGame
  • assets: Images and sounds used in game.
  • SnakeGame.py: Snake Game is a classic video game in which the player controls a snake that moves around a continuous area, picking up food and growing in size as it goes.
  1. TicTacToeGame
  • TicTacToeAI.py: The classic Tic Tac Toe game with Mini-Max algorithm making it unbeatable.**
  • TicTacToe.py: Text based Tic Tac Toe game written in python.
  1. Flames.py: FLAMES is a relationship game that predicts the future of a romantic relationship.
  2. Gamble.py: A Gambling game written in python, where you win or lose credits based on your luck.
  3. GuessTheNumber.py: A number guessing game.
  4. Quiz.py: The player is asked to input their answer for each question, and the game checks whether the answer is correct or not.

Widgets

This folder contains a variety of graphical user interface (GUI) tools built using the Tkinter widget toolkit.

  1. Calculator.py: A GUI for Calculator that allows users to perform basic arithmetic calculations (such as addition, subtraction, multiplication, and division).
  2. Clock.py: A digital clock GUI.
  3. FileSearch.py: This is a file searching utility that allows a user to search for files in a specific directory that match a given search string. The utility has a graphical user interface (GUI) created using the Tkinter widget toolkit.
  4. ImageEditor.py: A GUI for Image editing, with features like: Brightness, Contrast, Sharpness, Colour, and cropping.
  5. Renamer.py: This file utility allows user to rename all file in a directory based in a specified pattern.
  6. StopWatch.py: A GUI for Stopwatch.
  7. TextEditor.py: This is a simple text editor that allows a user to create, edit, and save text files. The editor has a graphical user interface (GUI) created using the Tkinter widget toolkit.
  8. ToDoList.py: This is a simple to-do list application that allows a user to create a list of tasks and mark them as complete when they are finished.

FileUtilities

This folder contains a collection of custom-developed tools. Each script includes a description of the problem it was designed to solve.

  1. DirComparator.py: This script compares the files in the two directories (and their subdirectories) and returns a list of dictionaries, each containing the file path and reason for the difference (either 'only in dir1', 'only in dir2', or 'content differs').
  2. DirReporter.py: This script generates a report of all the files in a given directory. The report can be in either HTML or CSV format. The app iterates through all the files in the directory, collects the file name, size, and last modified date for each file, and adds this data to a list.
  3. ExtensionChanger.py: This script converts files from one format to another. It takes in an input folder, an output folder, and the input and output formats as arguments.
  4. FileExtractor.py: This script moves files with a specified file extension from a source directory to a destination directory.
  5. MeasureExecution.py: Measures the execution time of a program.
  6. Renamer.py: This script renames all the files in a given directory according to a specified pattern.
  7. SearchString.py: A utility that searches for a specific string of text within a set of files and returns the results in a structured format.
  8. SizeSplitter.py: A tool that splits a large file into smaller chunks for easier handling. This could be useful for transferring large files over a network or for dividing a file for parallel processing.
  9. Zipper.py: This script creates a zip file for each subdirectory in a given source directory.

How to Contribute to this repository:

  1. For the repository using the below command:
  • git clone https://github.com/<USER_NAME>/Pyone
  1. Create a new branch:
  • git checkout -b <branch_name>
  1. Add your scripts and make your changes.
  • git add .
  1. Commit the changes
  • git commit -m "<commit_message>"
  1. Push to your branch
  • git push origin <branch_name>
  1. Raise a Pull Request (PR) to the parent repository. PR