Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made a student Record Manager using Python #1

Merged
merged 1 commit into from
Oct 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions projects/RecordManagment/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__/*
7 changes: 7 additions & 0 deletions projects/RecordManagment/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Records Manager ![icon](https://github.com/CoderChirag/images/blob/master/RecordManager-icon.ico)

Made a Utility Based Software using Python.

This is a software which creates a database in which we can maintain our record very easily.

![Finished App](https://github.com/CoderChirag/images/blob/master/RecordManager.gif)
Binary file added projects/RecordManagment/RecordManager-icon.ico
Binary file not shown.
593 changes: 593 additions & 0 deletions projects/RecordManagment/RecordsManager.py

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions projects/RecordManagment/database.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import json

class Get_Data:
def personal_data(self):
try:
with open('student.json', 'r') as f:
# Getting data from the student file and returning it
data = json.load(f)
return data
except Exception as e:
return -1

def subject_data(self):
try:
with open('subject.json', 'r') as f:
# Getting data from the subject file and returning it
data = json.load(f)
return data
except Exception as e:
return -1

def marks_data(self):
try:
with open('marks.json', 'r') as f:
# Getting data from the marks file and returning it
data = json.load(f)
return data
except Exception as e:
return -1

class Write_Data:
def personal_data(self, dict):
with open('student.json', 'w') as f:
# Writing Json data to the student file
json.dump(dict, f, indent=3)

def subject_data(self, dict):
with open('subject.json', 'w') as f:
# Writing Json data to the subject file
json.dump(dict, f, indent=3)

def marks_data(self, dict):
with open('marks.json', 'w') as f:
# Writing Json data to the marks file
json.dump(dict, f, indent=3)

class Search_Data:
def searchAndWrite(self, filename, rollno):
get_data = Get_Data()
if filename != -1:
data_dict = filename
if rollno in data_dict:
with open('f.json', 'w') as f:
json.dump(data_dict[rollno], f, indent=3)

return 1
else:
return -1
else:
return -1
64 changes: 64 additions & 0 deletions projects/RecordManagment/marks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"2010990174": {
"CS104": {
"FA": {
"Subject Name": "Problem Solving eith Python Programming",
"Max Marks": "20",
"Marks Obtained": "20"
},
"ST": {
"Subject Name": "Problem Solving eith Python Programming",
"Max Marks": "50",
"Marks Obtained": "50"
},
"End Term": {
"Subject Name": "Problem Solving eith Python Programming",
"Max Marks": "100",
"Marks Obtained": "100"
},
"Project Based": {
"Subject Name": "Problem Solving eith Python Programming",
"Max Marks": "200",
"Marks Obtained": "200"
}
},
"GE104": {
"FA": {
"Subject Name": "Introduction to Emerging Technologies",
"Max Marks": "20",
"Marks Obtained": "20"
}
}
},
"2010990175": {
"CS104": {
"FA": {
"Subject Name": "Problem Solving eith Python Programming",
"Max Marks": "20",
"Marks Obtained": "10"
},
"ST": {
"Subject Name": "Problem Solving eith Python Programming",
"Max Marks": "50",
"Marks Obtained": "35"
},
"End Term": {
"Subject Name": "Problem Solving eith Python Programming",
"Max Marks": "100",
"Marks Obtained": "75"
},
"Project Based": {
"Subject Name": "Problem Solving eith Python Programming",
"Max Marks": "200",
"Marks Obtained": "30"
}
},
"GE104": {
"FA": {
"Subject Name": "Introduction to Emerging Technologies",
"Max Marks": "100",
"Marks Obtained": "50"
}
}
}
}
26 changes: 26 additions & 0 deletions projects/RecordManagment/student.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"2010990174": {
"Name": "Chirag Jain",
"Father's Name": "Amit Jain",
"Mother's Name": "Reena Jain",
"Mobile no.": "8901789079",
"Course Interested": "Computer Science Engineering",
"Address": {
"Line 1": "51-A",
"Line 2": "Shankar Colony, Jandli",
"Line 3": "Ambala City"
}
},
"2010990175": {
"Name": "Test User",
"Father's Name": "Father",
"Mother's Name": "Mother",
"Mobile no.": "1234567890",
"Course Interested": "Computer Science Engineering",
"Address": {
"Line 1": "51-A",
"Line 2": "Shankar Colony, Jandli",
"Line 3": "Ambala City"
}
}
}
22 changes: 22 additions & 0 deletions projects/RecordManagment/subject.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"2010990174": {
"GE104": {
"Subject Name": "Introduction to Emerging Technologies",
"Credits": "2"
},
"CS104": {
"Subject Name": "Introduction to python programming",
"Credits": "5"
}
},
"2010990175": {
"GE104": {
"Subject Name": "Introduction to Emerging Technologies",
"Credits": "2"
},
"CS104": {
"Subject Name": "Problem Solving with Python",
"Credits": "5"
}
}
}