Skip to content

steam-bell-92/python-mini-project

GSSoC Approved Repository

🎮 Python Mini Projects Collection 🎯

Learn Python by Building Fun, Interactive Games & Tools!

Python Version License

Live Demo

Visitors Stars Forks Contributors

🚀 Beginner-friendly projects | 💡 Learn by doing | 🎨 Clean UI | ⚡ Live demo available

Live DemoContributors


📚 Table of Contents

🎯 Repo Introduction

This repository is a collection of small Python games and utility projects built to make learning Python more practical and engaging. It includes both command-line projects and a browser-based web app for trying the projects online.

📂 Repo Structure

python-mini-project/
|
├── games/
│   ├── Snake-Game/
│   ├── Rock-Paper-Scissor/
│   └── ...
├── math/
│   ├── Fibonacci-Series/
│   ├── Prime-Number-Analyzer/
│   └── ...
├── utilities/
│   ├── Text-to-Morse/
│   ├── Typing-Speed-Tester/
│   └── ...
├── web-app/
│   ├── css/
│   ├── js/
│   └── assets/
├── README.md
└── requirements.txt

🚀 Getting Started

Prerequisites

  • Python 3.10 or higher
  • Git (for cloning the repository)
  • pip (Python package manager)

Installation Steps

1. Clone the Repository

git clone https://github.com/steam-bell-92/python-mini-project.git
cd python-mini-project

2. Create a Virtual Environment

For Linux/macOS:

python3 -m venv venv
source venv/bin/activate

For Windows (Command Prompt):

python -m venv venv
venv\Scripts\activate

For Windows (PowerShell):

python -m venv venv
venv\Scripts\Activate.ps1

3. Install Dependencies

pip install --upgrade pip
pip install -r requirements.txt

Running Command-Line Projects

Each Python project in games/, math/, and utilities/ folders can be run independently.

Example: Running a Game

cd games/Snake-Game
python Snake-Game.py

Example: Running a Math Project

cd math/Fibonacci-Series
python Fibonacci-Series.py

Example: Running a Utility

cd utilities/Text-to-Morse
python Text-to-Morse.py

Running the Web App

The web application provides a browser-based interface for all projects.

Prerequisites for Web App

The web app requires Node.js and npm:

  • Download from https://nodejs.org/ (v16 or higher recommended)
  • Verify installation: node --version && npm --version

Steps to Run Web App

cd web-app
npm install
npm start

The app will open at http://localhost:3000 (or your configured port).

Running Tests

To verify that the projects work correctly, run the test suite:

pytest tests/ -v

For specific test file:

pytest tests/test_armstrong.py -v

Development Workflow

Creating a New Project

  1. Choose appropriate directory: games/, math/, or utilities/
  2. Create a new folder with your project name (use PascalCase)
  3. Add your .py file with the same name as the folder
  4. Include a README.md in your project folder with usage instructions
  5. Add tests in tests/ directory with prefix test_

Code Guidelines

  • Follow PEP 8 style guide
  • Write docstrings for functions and classes
  • Add unit tests for your code
  • Test your project before submitting a PR

Virtual Environment Reminder

Always activate your virtual environment before working:

# Linux/macOS
source venv/bin/activate

# Windows
venv\Scripts\activate

Deactivate when done:

deactivate

🧩 What’s Inside

  • Games for quick interactive fun
  • Math projects for learning logic and problem solving
  • Utility tools for practical use cases
  • A web app version for browser-based access

👥 Contributors

We appreciate all contributions to recode hive! Thank you to everyone who has helped make this project better.


📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


💬 Connect & Share

Found this helpful? Show some love!

  • Star this repo if you found it useful
  • 🐛 Report bugs or suggest features via Issues
  • 💬 Share with friends learning Python
  • 🎓 Use in your classroom or coding club

🎉 Happy Coding! 🎉

Made with ❤️ for Python learners everywhere

If you learned something new, don't forget to star the repo! ⭐

⬆ Back to Top

About

Multiple fun Python project, zero dependencies, beginner-friendly code with emoji UI.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors