Skip to content

Gym Manager is a Python console program built for my CS50P final project. It helps gym owners manage members, update info, and track payments efficiently

License

Dallahi-Ms/gym_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gym Manager

Description:

Gym Manager is a Python-based console application designed to help local gyms manage their members efficiently. The idea for this project came from observing my own gym, where staff still use paper to register members and track payments. This method is time-consuming, prone to errors, and makes it difficult to quickly find or update member information. Gym Manager automates these tasks and provides a simple, intuitive interface for gym managers to handle daily operations efficiently.

The program allows gym managers to:

  • Add new members with automatic ID assignment.
  • View all members in a neatly formatted table.
  • Search for members by ID, name, or phone number.
  • Update member information such as name, age, phone number, and payment dates.
  • Delete members safely from the system.
  • Check upcoming payments and highlight members whose payments are due soon.

Project Files:

  • project.py: The main program file containing all functions (main(), choices(), add_member(), show_members(), find_member(), update_member(), delete_member(), etc.) and the main menu logic.
  • test_project.py: Contains test cases to verify that the main functionalities of the program work as expected.
  • requirements.txt: Lists the external dependencies (colorama and tabulate) needed for the program.
  • README.md: Provides a detailed explanation of the project, its purpose, usage, and file structure.

Design Choices:

  • Console-based interface: Text-based menu keeps the program simple and focuses on functionality.
  • Colorama and Tabulate: colorama adds colored output for readability, and tabulate formats member lists neatly in tables.
  • Automatic ID assignment: Prevents duplicate IDs and simplifies record-keeping.
  • Search functionality: Users can search members by ID, name, or phone number for flexibility.
  • Error handling: Validates inputs and prevents invalid entries, ensuring accurate data.

Example Workflow:

  1. Add a member: Enter member details, and the system automatically assigns a unique ID.
  2. View members: Displays all members in a clean table format.
  3. Search & update: Find a member and update details such as payment date or phone number.
  4. Check payments: Highlights members whose payments are due soon, helping the gym follow up efficiently.

How to Use:

  1. Install dependencies: The project uses colorama for colored terminal text and tabulate for formatted tables. You can install them via pip:
    pip install colorama tabulate
  2. Run the program:
    python project.py
  3. Follow the menu: The main menu guides you through all available options, making it easy to manage members and track payments efficiently

Author:

Mohamed Abdallahi / Mohamed El Mokhtar, (nickname: Dallahi), Mauritania

GitHub: https://github.com/Dallahi-Ms

About

Gym Manager is a Python console program built for my CS50P final project. It helps gym owners manage members, update info, and track payments efficiently

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages