Skip to content

alexandre-75/Develop_a_software_program_in_Object-Oriented-Programming

Repository files navigation

  logo

The Project

  • develop a python project using with classes and object-oriented programming.
  • Structure the code of a Python program using a MVC (Model-View-Controller) design pattern.
  • Write robust Python code using PEP 8 style guide.
  • Work with a database of JSON type (TinyDB).

Context

The project is an offline chess tournament application, this application will replace the old one due to many problems due to internet connection problems.

Project download

Tested on Windows 10, Python 3.10.6.

technical specifications

1. project recovery

$ git clone https://github.com/alexandre-75/Develop_a_software_program_in_Object-Oriented-Programming.git

2. Creating a virtual environment

python<version> -m venv nom_env_virtuel

Activate the environment  `mon_env_virtuel\Scripts\activate` (Windows)

3. Installing packages

pip<version> install -r requirements.txt

4. Start the program

$ python main.py

Use of the program

1. main menu display

  main menu

choose an option by entering a number.

Then you will be guided.

2. menu to generate reports

  main menu

choose an option by entering a number.

Then you will be guided.

Generate a flake8 report

flake8 can identify syntax errors and non-compliance with the PEP.

An html report containing any errors may be generated.

It is in the folder:

  • flake8_repport

open file to view the report

A new report can be generated by running the following command in the terminal:

 $ flake8 --format=html --htmldir=flake8_rapport project_link/

  main menu