Skip to content

Latest commit

 

History

History
118 lines (72 loc) · 2.68 KB

README.md

File metadata and controls

118 lines (72 loc) · 2.68 KB

🏏 Cricket Team Manager

Cricket Team Manager is a desktop application designed for cricket enthusiasts. Built with PyQt6 and SQLite, this app enables users to create cricket teams, manage players, and evaluate team performance using real cricket stats. It's a versatile tool for team management and performance analysis.


🌟 Features

  • 📋 Player Management: Add, view, and manage players with detailed stats like runs, wickets, and matches.
  • 🏏 Team Creation: Build custom teams with predefined budgets and player categories.
  • 📊 Score Evaluation: Analyze team performance based on detailed match statistics.
  • 💾 Data Persistence: Player and team data is stored securely in an SQLite database.

🛠️ Technologies Used

  • Python: Core language for the project.
  • PyQt6: Used to create an intuitive graphical user interface.
  • SQLite: Database for managing player and team data.

📋 Prerequisites

Before running the application, ensure you have:

  • Python 3.x installed.
  • PyQt6 library (pip install pyqt6).
  • SQLite3 (comes pre-installed with Python).

🚀 Getting Started

Step 1: Clone the Repository

git clone https://github.com/your-username/Cricket-Team-Manager.git
cd Cricket-Team-Manager

Step 2: Install Dependencies

pip install pyqt6

Step 3: Run the Application

To launch the Cricket Team Manager, execute:

python fantasy_cricket.py

This will open the GUI where you can create and manage your cricket teams.


🛠️ Converting .ui to .py

If you modify the .ui file, convert it using the following steps:

Install PyQt6 Tools

pip install pyqt6-tools

Convert .ui to .py:

🛠️

If you modify the .ui file, convert it using the following steps:

Step 1: Install PyQt6 Tools

pip install pyqt6-tools

Step 2: Convert .ui to .py

pyuic6 fantasy_cricket.ui -o fantasy_cricket.py
pyuic6 fantasy_cricket.ui -o fantasy_cricket.py

📂 Project Structure

  • fantasy_cricket.ui: UI file created with Qt Designer.
  • fantasy_cricket.py: Python script for app logic and database integration.
  • fantasy_cricket.db: SQLite database auto-generated for storing player and team data.

📌 Additional Notes

  • Player categories (e.g., batsman, bowler) are dynamically fetched from the database.
  • A budget system ensures balanced team creation.
  • Data is persistent and auto-saved in the database.

📝 License

This project is licensed under the MIT License.


Enjoy managing your cricket teams with Cricket Team Manager! 🏆