LyubomirT / school-project

This project aims to solve class 12 computer practical project using mysql and python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

school-project

School Management Project

This project provides a set of functions to create a school class 12 management system using various data storage methods like CSV, Binary, MySQL, and Text. It allows you to manage student records, marks, and subjects. You can add, remove, modify, and view data for students, marks, and subjects.

Project Structure

The project creates a folder named Project to store the files for different data storage methods.

Functions

projectutils()

This function displays a table that lists the available data storage methods (CSV, Binary, Text, MySQL) with their respective serial numbers.

managementsys(sys)

This function creates a Python file in the Project folder for the specified data storage method (e.g., school.py, hospital.py).

csvusers(sys, initial_data)

Creates and appends records to a CSV file for the given data storage method.

Binaryusers(sys, initial_data)

Appends records to a binary file for the given data storage method.

Textusers(sys, initial_data)

Appends records to a text file for the given data storage method.

MYsqlusers(sys, initial_data)

Creates a MySQL table for the given data storage method and inserts records.

codeexport(func_name, file)

Appends the code of a specific function to the Python file for the given data storage method.

mysqlmanagement(name, initial_data)

Creates a MySQL table for a secondary data storage method and inserts records.

initial_data()

Collects the initial field names for a table and returns them as a list.

querygen(table_name, column_data)

Generates a SQL query for creating a MySQL table with the specified field names.

desc(data)

Displays a PrettyTable containing field names and values in the command line.

mysql_init(table_name, initial_data)

Creates a MySQL table for a standalone project.

clear()

Clears the command line screen.

main()

The main function where you can define your project logic.

Usage

  • Modify the sys variable to specify the name of your management system (e.g., 'school', 'hospital').
  • Call the appropriate functions to create, manage, and export data for your system.
  • You can create tables for secondary data storage methods and add records as needed.

Additional Notes

  • Ensure you have a MySQL server set up with the correct credentials.
  • Replace "your_username" and "your_password" with your MySQL credentials.

This project provides a framework to start building a management system, and you can expand it to meet your specific requirements.

About

This project aims to solve class 12 computer practical project using mysql and python

License:MIT License


Languages

Language:Python 100.0%